Stepeee Stepeee แพลตฟอร์มอัตโนมัติเต็มรูปแบบด้วย AI

วิธีเชื่อมต่อ

1

ตรวจสอบ API Key ของคุณ

ตรวจสอบได้จากเมนูด้านขวาบน > การตั้งค่า > บัญชี > API Key

2

แนบไว้ในส่วนหัวคำขอ

แนบ API Key ที่ออกให้ไว้ในส่วนหัว Authorization ในรูปแบบ Bearer

3

ส่งคำขอไปยัง Base URL

ส่งคำขอไปยัง Base URL ด้านล่างต่อด้วยพาธของ endpoint

API Key มี 1 รายการต่อบัญชี เมื่อเปลี่ยน Key แล้ว Key เดิมจะใช้งานไม่ได้ทันที โปรดเก็บ Key ไว้เป็นความลับ ไม่ให้บุคคลที่สามทราบ

Base URL

https://stepeee.com/public-api/v1

ตัวอย่างคำขอ

curl "https://stepeee.com/public-api/v1/projects" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;

รูปแบบการตอบกลับและข้อผิดพลาด

การตอบกลับทั้งหมดจะถูกส่งกลับในรูปแบบซองข้อมูล (envelope) ดังนี้

เมื่อสำเร็จ

{ "data": ... }

เมื่อเกิดข้อผิดพลาด

{ "error": { "code": "...", "message": "...", "details": { ... } } }

รหัสสถานะ

สถานะความหมาย
401ไม่มี API Key ไม่ถูกต้อง หรือถูกเพิกถอนแล้ว
403ไม่มีสิทธิ์สำหรับคำขอนี้ (ตัวอย่างเช่น เรียก endpoint ที่ต้องใช้แพลน Pro ขึ้นไปด้วย API Key ของบัญชีที่ต่ำกว่าแพลน Pro หรือสตาฟของทีมขอประวัติการใช้ Token ของทีม)
404ไม่พบทรัพยากรที่ร้องขอ (รวมถึงกรณีที่ไม่มีสิทธิ์เข้าถึง)
405ไม่สามารถใช้เมธอด HTTP นี้กับพาธนี้ได้
409ไม่สามารถดำเนินการนี้ได้ในสถานะปัจจุบัน (ตัวอย่างเช่น ลบคอนเทนต์ที่ออโตเมชันกำลังทำงานอยู่ หรือคำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่) ใช้ error.code เพื่อแยกแยะเหตุผล
422พารามิเตอร์ไม่ถูกต้อง หรือรับคำขอนี้ไม่ได้ สำหรับ validation_error error.details จะมีเหตุผลของแต่ละพารามิเตอร์
429เกินขีดจำกัดอัตราการเรียกใช้งาน (Rate Limit)
500เกิดข้อผิดพลาดที่ไม่คาดคิด
503เริ่มดำเนินการไม่ได้ (ตัวอย่างเช่น เมื่อเริ่มการรันออโตเมชันไม่สำเร็จ) โปรดลองใหม่อีกครั้งภายหลัง

ข้อกำหนดทั่วไป

ขอบเขตที่อ่านและแก้ไขได้

คุณสามารถอ่านและแก้ไขได้ในขอบเขตเดียวกับที่เจ้าของ API Key มองเห็นบนหน้าจอ นอกจากโปรเจกต์ของตัวเองแล้ว ในแพลน Team เจ้าของทีมและผู้ดูแลระบบสามารถอ่านและแก้ไขโปรเจกต์ทั้งหมดของทีมได้ ส่วนสตาฟสามารถอ่านและแก้ไขโปรเจกต์ที่ได้รับสิทธิ์ ทรัพยากรที่อยู่นอกขอบเขตจะได้ผลลัพธ์ 404 เหมือนกับทรัพยากรที่ไม่มีอยู่

ข้อมูลที่ลบแล้ว

โปรเจกต์ คอนเซปต์ หัวข้อ คอนเทนต์ และสื่อที่ลบแล้วจะไม่ถูกส่งกลับ รวมถึงช่วงเวลาก่อนที่จะถูกลบถาวร เมื่อลบหัวข้อหรือคอนเซปต์ คอนเทนต์ภายใต้รายการนั้นก็จะไม่ถูกส่งกลับเช่นกัน

การแบ่งหน้า

รายการใช้ page (เริ่มจาก 1) และ per_page (1–100 ค่าเริ่มต้น 20) เพื่อเลือกช่วงที่ต้องการดึง meta จะมีจำนวนทั้งหมด (total) หน้าปัจจุบัน (current_page) จำนวนรายการต่อหน้า (per_page) และหน้าสุดท้าย (last_page)

วันที่และเวลา

วันที่และเวลาในการตอบกลับทั้งหมดอยู่ในรูปแบบ ISO 8601 ของ UTC (ตัวอย่าง: 2026-10-21T09:30:00Z) พารามิเตอร์ from / to รับได้ทั้งวันที่ (2026-10-21) วันที่และเวลา (2026-10-21T09:30:00) และวันที่และเวลาที่ระบุส่วนต่างเวลา (2026-10-21T18:30:00+09:00) ค่าที่ไม่มีส่วนต่างเวลาจะถือเป็น UTC โดย from รวมช่วงเวลานั้นด้วย และหากระบุเฉพาะวันที่ใน to จะรวมถึงสิ้นสุดวันนั้น (23:59:59)

ID

ทรัพยากรระบุด้วย ID สาธารณะที่เป็นตัวอักษรและตัวเลข เช่น project_unique และ variation_unique ID จะไม่เปลี่ยนแปลง

URL ของไฟล์

URL ของรูปภาพ วิดีโอ และเสียงจะถูกส่งกลับในรูปแบบ {url, expires_at} ไฟล์ที่ไม่เผยแพร่จะใช้ URL แบบมีลายเซ็นซึ่งใช้ไม่ได้หลังจาก expires_at (1 ชั่วโมงนับจากเวลาที่ออก) หากต้องการใช้ไฟล์ต่อ ให้ดาวน์โหลดและบันทึกก่อนหมดอายุ หรือเรียก API อีกครั้งเพื่อรับ URL ใหม่ ไฟล์ที่ตั้งค่าเป็นสาธารณะจะใช้ URL ที่ไม่มีวันหมดอายุ และ expires_at เป็น null

ประเภทของค่า

ค่าอย่าง status และ platform จะถูกส่งกลับเป็นสตริงตัวพิมพ์เล็กภาษาอังกฤษตามที่ระบุในหน้านี้ ค่าใหม่อาจเพิ่มขึ้นเมื่อมีการเพิ่มฟีเจอร์ จึงควรเขียนโปรแกรมให้ทำงานต่อได้แม้ได้รับค่าที่ไม่รู้จัก

จำนวนเงิน

จำนวนเงินเป็นจำนวนเต็มในหน่วยที่เล็กที่สุดของสกุลเงิน (เซนต์สำหรับ USD เยนสำหรับ JPY) สกุลเงินอยู่ใน currency เป็นรหัส ISO 4217 ตัวพิมพ์เล็ก (usd, jpy เป็นต้น)

คำขอเขียน (แพลน Pro)

ด้วยเมธอดอื่นที่ไม่ใช่ GET คุณสามารถดำเนินการ เช่น เพิ่มหัวข้อ ลบคอนเทนต์ เริ่มออโตเมชัน อนุมัติโพสต์ และลงทะเบียน Webhook แต่ละการดำเนินการใช้กระบวนการเดียวกับการดำเนินการเดียวกันบนหน้าจอ และใช้กฎเดียวกัน คำขอเขียนใช้ได้เฉพาะเมื่อเจ้าของ API Key อยู่ในแพลน Pro ขึ้นไป หากต่ำกว่าแพลน Pro จะได้ 403 plan_required สมาชิกทีมจะได้ 403 team_plan_lost เมื่อเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป อย่างไรก็ตาม การหยุดออโตเมชัน การแสดงรายการและลบ Webhook และการแสดงรายการโพสต์ที่รอตรวจสอบใช้ได้ในทุกแพลน (จึงหยุดออโตเมชันและการแจ้งเตือนที่กำลังทำงานอยู่ได้แม้หลังเปลี่ยนแพลน) การสร้างสิ่งใหม่จะส่งกลับ 201 ส่วนอย่างอื่นจะส่งกลับ 200

Idempotency-Key

เพื่อให้ทำซ้ำการดำเนินการได้อย่างปลอดภัยเมื่อการเชื่อมต่อขาดและไม่ได้รับการตอบกลับ endpoint สำหรับเขียนบางรายการจึงรับส่วนหัว Idempotency-Key (endpoint ที่รับจะระบุไว้ในตารางพารามิเตอร์ และจำเป็นต้องใช้เมื่อเริ่มออโตเมชัน) ให้ใช้สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (เช่น UUID เป็นอักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิม (เมธอด พาธ และเนื้อหา) ซ้ำด้วย Key เดิม ระบบจะไม่ดำเนินการซ้ำ แต่จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม พร้อมส่วนหัว Idempotent-Replayed: true Key มีอายุ 24 ชั่วโมงต่อเจ้าของ API Key หากส่งเนื้อหาที่ต่างกันด้วย Key เดิมจะได้ 422 idempotency_key_reused และหากคำขอแรกยังประมวลผลอยู่จะได้ 409 idempotency_request_in_progress การตอบกลับ 5xx จะไม่ถูกบันทึก จึงลองใหม่ด้วย Key เดิมได้ ใน endpoint ที่จำเป็นต้องมีส่วนหัวนี้ หากไม่มีจะได้ 422 idempotency_key_required และหากรูปแบบไม่ถูกต้องจะได้ 422 idempotency_key_invalid

ขีดจำกัดอัตราการเรียกใช้งาน

ส่งคำขอได้สูงสุด 120 ครั้งต่อนาทีต่อ API Key (คำขอเขียนมีขีดจำกัดการเขียนที่อธิบายด้านล่างเพิ่มเติม) ตรวจสอบได้จากส่วนหัวการตอบกลับ X-RateLimit-Limit (ขีดจำกัด) และ X-RateLimit-Remaining (จำนวนที่เหลือ) เมื่อเกินขีดจำกัดจะได้ 429 และ Retry-After จะระบุจำนวนวินาทีที่ต้องรอก่อนลองใหม่

ขีดจำกัดอัตราการเขียน

คำขอเขียน (เมธอดอื่นที่ไม่ใช่ GET) จำกัดที่ 30 ครั้งต่อนาทีต่อ API Key นอกเหนือจากขีดจำกัด 120 ครั้งต่อนาที เมื่อเกินจะได้ 429 rate_limited และ Retry-After จะระบุจำนวนวินาทีที่ต้องรอก่อนลองใหม่ สำหรับคำขอเขียน ส่วนหัวการตอบกลับ X-RateLimit-Limit และ X-RateLimit-Remaining จะแสดงค่าของขีดจำกัดที่เหลือคำขอน้อยกว่าจากทั้งสองขีดจำกัด

รหัสข้อผิดพลาด

เมื่อเกิดข้อผิดพลาด error.code จะระบุประเภทของข้อผิดพลาด และ error.message จะมีคำอธิบายเป็นภาษาอังกฤษ รหัสที่ endpoint ใดก็ส่งกลับได้มีดังต่อไปนี้ ส่วนรหัสเฉพาะของแต่ละ endpoint (เช่น title_limit_reached) จะอยู่ในตารางข้อผิดพลาดของ endpoint นั้น ในโปรแกรมให้ใช้ error.code เพื่อแยกแยะข้อผิดพลาด

รหัสความหมาย
unauthorizedไม่มี API Key ไม่ถูกต้อง หรือถูกเพิกถอนแล้ว (401)
forbiddenไม่มีสิทธิ์ (403)
plan_requiredการดำเนินการที่ต้องใช้แพลน Pro ขึ้นไป (403)
team_plan_lostเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป สมาชิกทีมจึงเขียนไม่ได้ (403)
not_foundไม่มีทรัพยากร หรืออยู่นอกขอบเขตที่เข้าถึงได้ (404)
method_not_allowedไม่สามารถใช้เมธอด HTTP นี้กับพาธนี้ได้ (405)
conflictไม่สามารถดำเนินการนี้ได้ในสถานะปัจจุบัน (409)
idempotency_request_in_progressคำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่ (409)
validation_errorพารามิเตอร์ไม่ถูกต้อง (422)
idempotency_key_requiredไม่มีส่วนหัว Idempotency-Key ใน endpoint ที่จำเป็นต้องมี (422)
idempotency_key_invalidIdempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว (422)
idempotency_key_reusedใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน (422)
rate_limitedเกินขีดจำกัดอัตราการเรียกใช้งาน (429)
internal_errorเกิดข้อผิดพลาดที่ไม่คาดคิด (500)

ตัวอย่าง 422

{
  "error": {
    "code": "validation_error",
    "message": "The per page field must not be greater than 100.",
    "details": {
      "per_page": ["The per page field must not be greater than 100."]
    }
  }
}

บัญชี

ข้อมูลบัญชีของเจ้าของ API Key ดึงแพลน ยอด Token คงเหลือ ปริมาณการใช้ พื้นที่เก็บข้อมูล การชำระเงิน และสถานะโปรแกรมแนะนำได้

GET › /me

ข้อมูลบัญชี

ดึงโปรไฟล์ แพลน ขีดจำกัดของแต่ละแพลน และทีมของเจ้าของ API Key

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
user_unique string ID ของผู้ใช้
nickname string | null ชื่อเล่น
email string อีเมลที่ใช้เข้าสู่ระบบ
plan string แพลน free / vault / plus / pro / team
limits object ขีดจำกัดของแพลนปัจจุบัน null หมายถึงไม่จำกัด
limits.projects integer | null จำนวนโปรเจกต์ที่สร้างได้
limits.moviemode_variations_per_title integer | null จำนวนคอนเทนต์ต่อหัวข้อวิดีโอ 1 รายการ
limits.blogmode_variations_per_title integer | null จำนวนคอนเทนต์ต่อหัวข้อบล็อก 1 รายการ
limits.carouselmode_variations_per_title integer | null จำนวนคอนเทนต์ต่อหัวข้อแคโรเซล 1 รายการ
limits.postmode_variations_per_concept integer | null จำนวนคอนเทนต์ต่อคอนเซปต์โพสต์ 1 รายการ
limits.team boolean ใช้ฟีเจอร์ทีมได้หรือไม่
limits.script_duration_max integer ความยาวสูงสุดของสคริปต์วิดีโอ (วินาที)
limits.reading_time_max integer เวลาอ่านสูงสุดของบทความบล็อก (นาที)
limits.reading_time_max_fulltext integer เวลาอ่านสูงสุดของบทความบล็อกเมื่ออ่านออกเสียงทั้งบทความ (นาที)
limits.slide_count_max integer จำนวนสไลด์สูงสุดของแคโรเซล
limits.cta_enabled boolean ใช้ CTA (เช่น สไลด์สุดท้ายที่กระตุ้นให้ลงมือทำ) ได้หรือไม่
limits.thread_enabled boolean ใช้เธรดและโพสต์ที่มีรูปภาพกับโพสต์ได้หรือไม่
limits.schedule_title_variation_max integer จำนวนหัวข้อและคอนเทนต์ที่ระบุได้ต่อ 1 ครั้งเมื่อสร้างรายการที่ตั้งเวลา
limits.schedule_variation_create_max integer จำนวนคอนเทนต์ที่สร้างได้ต่อ 1 ครั้งเมื่อสร้างรายการที่ตั้งเวลา
language string | null ภาษาที่แสดงบนหน้าจอ
timezone string เขตเวลาที่ตั้งค่าไว้ (รูปแบบ IANA ตัวอย่าง: Asia/Tokyo)
team object | null ทีมที่สังกัด เป็น null หากไม่ได้อยู่ในแพลน Team หรือไม่ได้สังกัดทีม
team.team_unique string ID ของทีม
team.role string บทบาทในทีม owner (เจ้าของ) / admin (ผู้ดูแลระบบ) / staff (สตาฟ)
created_at string เวลาที่สร้างบัญชี
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "user_unique": "aB3dE5gH7j",
    "nickname": "Alice",
    "email": "alice@example.com",
    "plan": "pro",
    "limits": {
      "projects": 3,
      "moviemode_variations_per_title": null,
      "blogmode_variations_per_title": null,
      "carouselmode_variations_per_title": null,
      "postmode_variations_per_concept": null,
      "team": false,
      "script_duration_max": 1800,
      "reading_time_max": 15,
      "reading_time_max_fulltext": 4,
      "slide_count_max": 20,
      "cta_enabled": true,
      "thread_enabled": true,
      "schedule_title_variation_max": 50,
      "schedule_variation_create_max": 5
    },
    "language": "ja",
    "timezone": "Asia/Tokyo",
    "team": null,
    "created_at": "2026-09-01T10:20:30Z"
  }
}
GET › /me/subscription

การสมัครใช้งาน

ดึงสถานะของแพลนที่ใช้อยู่ รอบการเรียกเก็บเงิน การยกเลิกที่กำหนดไว้ และการเปลี่ยนแพลนที่กำหนดไว้ สมาชิกทีมจะได้รับข้อมูลการสมัครของเจ้าของทีม

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
plan string แพลน free / vault / plus / pro / team
status string สถานะการสมัคร active (ใช้งานอยู่) / past_due (ชำระเงินล่าช้า) / trialing (กำลังทดลองใช้) / none (ไม่มีแพลนแบบชำระเงิน)
managed_by_team boolean ใช้แพลนผ่านการสมัครของเจ้าของทีมหรือไม่ เมื่อเป็น true ฟิลด์รอบเวลาและการยกเลิกจะเป็นค่าของเจ้าของ
current_period_start string | null เวลาเริ่มต้นของรอบการเรียกเก็บเงินปัจจุบัน
current_period_end string | null เวลาสิ้นสุดของรอบการเรียกเก็บเงินปัจจุบัน (วันที่เรียกเก็บเงินครั้งถัดไป)
cancel_at_period_end boolean กำหนดให้ยกเลิกเมื่อสิ้นสุดรอบการเรียกเก็บเงินปัจจุบันหรือไม่
cancel_at string | null เวลาที่การสมัครจะถูกยกเลิก
canceled_at string | null เวลาที่ดำเนินการขอยกเลิก
scheduled_change object | null การเปลี่ยนแพลนที่กำหนดไว้ (เป็น null หากไม่มี)
scheduled_change.plan string แพลนหลังการเปลี่ยนแปลง
scheduled_change.effective_at string | null เวลาที่การเปลี่ยนแปลงมีผล
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/subscription" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/subscription",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/subscription", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/subscription")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/subscription"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/subscription");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "plan": "pro",
    "status": "active",
    "managed_by_team": false,
    "current_period_start": "2026-10-01T00:00:00Z",
    "current_period_end": "2026-11-01T00:00:00Z",
    "cancel_at_period_end": false,
    "cancel_at": null,
    "canceled_at": null,
    "scheduled_change": {
      "plan": "plus",
      "effective_at": "2026-11-01T00:00:00Z"
    }
  }
}
GET › /me/tokens

ยอด Token คงเหลือ

ดึงยอด Token คงเหลือที่ใช้ได้ ในทีมจะส่งกลับยอดคงเหลือที่ทีมใช้ร่วมกันและโควตาที่กำหนดให้คุณ

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
balance integer ยอดคงเหลือ
reserved integer จำนวนที่กันไว้สำหรับงานที่กำลังทำงานอยู่
available integer จำนวนที่ใช้ได้ตอนนี้ (ยอดคงเหลือหักจำนวนที่กันไว้)
wallet string personal (ยอดคงเหลือของคุณเอง) / team (ยอดคงเหลือที่ทีมใช้ร่วมกัน)
team_quota object | null โควตาของคุณที่เจ้าของทีมกำหนดไว้ เป็น null เมื่อคุณใช้ยอดคงเหลือส่วนตัว และสำหรับเจ้าของทีม
team_quota.unlimited boolean โควตาไม่จำกัดหรือไม่
team_quota.view_only boolean ดูได้อย่างเดียวและใช้ Token ไม่ได้หรือไม่
team_quota.budget integer | null ขีดจำกัดต่อรอบ (null หมายถึงไม่จำกัด 0 หมายถึงดูได้อย่างเดียว)
team_quota.used integer จำนวนที่ใช้ไปในรอบปัจจุบัน
team_quota.available integer | null จำนวนที่เหลือในรอบปัจจุบัน (เป็น null หากไม่จำกัด)
team_quota.period string | null รอบของขีดจำกัด day / week / month (เป็น null หากไม่มีขีดจำกัด)
team_quota.next_reset_at string | null เวลาที่ปริมาณการใช้จะรีเซ็ต
auto_purchase.enabled boolean เปิดการซื้ออัตโนมัติเมื่อยอดคงเหลือเหลือน้อยหรือไม่
auto_purchase.plan string | null แพ็กเกจ Token ที่ซื้ออัตโนมัติ (ตัวอย่าง: token_100) เป็น null เมื่อปิด
auto_purchase.threshold integer จะซื้ออัตโนมัติเมื่อยอดคงเหลือต่ำกว่าค่านี้
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/tokens" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/tokens",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/tokens", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/tokens")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/tokens"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/tokens");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "balance": 90000,
    "reserved": 1200,
    "available": 88800,
    "wallet": "team",
    "team_quota": {
      "unlimited": false,
      "view_only": false,
      "budget": 10000,
      "used": 2500,
      "available": 7500,
      "period": "week",
      "next_reset_at": "2026-10-26T00:00:00Z"
    },
    "auto_purchase": {
      "enabled": true,
      "plan": "token_100",
      "threshold": 5000
    }
  }
}
GET › /me/token-usage

การใช้ Token

ดึงปริมาณการใช้และการเพิ่ม Token แยกรายวันหรือรายเดือน การใช้จะรวมยอดทีละ 1 วัน และยอดของวันก่อนหน้าจะปรากฏประมาณ 2:45 UTC (ไม่รวมการใช้ของวันนี้) การเพิ่มจากการซื้อและโบนัสจะปรากฏทันที

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
from คิวรี string (YYYY-MM-DD) ไม่บังคับ — วันที่เริ่มต้นของช่วง (UTC) หากไม่ระบุจะเป็น 29 วันก่อน to
to คิวรี string (YYYY-MM-DD) ไม่บังคับ — วันที่สิ้นสุดของช่วง (UTC รวมวันนั้น) หากไม่ระบุจะเป็นวันนี้ ช่วงเวลายาวได้สูงสุด 366 วัน
group_by คิวรี string ไม่บังคับ day หน่วยที่ใช้จัดกลุ่ม day / month
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].period string ช่วงเวลา รายวันเป็น YYYY-MM-DD รายเดือนเป็น YYYY-MM ไม่รวมช่วงที่ไม่มีการใช้และการเพิ่ม
data[].consumed integer ปริมาณการใช้
data[].added integer จำนวนที่เพิ่ม (หลังหักส่วนที่ลดลง เช่น รางวัลแนะนำที่ถูกเพิกถอน)
data[].consumed_by_type object รายละเอียดการใช้แยกตามประเภท (text / image / video / audio เป็นต้น)
data[].added_by_type object รายละเอียดการเพิ่มแยกตามประเภท purchase (ซื้อ) / bonus (โบนัส) / refund (คืนเงิน) / referral_revoke (เพิกถอนสิทธิประโยชน์การแนะนำ เป็นค่าติดลบ)
meta.from string วันที่เริ่มต้นของช่วงที่รวมยอด
meta.to string วันที่สิ้นสุดของช่วงที่รวมยอด
meta.group_by string หน่วยที่ใช้จัดกลุ่มผลลัพธ์
meta.total_consumed integer ยอดรวมการใช้ในช่วงเวลา
meta.total_added integer ยอดรวมการเพิ่มในช่วงเวลา
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 forbidden สตาฟที่ใช้ Token ของทีม (เฉพาะเจ้าของทีมและผู้ดูแลระบบเท่านั้นที่ดึงประวัติการใช้ Token ของทีมได้)
422 validation_error ช่วงเวลายาวเกิน 366 วัน to ก่อน from อ่านค่าเป็นวันที่ไม่ได้ หรือ group_by ไม่ใช่ day / month
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "period": "2026-10-18",
      "consumed": 450,
      "added": 0,
      "consumed_by_type": { "image": 300, "text": 150 },
      "added_by_type": {}
    },
    {
      "period": "2026-10-20",
      "consumed": 1000,
      "added": 4800,
      "consumed_by_type": { "video": 1000 },
      "added_by_type": { "purchase": 5000, "referral_revoke": -200 }
    }
  ],
  "meta": {
    "from": "2026-10-01",
    "to": "2026-10-20",
    "group_by": "day",
    "total_consumed": 1450,
    "total_added": 4800
  }
}
GET › /me/storage

พื้นที่เก็บข้อมูล

ดึงปริมาณการใช้พื้นที่เก็บข้อมูล ความจุ และรายละเอียดแยกตามประเภทไฟล์ ในทีมจะส่งกลับพื้นที่เก็บข้อมูลที่ทีมใช้ร่วมกัน

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
used_bytes integer ปริมาณการใช้ (ไบต์) เท่ากับยอดรวมของ by_type
capacity_bytes integer | null ความจุ (ไบต์) null หมายถึงไม่จำกัด และ 0 หมายถึงไม่มีพื้นที่เก็บข้อมูล (แพลน Free)
by_type[].file_type string | null ประเภทไฟล์ material (สื่อ) / image (รูปภาพ) / video (วิดีโอ) / bgm / voice (เสียง) / movie (วิดีโอที่เสร็จแล้ว)
by_type[].bytes integer ปริมาณการใช้ของประเภทนั้น (ไบต์)
by_type[].files integer จำนวนไฟล์ของประเภทนั้น
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/storage" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/storage",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/storage", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/storage")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/storage"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/storage");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "used_bytes": 734003200,
    "capacity_bytes": null,
    "by_type": [
      { "file_type": "image", "bytes": 52428800, "files": 120 },
      { "file_type": "movie", "bytes": 629145600, "files": 8 },
      { "file_type": "voice", "bytes": 52428800, "files": 15 }
    ]
  }
}
GET › /me/payments

ประวัติการชำระเงิน

ดึงการชำระเงิน เช่น ค่าแพลนและการซื้อ Token เรียงจากใหม่ไปเก่า ใช้นำเข้าข้อมูลสู่ระบบบัญชีได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
status คิวรี string ไม่บังคับ — กรองตามสถานะการชำระเงิน (คั่นด้วยเครื่องหมายจุลภาค) succeeded / refunded / partially_refunded หากไม่ระบุจะเป็นทั้งหมด
type คิวรี string ไม่บังคับ — กรองตามประเภทการชำระเงิน (คั่นด้วยเครื่องหมายจุลภาค) ค่าเหมือนกับ data[].type
from คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือหลังจากนั้น
to คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือก่อนหน้านั้น
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].payment_unique string ID ของการชำระเงิน
data[].type string ประเภท token_first_time (การซื้อ Token ครั้งแรก) / token_regular (การซื้อ Token) / subscription_vault, subscription_plus, subscription_pro, subscription_team (ค่าแพลนแต่ละแพลน)
data[].description string ชื่อของการชำระเงิน (ภาษาอังกฤษ)
data[].status string สถานะ succeeded (ชำระแล้ว) / refunded (คืนเงินเต็มจำนวน) / partially_refunded (คืนเงินบางส่วน)
data[].currency string สกุลเงิน (ISO 4217 ตัวพิมพ์เล็ก)
data[].amount_subtotal integer จำนวนเงินก่อนภาษี (หน่วยที่เล็กที่สุด)
data[].tax_amount integer ภาษี (หน่วยที่เล็กที่สุด)
data[].amount_total integer จำนวนเงินรวมภาษี (หน่วยที่เล็กที่สุด)
data[].line_items[] object รายการย่อย type (base_plan: ค่าแพลน / storage_addon: พื้นที่เก็บข้อมูลเพิ่ม / extra_member: สมาชิกเพิ่ม), quantity (จำนวน), amount (จำนวนเงิน) และ description (คำอธิบาย เป็น null หากไม่มี)
data[].receipt_url string | null URL ของใบเสร็จ (Stripe) เมื่อเวลาผ่านไปหลังจากออก อาจเปิดไม่ได้
data[].invoice_pdf_url string | null URL ของใบแจ้งหนี้ PDF (Stripe) เมื่อเวลาผ่านไปหลังจากออก อาจเปิดไม่ได้
data[].created_at string เวลาที่ชำระเงิน
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "payment_unique": "Xy12AbCd34Ef",
      "type": "subscription_team",
      "description": "Team Monthly",
      "status": "succeeded",
      "currency": "usd",
      "amount_subtotal": 5000,
      "tax_amount": 500,
      "amount_total": 5500,
      "line_items": [
        { "type": "base_plan", "quantity": 1, "amount": 4000, "description": "Team plan" },
        { "type": "extra_member", "quantity": 2, "amount": 1000, "description": null }
      ],
      "receipt_url": "https://invoice.stripe.com/i/...",
      "invoice_pdf_url": "https://pay.stripe.com/invoice/.../pdf",
      "created_at": "2026-10-01T08:00:00Z"
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 10, "last_page": 1 }
}
GET › /me/referral

โปรแกรมแนะนำ

ดึงรหัสแนะนำ รวมถึงผลการแนะนำและสถานะรางวัล

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
code string | null รหัสแนะนำ (เป็น null หากยังไม่มี)
referral_url string | null URL สำหรับแนะนำ (เป็น null หากไม่มีรหัสแนะนำ)
is_active boolean รหัสแนะนำใช้งานได้หรือไม่
reward_type string | null วิธีรับรางวัล cash (เงินสด) / token (Token) เป็น null หากไม่มีรหัสแนะนำ
clicks integer จำนวนครั้งที่ URL แนะนำถูกเปิด
signups integer จำนวนคนที่ลงทะเบียนผ่านการแนะนำของคุณ
conversions integer จำนวนคนที่สมัครแพลนแบบชำระเงินผ่านการแนะนำของคุณ
earned object รางวัลที่ยืนยันแล้วจนถึงตอนนี้ {amount (หน่วยที่เล็กที่สุด), currency}
earned_tokens integer Token ที่ได้รับจนถึงตอนนี้
pending object รางวัลที่รอการยืนยัน {amount, currency}
available object รางวัลที่ขอรับได้ {amount, currency}
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/me/referral" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/me/referral",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/me/referral", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/me/referral")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/me/referral"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/me/referral");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "code": "REFk5m2j8x9ab",
    "referral_url": "https://stepeee.com?ref=REFk5m2j8x9ab",
    "is_active": true,
    "reward_type": "cash",
    "clicks": 12,
    "signups": 4,
    "conversions": 2,
    "earned": { "amount": 1300, "currency": "usd" },
    "earned_tokens": 0,
    "pending": { "amount": 300, "currency": "usd" },
    "available": { "amount": 800, "currency": "usd" }
  }
}

โปรเจกต์

ดึงโปรเจกต์ และโครงสร้างของคอนเซปต์และหัวข้อภายในโปรเจกต์

GET › /projects

รายการโปรเจกต์

ดึงโปรเจกต์ที่เข้าถึงได้ เรียงจากใหม่ไปเก่า

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].project_unique string ID ของโปรเจกต์
data[].project_name string ชื่อโปรเจกต์
data[].description string | null คำอธิบายโปรเจกต์
data[].access_level string สิทธิ์ของคุณ owner (โปรเจกต์ของคุณเอง) / admin (สิทธิ์เต็มในฐานะเจ้าของทีมหรือผู้ดูแลระบบ) / edit (ได้รับสิทธิ์แก้ไขในทีม)
data[].team object | null ทีมหากเป็นโปรเจกต์ของทีม หรือ null หากเป็นโปรเจกต์ของคุณคนเดียว
data[].team.team_unique string ID ของทีม
data[].is_readonly boolean โปรเจกต์อ่านได้อย่างเดียวเพราะเกินขีดจำกัดหลังลดระดับแพลนหรือไม่ (จะยกเลิกเมื่ออัปเกรด)
data[].readonly_since string | null เวลาที่โปรเจกต์กลายเป็นอ่านได้อย่างเดียว
data[].created_at string สร้างเมื่อ
data[].updated_at string อัปเดตเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "project_unique": "a1b2c3d4e5",
      "project_name": "Sample Project",
      "description": "Sample project description",
      "access_level": "owner",
      "team": null,
      "is_readonly": false,
      "readonly_since": null,
      "created_at": "2026-01-10T09:00:00Z",
      "updated_at": "2026-10-01T12:00:00Z"
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}

รายละเอียดโปรเจกต์

ดึงรายละเอียดของโปรเจกต์ 1 รายการ พร้อมจำนวนคอนเซปต์และหัวข้อต่อโหมด และจำนวนคอนเทนต์ตามความคืบหน้า

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
project_unique string ID ของโปรเจกต์
project_name string ชื่อโปรเจกต์
description string | null คำอธิบายโปรเจกต์
access_level string สิทธิ์ของคุณ owner (โปรเจกต์ของคุณเอง) / admin (สิทธิ์เต็มในฐานะเจ้าของทีมหรือผู้ดูแลระบบ) / edit (ได้รับสิทธิ์แก้ไขในทีม)
team object | null ทีมหากเป็นโปรเจกต์ของทีม หรือ null หากเป็นโปรเจกต์ของคุณคนเดียว
team.team_unique string ID ของทีม
is_readonly boolean โปรเจกต์อ่านได้อย่างเดียวเพราะเกินขีดจำกัดหลังลดระดับแพลนหรือไม่ (จะยกเลิกเมื่ออัปเกรด)
readonly_since string | null เวลาที่โปรเจกต์กลายเป็นอ่านได้อย่างเดียว
created_at string สร้างเมื่อ
updated_at string อัปเดตเมื่อ
scope string ภูมิภาคเป้าหมาย global (ไม่ระบุ) / region (สำหรับบางประเทศ)
scope_region string | null ประเทศเป้าหมาย (ISO 3166-1 alpha-2 ตัวอย่าง: JP) เป็น null เมื่อเป็น global
counts.{mode}.concepts integer จำนวนคอนเซปต์ต่อโหมด (moviemode / blogmode / carouselmode / postmode)
counts.{mode}.titles integer | null จำนวนหัวข้อ (postmode เป็น null เพราะไม่มีหัวข้อ)
counts.{mode}.contents object จำนวนคอนเทนต์ {total (รวม), not_started (ยังไม่เริ่ม), in_progress (กำลังผลิต), complete (เสร็จสมบูรณ์)}
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "project_unique": "a1b2c3d4e5",
    "project_name": "Sample Project",
    "description": "Sample project description",
    "access_level": "owner",
    "team": null,
    "is_readonly": false,
    "readonly_since": null,
    "created_at": "2026-01-10T09:00:00Z",
    "updated_at": "2026-10-01T12:00:00Z",
    "scope": "region",
    "scope_region": "JP",
    "counts": {
      "moviemode": {
        "concepts": 2,
        "titles": 5,
        "contents": { "total": 8, "not_started": 1, "in_progress": 3, "complete": 4 }
      },
      "blogmode": {
        "concepts": 1,
        "titles": 3,
        "contents": { "total": 3, "not_started": 0, "in_progress": 1, "complete": 2 }
      },
      "carouselmode": {
        "concepts": 0,
        "titles": 0,
        "contents": { "total": 0, "not_started": 0, "in_progress": 0, "complete": 0 }
      },
      "postmode": {
        "concepts": 1,
        "titles": null,
        "contents": { "total": 1, "not_started": 0, "in_progress": 1, "complete": 0 }
      }
    }
  }
}
GET › /projects/{project_unique}/concepts

รายการคอนเซปต์

ดึงคอนเซปต์ในโปรเจกต์ข้ามทุกโหมด เรียงจากใหม่ไปเก่า

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
mode คิวรี string ไม่บังคับ — กรองตามโหมด ระบุได้หลายค่าจาก moviemode (วิดีโอ), blogmode (บล็อก), carouselmode (แคโรเซล) และ postmode (โพสต์) โดยคั่นด้วยเครื่องหมายจุลภาค หากไม่ระบุจะเป็นทุกโหมด
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].concept_unique string ID ของคอนเซปต์
data[].mode string moviemode (วิดีโอ) / blogmode (บล็อก) / carouselmode (แคโรเซล) / postmode (โพสต์)
data[].concept_name string ชื่อคอนเซปต์
data[].title_count integer | null จำนวนหัวข้อ (postmode เป็น null)
data[].content_count integer จำนวนคอนเทนต์
data[].created_at string สร้างเมื่อ
data[].updated_at string อัปเดตเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "concept_unique": "pC7d2KqLx01m",
      "mode": "postmode",
      "concept_name": "SaaS growth tips",
      "title_count": null,
      "content_count": 1,
      "created_at": "2026-10-02T09:00:00Z",
      "updated_at": "2026-10-02T09:00:00Z"
    },
    {
      "concept_unique": "mC4f9TnB2q",
      "mode": "moviemode",
      "concept_name": "Cat facts",
      "title_count": 3,
      "content_count": 5,
      "created_at": "2026-09-20T03:00:00Z",
      "updated_at": "2026-09-28T03:00:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}/concepts/{concept_unique}

รายละเอียดคอนเซปต์

ดึงรายละเอียดของคอนเซปต์ 1 รายการ คอนเซปต์วิดีโอ บล็อก และแคโรเซลจะมีรายการหัวข้อ ส่วนคอนเซปต์โพสต์ (postmode) จะมีลักษณะตัวตนของผู้โพสต์และกฎการโพสต์

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
concept_unique พาธ string จำเป็น — ID ของคอนเซปต์
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
concept_unique / mode / concept_name / title_count / content_count / created_at / updated_at — เหมือนกับรายการคอนเซปต์
description string | null คำอธิบายคอนเซปต์
scope string ภูมิภาคเป้าหมาย global (ไม่ระบุ) / region (สำหรับบางประเทศ)
scope_region string | null ประเทศเป้าหมาย (ISO 3166-1 alpha-2 ตัวอย่าง: JP) เป็น null เมื่อเป็น global
default_template_unique string | null เทมเพลตการตั้งค่าที่ใช้กับคอนเทนต์ใหม่ (template_unique ในรายการเทมเพลต) เป็น null เมื่อยังไม่ได้ตั้งค่า หรือสำหรับ postmode
titles array | null รายการหัวข้อ (ใหม่ไปเก่า) postmode เป็น null
titles[].title_unique string ID ของหัวข้อ
titles[].title_name string หัวข้อ
titles[].article_type string | null ประเภท standard / news สำหรับ moviemode, standard / news / promotion (การแนะนำสินค้า) สำหรับ blogmode เป็น null สำหรับ carouselmode
titles[].content_count integer จำนวนคอนเทนต์ของหัวข้อนั้น
persona object | null ลักษณะตัวตนของผู้โพสต์ (เฉพาะ postmode เป็น null หากยังไม่ได้สร้าง)
persona.persona_unique string ID ของลักษณะตัวตน
persona.gender string เพศ male / female / undisclosed (ไม่เปิดเผย)
persona.generation string ช่วงวัย 10s / 20s / 30s / 40s / 50s / 60s_plus
persona.region string | null รหัสประเทศของวัฒนธรรมภูมิภาค
persona.keywords object คีย์เวิร์ดของลักษณะตัวตน occupation (อาชีพ), industry (อุตสาหกรรม), residence (ที่อยู่อาศัย), workstyle (รูปแบบการทำงาน), household (ครัวเรือน) และ personality (บุคลิกภาพ) เป็นสตริง ส่วน interest (ความสนใจ) และ expertise (ความเชี่ยวชาญ) เป็นอาร์เรย์ของสตริง จะมีเฉพาะที่ตั้งค่าไว้
persona.description string ข้อความลักษณะตัวตน
persona.casual_description string | null ข้อความลักษณะตัวตนที่ใช้กับโพสต์ในชีวิตประจำวัน (เป็น null หากไม่มี)
persona.taboos array สิ่งที่ควรหลีกเลี่ยงในโพสต์
persona.timezone_mode string วิธีกำหนดเขตเวลา auto (กำหนดจากภูมิภาค หรือจากภาษาของโพสต์เมื่อไม่มีภูมิภาค) / specify (เขตเวลาที่ระบุ)
persona.timezone string | null เขตเวลาที่ใช้กับตารางเวลาโพสต์ (รูปแบบ IANA) เป็น null เมื่อกำหนดไม่ได้เพราะยังไม่ได้สร้างกฎการโพสต์
rule object | null กฎการโพสต์ (เฉพาะ postmode เป็น null หากยังไม่ได้สร้าง)
rule.rule_unique string ID ของกฎการโพสต์
rule.language string ภาษาของโพสต์
rule.formality string น้ำเสียง very_casual (เป็นกันเองมาก) / casual (เป็นกันเอง) / normal (ปกติ) / polite (สุภาพ) / honorific (สุภาพมาก)
rule.emoji string อีโมจิ never (ไม่ใช้) / sometimes (ใช้บางครั้ง) / often (ใช้บ่อย) / always (ใช้เสมอ)
rule.line_break string ปริมาณการขึ้นบรรทัดใหม่ none (ไม่มี) / moderate (พอเหมาะ) / frequent (ค่อนข้างมาก)
rule.post_type_share object สัดส่วนของแต่ละประเภทโพสต์ (%) assertion (ความคิดเห็น) / knowhow (ความรู้และวิธีการ) / experience (ประสบการณ์) / casual (ชีวิตประจำวัน)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
404 not_found ไม่มีคอนเซปต์ (Concept not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "concept_unique": "pC7d2KqLx01m",
    "mode": "postmode",
    "concept_name": "SaaS growth tips",
    "title_count": null,
    "content_count": 1,
    "created_at": "2026-10-02T09:00:00Z",
    "updated_at": "2026-10-02T09:00:00Z",
    "description": "Practical growth tips for SaaS founders",
    "scope": "global",
    "scope_region": null,
    "default_template_unique": null,
    "titles": null,
    "persona": {
      "persona_unique": "aV3kQ9mN2pRt",
      "gender": "female",
      "generation": "30s",
      "region": "JP",
      "keywords": { "occupation": "SaaS marketer", "interest": ["growth", "analytics"] },
      "description": "A B2B SaaS marketer with ten years of experience...",
      "casual_description": null,
      "taboos": ["politics"],
      "timezone_mode": "auto",
      "timezone": "Asia/Tokyo",
      "updated_at": "2026-10-02T09:10:00Z"
    },
    "rule": {
      "rule_unique": "rU5tW7yZ9aBc",
      "language": "ja",
      "formality": "polite",
      "emoji": "sometimes",
      "line_break": "moderate",
      "post_type_share": { "assertion": 40, "knowhow": 30, "experience": 20, "casual": 10 },
      "updated_at": "2026-10-02T09:20:00Z"
    }
  }
}

คอนเทนต์

ดึงคอนเทนต์วิดีโอ บล็อก แคโรเซล และโพสต์ข้ามทุกโหมด ในรายละเอียด package จะมีเนื้อหาที่โพสต์ไปยังแต่ละSNS หรือไซต์ (ข้อความ รูปภาพ วิดีโอ และแคปชัน) จึงนำคอนเทนต์ที่สร้างใน Stepeee เข้าสู่ระบบของคุณเองได้

GET › /projects/{project_unique}/contents

รายการคอนเทนต์

ดึงคอนเทนต์ในโปรเจกต์ (วิดีโอ บล็อก แคโรเซล และโพสต์) ข้ามทุกโหมด สามารถกรองตามความคืบหน้า ภาษาที่เผยแพร่ สถานะการโพสต์ และอื่น ๆ ได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
mode คิวรี string ไม่บังคับ — กรองตามโหมด ระบุได้หลายค่าจาก moviemode (วิดีโอ), blogmode (บล็อก), carouselmode (แคโรเซล) และ postmode (โพสต์) โดยคั่นด้วยเครื่องหมายจุลภาค หากไม่ระบุจะเป็นทุกโหมด
status คิวรี string ไม่บังคับ — กรองตามความคืบหน้า not_started / in_progress / complete
concept_unique คิวรี string ไม่บังคับ — ส่งกลับเฉพาะคอนเทนต์ของคอนเซปต์นี้
title_unique คิวรี string ไม่บังคับ — ส่งกลับเฉพาะคอนเทนต์ของหัวข้อนี้ (ไม่รวม postmode เพราะไม่มีหัวข้อ)
language คิวรี string ไม่บังคับ — กรองตามภาษาที่เผยแพร่ (ตัวอย่าง: ja, en)
published คิวรี string ไม่บังคับ — true ส่งกลับเฉพาะคอนเทนต์ที่โพสต์แล้ว และ false ส่งกลับเฉพาะคอนเทนต์ที่ยังไม่ได้โพสต์
from คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือหลังจากนั้น
to คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือก่อนหน้านั้น
sort คิวรี string ไม่บังคับ -created_at ลำดับ created_at / -created_at / updated_at / -updated_at (- หมายถึงใหม่ไปเก่า)
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].mode string moviemode (วิดีโอ) / blogmode (บล็อก) / carouselmode (แคโรเซล) / postmode (โพสต์)
data[].variation_unique string ID ของคอนเทนต์
data[].variation_no integer หมายเลขภายในหัวข้อ (postmode คือภายในคอนเซปต์)
data[].title string หัวข้อ (postmode เป็นชื่อคอนเซปต์)
data[].concept object คอนเซปต์ที่สังกัด {concept_unique, concept_name}
data[].title_unique string | null ID ของหัวข้อที่สังกัด (postmode เป็น null)
data[].language string | null ภาษาที่เผยแพร่ (ภาษาที่ผู้ชมและผู้อ่านเห็น) เป็น null หากยังไม่ได้ตั้งค่า
data[].status string ความคืบหน้า not_started (ยังไม่เริ่ม) / in_progress (กำลังผลิต) / complete (ทำเครื่องหมายว่าเสร็จสมบูรณ์)
data[].progress.step_process integer Step ที่เสร็จสิ้นแล้ว (0–3)
data[].progress.is_complete boolean ทำเครื่องหมายว่าเสร็จสมบูรณ์แล้วหรือไม่
data[].is_readonly boolean อ่านได้อย่างเดียวเพราะลดระดับแพลนหรือไม่
data[].confirmed_at string | null เวลาที่ทำเครื่องหมายว่าตรวจสอบเนื้อหาแล้ว (postmode และกรณีที่ยังไม่ได้ตรวจสอบเป็น null)
data[].published_platforms array ปลายทางที่โพสต์แล้ว (success / partial_success)
data[].created_at string สร้างเมื่อ
data[].updated_at string อัปเดตเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "mode": "blogmode",
      "variation_unique": "bmA1b2C3d4E5",
      "variation_no": 1,
      "title": "How to start a blog",
      "concept": { "concept_unique": "bC2x8RtY4u", "concept_name": "Blogging for beginners" },
      "title_unique": "bT9kL3mN5pQr",
      "language": "en",
      "status": "complete",
      "progress": { "step_process": 3, "is_complete": true },
      "is_readonly": false,
      "confirmed_at": "2026-10-03T08:00:00Z",
      "published_platforms": [],
      "created_at": "2026-10-01T03:00:00Z",
      "updated_at": "2026-10-03T08:00:00Z"
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}/contents/{variation_unique}

รายละเอียดคอนเทนต์

ดึงรายละเอียดของคอนเทนต์ 1 รายการ package จะมีเนื้อหาที่โพสต์จริงไปยังแต่ละปลายทาง (เหมือนกับตอนโพสต์จาก Stepeee) สำหรับคอนเทนต์โพสต์ (postmode) ให้ดึงรายการโพสต์ด้วยตารางเวลา

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
variation_unique พาธ string จำเป็น — ID ของคอนเทนต์
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
mode / variation_unique / … / updated_at — เหมือนกับรายการคอนเทนต์
publish[] object ผลการโพสต์แยกตามปลายทาง
publish[].platform string ปลายทาง youtube / tiktok / instagram / x / wordpress / webhook
publish[].status string ผลการโพสต์ success (โพสต์แล้ว) / failed (ล้มเหลว) / scheduled (ตั้งเวลาไว้ที่ปลายทาง) / processing (กำลังประมวลผล) / partial_success (โพสต์สำเร็จ แต่ขั้นตอนที่เกี่ยวข้อง เช่น การตั้งค่าภาพขนาดย่อ ล้มเหลว) / reviewing (โพสต์สำเร็จและรอการตรวจสอบจากปลายทาง จึงยังไม่ทราบ URL)
publish[].post_url string | null URL ของโพสต์ (เป็น null หากยังไม่ได้กำหนด)
publish[].posted_at string | null เวลาที่โพสต์ (เป็น null หากยังไม่ได้โพสต์)
content object ข้อมูลที่สร้างขึ้นตามโหมด blogmode: body_html (เนื้อหาบทความ) / carouselmode: scenario (โครงสร้างสไลด์ resolved_header, resolved_footer และ resolved_texts เป็นข้อความในภาษาที่เผยแพร่) / moviemode: movie_unique, download_url, thumbnail_url (วิดีโอที่เลือกใน Step3 URL ใช้ได้ 1 ชั่วโมงหลังจากออก) / postmode: posts (post_text, post_type)
package object | null เนื้อหาที่จะโพสต์ postmode เป็น null
package.video (moviemode) object | null วิดีโอที่เสร็จแล้ว {file: {url, expires_at}, thumbnail: {url, expires_at} | null, duration_ms, width, height, size_bytes} เป็น null หากยังไม่มี
package.youtube.title (moviemode) string | null ชื่อของ YouTube
package.youtube.description (moviemode) string | null คำอธิบายของ YouTube (รวมข้อความคงที่)
package.youtube.thumbnail (moviemode) object | null ภาพขนาดย่อของ YouTube {url, expires_at, width, height} เป็น null สำหรับวิดีโอแนวตั้ง (Shorts) ซึ่งไม่ตั้งค่าภาพขนาดย่อ
package.tiktok.caption (moviemode) string | null แคปชันของ TikTok
package.instagram.caption (moviemode / carouselmode) string | null แคปชันของ Instagram (รวมข้อความคงที่)
package.instagram.cover (moviemode) object | null รูปปกของ Instagram {url, expires_at, width, height}
package.x.posts (moviemode / blogmode / carouselmode) array โพสต์ของ X หากมี 2 โพสต์ขึ้นไปจะถูกโพสต์ตามลำดับเป็นเธรด
package.title (blogmode) string | null ชื่อบทความ
package.meta_description (blogmode) string | null เมตาดิสคริปชัน
package.body_html (blogmode) string | null HTML ของเนื้อหาบทความ รูปภาพอยู่ใน src ของแท็ก img และโค้ดแอฟฟิลิเอตกับรีวิวสำหรับการแนะนำสินค้าถูกแทนที่เรียบร้อยแล้ว เผยแพร่บนไซต์ของคุณได้ตามนี้
package.images (blogmode) array รูปภาพในเนื้อหา (ตามลำดับที่ปรากฏ) {url, expires_at, width, height}
package.cover_image (blogmode) object | null รูปปก {url, expires_at, width, height}
package.audio (blogmode) object | null เสียงของบทความ {url, expires_at, duration_ms}
package.slides[] (carouselmode) object รูปภาพสไลด์ (ตามลำดับสไลด์) {no, image: {url, expires_at, width, height}}
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
404 not_found ไม่มีคอนเทนต์ (Content not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "mode": "blogmode",
    "variation_unique": "bmA1b2C3d4E5",
    "variation_no": 1,
    "title": "How to start a blog",
    "concept": { "concept_unique": "bC2x8RtY4u", "concept_name": "Blogging for beginners" },
    "title_unique": "bT9kL3mN5pQr",
    "language": "en",
    "status": "complete",
    "progress": { "step_process": 3, "is_complete": true },
    "is_readonly": false,
    "confirmed_at": "2026-10-03T08:00:00Z",
    "published_platforms": ["wordpress"],
    "created_at": "2026-10-01T03:00:00Z",
    "updated_at": "2026-10-03T08:00:00Z",
    "publish": [
      {
        "platform": "wordpress",
        "status": "success",
        "post_url": "https://blog.example.com/how-to-start-a-blog/",
        "posted_at": "2026-10-03T09:00:00Z"
      }
    ],
    "content": { "body_html": "<h2>Why start a blog</h2><p>...</p>" },
    "package": {
      "title": "How to Start a Blog in 2026",
      "meta_description": "A step-by-step guide to starting your first blog.",
      "body_html": "<h2>Why start a blog</h2><p>...</p><figure><img src=\"https://...\" alt=\"\" /></figure>",
      "images": [
        { "url": "https://...", "expires_at": "2026-10-21T10:00:00Z", "width": 1536, "height": 1024 }
      ],
      "cover_image": { "url": "https://...", "expires_at": "2026-10-21T10:00:00Z", "width": 1200, "height": 630 },
      "audio": null,
      "x": { "posts": ["New post: How to start a blog in 2026"] }
    }
  }
}
GET › /projects/{project_unique}/contents/{variation_unique}/schedule

ตารางเวลาโพสต์

ดึงโพสต์ที่วางแผนไว้ สร้างแล้ว และโพสต์แล้วของคอนเทนต์โพสต์ (postmode) เรียงตามเวลาที่กำหนด รวมถึงสถานะของออโตเมชันด้วย

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
variation_unique พาธ string จำเป็น — ID ของคอนเทนต์
from คิวรี string ไม่บังคับ — จุดเริ่มต้นของช่วง (เวลาที่กำหนด) หากไม่ระบุจะเป็น 7 วันก่อนหน้า (หากระบุเฉพาะ to จะเป็น 37 วันก่อน to)
to คิวรี string ไม่บังคับ — จุดสิ้นสุดของช่วง (เวลาที่กำหนด) หากไม่ระบุจะเป็น 30 วันนับจากนี้ (หากระบุเฉพาะ from จะเป็น 37 วันหลัง from) ช่วงเวลายาวได้สูงสุด 92 วัน
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
automation.enabled boolean เปิดใช้ออโตเมชันหรือไม่
automation.is_executing boolean กระบวนการสร้างโพสต์อัตโนมัติกำลังทำงานอยู่หรือไม่ (เป็น true แม้หลังปิดออโตเมชัน หากยังมีโพสต์ที่อยู่ระหว่างการสร้าง)
automation.week_limit integer | null จำนวนสัปดาห์สูงสุดที่สร้างแผนโดยอัตโนมัติ (null หมายถึงไม่จำกัด)
automation.week_count integer จำนวนสัปดาห์ที่สร้างแผนไว้จนถึงตอนนี้
automation.next_refill_at string | null เวลาที่จะสร้างแผนครั้งถัดไป (เป็น null เมื่อปิดออโตเมชัน)
automation.timezone string | null เขตเวลาที่ใช้กับตารางเวลาโพสต์
items[].schedule_unique string ID ของแผน
items[].post_unique string | null ID ของโพสต์ (เป็น null หากยังไม่ได้สร้างข้อความ)
items[].scheduled_at string เวลาที่กำหนดโพสต์
items[].scheduled_at_local string เวลาที่กำหนดในเวลาท้องถิ่นของ timezone (YYYY-MM-DDTHH:MM:SS)
items[].timezone string เขตเวลาตอนที่สร้างแผน
items[].status string สถานะ pending (รอการสร้างข้อความ) / generating (กำลังสร้าง) / generated (สร้างแล้ว รอโพสต์) / awaiting_image (รอการสร้างรูปภาพ) / posting (กำลังโพสต์) / posted (โพสต์แล้ว) / failed (ล้มเหลว) / discarded (ยกเลิก)
items[].confirm_state string การตรวจสอบก่อนโพสต์ none (ไม่ตรวจสอบ) / awaiting (ไม่โพสต์จนกว่าจะอนุมัติ) / notice (โพสต์หลังแจ้งเตือนอย่างเดียว) / confirmed (อนุมัติแล้ว)
items[].created_via string วิธีที่สร้าง auto (ออโตเมชัน) / manual (ด้วยตนเอง)
items[].post_type string ประเภทโพสต์ assertion (ความคิดเห็น) / knowhow (ความรู้และวิธีการ) / experience (ประสบการณ์) / casual (ชีวิตประจำวัน)
items[].text string | null ข้อความของโพสต์ (เป็น null หากยังไม่ได้สร้าง)
items[].thread[] object โพสต์ต่อเนื่องของเธรด (ตามลำดับ) {text, post_url, posted_at, image}
items[].image object | null รูปภาพที่แนบ {url, expires_at} (เป็น null หากไม่มี)
items[].post_url string | null URL ของโพสต์ (เป็น null หากยังไม่ได้กำหนด)
items[].posted_at string | null เวลาที่โพสต์ (เป็น null หากยังไม่ได้โพสต์)
items[].fail_reason string | null เหตุผลที่ล้มเหลว token_expired (การเชื่อมต่อ X ขาด) / api_error (ข้อผิดพลาดของ X) / not_found (ไม่มีเป้าหมายของโพสต์) / insufficient_token (Token ไม่พอ) / no_x_account (ยังไม่ได้ตั้งค่าบัญชี X) / node_ws_timeout (การสร้างข้อความหมดเวลา) / unconfirmed (ไม่ได้รับอนุมัติ)
meta.from / meta.to string ช่วงเวลาที่ส่งกลับ
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
404 not_found คอนเทนต์ไม่ใช่คอนเทนต์โพสต์ (postmode) หรือไม่มีคอนเทนต์ (Schedule not found.)
422 validation_error ช่วงเวลายาวเกิน 92 วัน to ก่อน from หรือมีค่าที่อ่านเป็นวันที่และเวลาไม่ได้
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "automation": {
      "enabled": true,
      "is_executing": true,
      "week_limit": 4,
      "week_count": 2,
      "next_refill_at": "2026-10-26T15:00:00Z",
      "timezone": "Asia/Tokyo"
    },
    "items": [
      {
        "schedule_unique": "Sc1aB2cD3eF4",
        "post_unique": "Po1aB2cD3eF4",
        "scheduled_at": "2026-10-20T01:00:00Z",
        "scheduled_at_local": "2026-10-20T10:00:00",
        "timezone": "Asia/Tokyo",
        "status": "posted",
        "confirm_state": "none",
        "created_via": "auto",
        "post_type": "assertion",
        "text": "Most teams overthink onboarding...",
        "thread": [
          {
            "text": "First, cut the steps in half.",
            "post_url": "https://x.com/i/status/1848000000000000002",
            "posted_at": "2026-10-20T01:00:05Z",
            "image": null
          }
        ],
        "image": { "url": "https://...", "expires_at": "2026-10-21T10:00:00Z" },
        "post_url": "https://x.com/i/status/1848000000000000001",
        "posted_at": "2026-10-20T01:00:00Z",
        "fail_reason": null
      },
      {
        "schedule_unique": "Sc9zY8xW7vU6",
        "post_unique": null,
        "scheduled_at": "2026-10-25T09:30:00Z",
        "scheduled_at_local": "2026-10-25T18:30:00",
        "timezone": "Asia/Tokyo",
        "status": "pending",
        "confirm_state": "none",
        "created_via": "auto",
        "post_type": "knowhow",
        "text": null,
        "thread": [],
        "image": null,
        "post_url": null,
        "posted_at": null,
        "fail_reason": null
      }
    ]
  },
  "meta": { "from": "2026-10-20T00:00:00Z", "to": "2026-11-20T23:59:59Z" }
}

ผลการโพสต์และปลายทาง

ดึงผลการโพสต์ไปยังSNS WordPress และ Webhook รวมถึงสถานะของปลายทางที่เชื่อมต่อกับโปรเจกต์ ใช้ตรวจจับการเชื่อมต่อที่ขาดได้

GET › /projects/{project_unique}/publications

ผลการโพสต์

ดึงผลการโพสต์ของโปรเจกต์ข้ามทุกโหมดและทุกปลายทาง เรียงจากใหม่ไปเก่า สำหรับโพสต์ (postmode) จะรวมโพสต์ที่โพสต์แล้วและที่ล้มเหลว (โพสต์แรกของแต่ละเธรด)

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
mode คิวรี string ไม่บังคับ — กรองตามโหมด ระบุได้หลายค่าจาก moviemode (วิดีโอ), blogmode (บล็อก), carouselmode (แคโรเซล) และ postmode (โพสต์) โดยคั่นด้วยเครื่องหมายจุลภาค หากไม่ระบุจะเป็นทุกโหมด
platform คิวรี string ไม่บังคับ — กรองตามปลายทาง (คั่นด้วยเครื่องหมายจุลภาค) youtube / tiktok / instagram / x / wordpress / webhook
status คิวรี string ไม่บังคับ — กรองตามผลการโพสต์ (คั่นด้วยเครื่องหมายจุลภาค) success / failed / scheduled / processing / partial_success / reviewing
from คิวรี string ไม่บังคับ — ส่งกลับเฉพาะผลลัพธ์ที่เวลาโพสต์ (เวลาที่บันทึกหากยังไม่ได้โพสต์) เป็นวันที่และเวลานี้หรือหลังจากนั้น
to คิวรี string ไม่บังคับ — ส่งกลับเฉพาะผลลัพธ์ที่เวลาโพสต์ (เวลาที่บันทึกหากยังไม่ได้โพสต์) เป็นวันที่และเวลานี้หรือก่อนหน้านั้น
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].publication_unique string ID ของผลการโพสต์
data[].mode string moviemode (วิดีโอ) / blogmode (บล็อก) / carouselmode (แคโรเซล) / postmode (โพสต์)
data[].content.variation_unique string ID ของคอนเทนต์
data[].content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
data[].platform string ปลายทาง youtube / tiktok / instagram / x / wordpress / webhook
data[].account object | null บัญชีที่ใช้โพสต์ {account_unique, name} name เป็น null สำหรับบัญชีที่ยกเลิกการเชื่อมต่อ เป็น null สำหรับ postmode
data[].status string ผลการโพสต์ success (โพสต์แล้ว) / failed (ล้มเหลว) / scheduled (ตั้งเวลาไว้ที่ปลายทาง) / processing (กำลังประมวลผล) / partial_success (โพสต์สำเร็จ แต่ขั้นตอนที่เกี่ยวข้อง เช่น การตั้งค่าภาพขนาดย่อ ล้มเหลว) / reviewing (โพสต์สำเร็จและรอการตรวจสอบจากปลายทาง จึงยังไม่ทราบ URL)
data[].post_url string | null URL ของโพสต์ (เป็น null หากยังไม่ได้กำหนด)
data[].error_code string | null รหัสเหตุผลที่ล้มเหลว (ต่างกันไปตามปลายทางและโหมด)
data[].is_automation boolean โพสต์ด้วยออโตเมชันหรือไม่
data[].posted_at string | null เวลาที่โพสต์ (เป็น null หากยังไม่ได้โพสต์)
data[].created_at string สร้างเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "publication_unique": "Xk3p9QmZ2aLw",
      "mode": "postmode",
      "content": { "variation_unique": "pmV7d2KqLx01", "title": "SaaS growth tips" },
      "platform": "x",
      "account": null,
      "status": "success",
      "post_url": "https://x.com/i/status/1848123456789012345",
      "error_code": null,
      "is_automation": true,
      "posted_at": "2026-10-04T10:00:00Z",
      "created_at": "2026-10-03T22:10:00Z"
    },
    {
      "publication_unique": "Pq2wE4rT6yUi",
      "mode": "blogmode",
      "content": { "variation_unique": "bmA1b2C3d4E5", "title": "How to start a blog" },
      "platform": "wordpress",
      "account": { "account_unique": "Wp3xY5zA7bCd", "name": "My WP Site" },
      "status": "failed",
      "post_url": null,
      "error_code": "auth_failed",
      "is_automation": false,
      "posted_at": null,
      "created_at": "2026-10-02T10:00:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}/accounts

ปลายทางที่เชื่อมต่อ

ดึงปลายทางที่เชื่อมต่อกับโปรเจกต์ (บัญชี SNS, WordPress และ Webhook) พร้อมสถานะ เมื่อ status เป็น expired หรือ connection_error จำเป็นต้องเชื่อมต่อใหม่

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].account_unique string ID ของปลายทาง
data[].platform string ปลายทาง youtube / tiktok / instagram / x / wordpress / webhook
data[].name string ชื่อที่แสดง คือชื่อบัญชีสำหรับ SNS ชื่อไซต์สำหรับ WordPress และโดเมนของ URL ปลายทางสำหรับ Webhook (ในรูปแบบ https://example.com/… ไม่รวมพาธ)
data[].image_url string | null URL ของรูปไอคอนบัญชี (เฉพาะ SNS)
data[].status string สถานะ active (ใช้งานได้) / expired (การเชื่อมต่อหมดอายุ ต้องเชื่อมต่อใหม่) / connection_error (เชื่อมต่อ WordPress ไม่ได้)
data[].token_expires_at string | null เวลาที่การเชื่อมต่อหมดอายุ (เฉพาะ SNS)
data[].connected_at string | null เวลาที่เชื่อมต่อ
data[].last_used_at string | null เวลาที่ใช้โพสต์ครั้งล่าสุด (เฉพาะ SNS)
data[].site_url string | null URL ของไซต์ WordPress (เฉพาะ WordPress)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "account_unique": "Wh9kQ2mN4pRt",
      "platform": "webhook",
      "name": "https://hooks.example.com/…",
      "image_url": null,
      "status": "active",
      "token_expires_at": null,
      "connected_at": "2026-07-01T00:00:00Z",
      "last_used_at": null,
      "site_url": null
    },
    {
      "account_unique": "Wp3xY5zA7bCd",
      "platform": "wordpress",
      "name": "Example Blog",
      "image_url": null,
      "status": "connection_error",
      "token_expires_at": null,
      "connected_at": "2026-08-01T00:00:00Z",
      "last_used_at": null,
      "site_url": "https://blog.example.com"
    },
    {
      "account_unique": "Yt4aB6cD8eFg",
      "platform": "youtube",
      "name": "Channel B",
      "image_url": "https://yt3.ggpht.com/abc.png",
      "status": "expired",
      "token_expires_at": "2026-10-01T00:00:00Z",
      "connected_at": "2026-09-01T00:00:00Z",
      "last_used_at": "2026-09-30T00:00:00Z",
      "site_url": null
    }
  ]
}

ออโตเมชัน

ดึงความคืบหน้าของออโตเมชันวิดีโอ บล็อก และแคโรเซล สำหรับออโตเมชันโพสต์ (โหมดโพสต์) ให้ใช้ตารางเวลาของคอนเทนต์

GET › /automations

การรันออโตเมชัน

ดึงการรันออโตเมชันของวิดีโอ บล็อก และแคโรเซล (ตั้งเวลาไว้ กำลังทำงาน รอการตรวจสอบ และเสร็จสิ้น) เรียงจากใหม่ไปเก่า

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
status คิวรี string ไม่บังคับ — กรองตามสถานะ (คั่นด้วยเครื่องหมายจุลภาค) ค่าเหมือนกับ data[].status
mode คิวรี string ไม่บังคับ — กรองตามโหมด (คั่นด้วยเครื่องหมายจุลภาค) moviemode / blogmode / carouselmode
project_unique คิวรี string ไม่บังคับ — ส่งกลับเฉพาะการรันของโปรเจกต์นี้
from คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือหลังจากนั้น
to คิวรี string ไม่บังคับ — ส่งกลับเฉพาะรายการที่สร้างเมื่อวันที่และเวลานี้หรือก่อนหน้านั้น
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].auto_unique string ID ของการรันออโตเมชัน
data[].mode string moviemode / blogmode / carouselmode
data[].project object โปรเจกต์ {project_unique, project_name}
data[].content.variation_unique string ID ของคอนเทนต์
data[].content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
data[].run_no integer เป็นการรันครั้งที่เท่าไรของคอนเทนต์นั้น
data[].status string สถานะ pending (รอการทำงาน ตั้งเวลาไว้เมื่อ reserved_at อยู่ในอนาคต) / executing (กำลังทำงาน) / waiting_confirmation (รอการตรวจสอบเนื้อหา ทำงานต่อหลังตรวจสอบ) / completed (เสร็จสิ้น) / failed (ล้มเหลว) / stopped (หยุดแล้ว) / token_shortage (จบเพราะ Token ไม่พอ)
data[].execution_mode string sequential (ทีละ 1 รายการ) / parallel (พร้อมกันทั้งหมด)
data[].phases object สถานะของแต่ละช่วง {setup, step1, step2, step3} not_started (ยังไม่เริ่ม) / running (กำลังทำงาน หรือช่วงที่หยุดอยู่) / done (เสร็จสิ้น รวมที่ข้าม และสำหรับการรันที่จบเป็น completed จะรวมขั้นตอนที่อยู่นอกขอบเขตของการรันนี้) / error (ล้มเหลว)
data[].template.setup_template_name string | null ชื่อเทมเพลตการตั้งค่าที่ใช้ตอนเริ่ม
data[].template.automation_template_name string | null ชื่อเทมเพลตออโตเมชันที่ใช้ตอนเริ่ม
data[].reserved_at string | null เวลาทำงานที่ตั้งไว้
data[].executed_at string | null เวลาที่เริ่มการรัน
data[].completed_at string | null เวลาที่สิ้นสุด (เมื่อเป็น completed / failed / stopped / token_shortage)
data[].created_at string เวลาที่ลงทะเบียนการรัน
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "auto_unique": "aB3dE5fG7h",
      "mode": "blogmode",
      "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My Blog" },
      "content": { "variation_unique": "Xy12Zw34Ab56", "title": "Spring travel tips" },
      "run_no": 2,
      "status": "executing",
      "execution_mode": "sequential",
      "phases": { "setup": "done", "step1": "done", "step2": "running", "step3": "not_started" },
      "template": { "setup_template_name": "Default setup", "automation_template_name": null },
      "reserved_at": null,
      "executed_at": "2026-10-19T23:09:27Z",
      "completed_at": null,
      "created_at": "2026-10-19T23:09:20Z"
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /automations/{auto_unique}

รายละเอียดการรันออโตเมชัน

ดึงรายละเอียดของการรันออโตเมชัน 1 รายการ และความคืบหน้าของแต่ละขั้นตอน ใช้ตรวจสอบความคืบหน้าขณะกำลังทำงานได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
auto_unique พาธ string จำเป็น — ID ของการรันออโตเมชัน
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
auto_unique / mode / … / created_at — เหมือนกับรายการการรันออโตเมชัน
steps[].key string ชื่อขั้นตอน (ตัวอย่าง: step1_1_text)
steps[].phase string ช่วงของขั้นตอน setup / step1 / step2 / step3
steps[].status string สถานะของขั้นตอน not_run (ยังไม่รัน ไม่เกี่ยวข้อง หรือกำลังรัน) / success (สำเร็จ) / error (ล้มเหลว) / skipped (ข้าม)
steps[].started_at string | null เวลาที่ขั้นตอนที่กำลังทำงานเริ่มต้น (เป็น null เมื่อสิ้นสุด)
steps[].finished_at string | null เวลาที่ขั้นตอนสิ้นสุด
steps[].duration_sec number | null จำนวนวินาทีที่ใช้ (เมื่อเป็น success / error)
steps[].error_code string | null เหตุผลที่ล้มเหลว internal_error / automation_record_not_found / automation_stopped_by_admin / insufficient_token (Token ไม่พอ) / token_group_blocked (ถึงขีดจำกัดโควตาของทีม) / automation_auth_error (ข้อผิดพลาดการยืนยันตัวตนของปลายทาง) / automation_not_found / automation_conflict / automation_rate_limited (ขีดจำกัดจำนวนครั้งของปลายทาง) / automation_server_error (ข้อผิดพลาดของปลายทาง) / automation_network_error (ข้อผิดพลาดของเครือข่าย) / automation_step_failed เป็น null หากไม่ได้บันทึกเหตุผล
accounts[] object ปลายทางตอนเริ่ม {platform, account_unique, name} name เป็น null สำหรับ Webhook
stop_requested boolean มีการสั่งหยุดหรือไม่
confirmation.requested_at string | null เวลาที่เริ่มรอการตรวจสอบ
confirmation.confirmed_at string | null เวลาที่ตรวจสอบเนื้อหา (เป็น null ขณะรอการตรวจสอบหรือเมื่อยังไม่ได้ตรวจสอบ)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีออโตเมชัน หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Automation not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/automations/aB3dE5fG7h" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/automations/aB3dE5fG7h",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations/aB3dE5fG7h", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations/aB3dE5fG7h")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations/aB3dE5fG7h"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/automations/aB3dE5fG7h");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "auto_unique": "aB3dE5fG7h",
    "mode": "blogmode",
    "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My Blog" },
    "content": { "variation_unique": "Xy12Zw34Ab56", "title": "Spring travel tips" },
    "run_no": 2,
    "status": "failed",
    "execution_mode": "sequential",
    "phases": { "setup": "done", "step1": "done", "step2": "done", "step3": "error" },
    "template": { "setup_template_name": "Default setup", "automation_template_name": "Skip voice" },
    "reserved_at": null,
    "executed_at": "2026-10-19T23:09:27Z",
    "completed_at": "2026-10-19T23:17:50Z",
    "created_at": "2026-10-19T23:09:20Z",
    "steps": [
      { "key": "setup", "phase": "setup", "status": "success", "started_at": null, "finished_at": "2026-10-19T23:09:29Z", "duration_sec": 2.3, "error_code": null },
      { "key": "step1_1_text", "phase": "step1", "status": "success", "started_at": null, "finished_at": "2026-10-19T23:11:40Z", "duration_sec": 126.3, "error_code": null },
      { "key": "step2_2", "phase": "step2", "status": "skipped", "started_at": null, "finished_at": "2026-10-19T23:17:39Z", "duration_sec": null, "error_code": null },
      { "key": "step3_4_webhook", "phase": "step3", "status": "error", "started_at": null, "finished_at": "2026-10-19T23:17:46Z", "duration_sec": 1.2, "error_code": "automation_server_error" }
    ],
    "accounts": [
      { "platform": "webhook", "account_unique": "dxuD2gk3NYuA", "name": null }
    ],
    "stop_requested": false,
    "confirmation": { "requested_at": null, "confirmed_at": null }
  }
}

สื่อและเทมเพลต

ดึงสื่อ MY (รูปภาพ วิดีโอ และ BGM) รวมถึงเทมเพลตการตั้งค่าและเทมเพลตออโตเมชัน

GET › /materials

รายการสื่อ

ดึงสื่อ MY (รูปภาพ วิดีโอ และ BGM) เรียงจากใหม่ไปเก่า ในทีมจะส่งกลับสื่อที่ทีมใช้ร่วมกัน ไม่รวมรูปภาพที่ใช้เฉพาะภายในโปรเจกต์และไฟล์ที่ยังสร้างไม่เสร็จ

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
kind คิวรี string ไม่บังคับ — กรองตามชนิดของสื่อ image / video / bgm
type คิวรี string ไม่บังคับ — กรองตามการใช้งานของสื่อ ค่าเหมือนกับ data[].type เมื่อระบุร่วมกับ kind จะระบุได้เฉพาะการใช้งานของชนิดนั้น
category_unique คิวรี string ไม่บังคับ — ส่งกลับเฉพาะสื่อในหมวดหมู่นี้
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].material_unique string ID ของสื่อ
data[].kind string ชนิด image (รูปภาพ) / video (วิดีโอ) / bgm
data[].type string การใช้งาน image_element (เอลิเมนต์) / image_vertical (แนวตั้ง) / image_horizontal (แนวนอน) / reference_person (รูปภาพอ้างอิง: บุคคล) / reference_background (รูปภาพอ้างอิง: พื้นหลัง) / reference_layout (รูปภาพอ้างอิง: เลย์เอาต์) / reference_cta (รูปภาพอ้างอิง: CTA) / reference_pet (รูปภาพอ้างอิง: สัตว์เลี้ยง) / reference_product (รูปภาพอ้างอิง: สินค้าหรือบริการ) / image_rulebook (กฎเกณฑ์) / image_promotion (โปรโมชัน) / video_vertical (วิดีโอแนวตั้ง) / video_horizontal (วิดีโอแนวนอน) / bgm
data[].category object | null หมวดหมู่ {category_unique, name} (เป็น null หากยังไม่จัดหมวดหมู่)
data[].width / data[].height integer | null ความกว้างและความสูง (พิกเซล) BGM และกรณีที่ยังไม่ได้วัดเป็น null
data[].duration_ms integer | null ความยาว (มิลลิวินาที) รูปภาพเป็น null
data[].size_bytes integer ขนาดไฟล์ (ไบต์) อาจเป็น 0 เมื่ออ้างอิงสื่อที่ใช้ร่วมกัน
data[].file object ตัวไฟล์ {url, expires_at}
data[].thumbnail object | null ภาพขนาดย่อ {url, expires_at} เป็น null สำหรับ BGM, เอลิเมนต์ และขณะที่กำลังสร้างภาพขนาดย่อ
data[].created_at string สร้างเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "material_unique": "aB3dE5fG7hJ9kL1mN3pQ",
      "kind": "image",
      "type": "image_vertical",
      "category": { "category_unique": "Xy12Ab34Cd", "name": "Product shots" },
      "width": 768,
      "height": 1344,
      "duration_ms": null,
      "size_bytes": 1234567,
      "file": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
      "thumbnail": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
      "created_at": "2026-10-01T10:00:00Z"
    },
    {
      "material_unique": "Zq9Wv8Ut7Sr6Qp5On4Ml",
      "kind": "bgm",
      "type": "bgm",
      "category": null,
      "width": null,
      "height": null,
      "duration_ms": 30000,
      "size_bytes": 482133,
      "file": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
      "thumbnail": null,
      "created_at": "2026-09-30T08:12:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /materials/{material_unique}

รายละเอียดสื่อ

ดึงสื่อ 1 รายการ

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
material_unique พาธ string จำเป็น — ID ของสื่อ
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
material_unique string ID ของสื่อ
kind string ชนิด image (รูปภาพ) / video (วิดีโอ) / bgm
type string การใช้งาน image_element (เอลิเมนต์) / image_vertical (แนวตั้ง) / image_horizontal (แนวนอน) / reference_person (รูปภาพอ้างอิง: บุคคล) / reference_background (รูปภาพอ้างอิง: พื้นหลัง) / reference_layout (รูปภาพอ้างอิง: เลย์เอาต์) / reference_cta (รูปภาพอ้างอิง: CTA) / reference_pet (รูปภาพอ้างอิง: สัตว์เลี้ยง) / reference_product (รูปภาพอ้างอิง: สินค้าหรือบริการ) / image_rulebook (กฎเกณฑ์) / image_promotion (โปรโมชัน) / video_vertical (วิดีโอแนวตั้ง) / video_horizontal (วิดีโอแนวนอน) / bgm
category object | null หมวดหมู่ {category_unique, name} (เป็น null หากยังไม่จัดหมวดหมู่)
width / height integer | null ความกว้างและความสูง (พิกเซล) BGM และกรณีที่ยังไม่ได้วัดเป็น null
duration_ms integer | null ความยาว (มิลลิวินาที) รูปภาพเป็น null
size_bytes integer ขนาดไฟล์ (ไบต์) อาจเป็น 0 เมื่ออ้างอิงสื่อที่ใช้ร่วมกัน
file object ตัวไฟล์ {url, expires_at}
thumbnail object | null ภาพขนาดย่อ {url, expires_at} เป็น null สำหรับ BGM, เอลิเมนต์ และขณะที่กำลังสร้างภาพขนาดย่อ
created_at string สร้างเมื่อ
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีสื่อ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Material not found.)
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "material_unique": "aB3dE5fG7hJ9kL1mN3pQ",
    "kind": "image",
    "type": "image_vertical",
    "category": { "category_unique": "Xy12Ab34Cd", "name": "Product shots" },
    "width": 768,
    "height": 1344,
    "duration_ms": null,
    "size_bytes": 1234567,
    "file": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
    "thumbnail": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
    "created_at": "2026-10-01T10:00:00Z"
  }
}
GET › /material-categories

หมวดหมู่สื่อ

ดึงหมวดหมู่ของสื่อและจำนวนสื่อในแต่ละหมวดหมู่

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
kind คิวรี string ไม่บังคับ — กรองตามชนิดของสื่อ image / video / bgm
type คิวรี string ไม่บังคับ — กรองตามการใช้งานของสื่อ ค่าเหมือนกับ data[].type เมื่อระบุร่วมกับ kind จะระบุได้เฉพาะการใช้งานของชนิดนั้น
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].category_unique string ID ของหมวดหมู่
data[].name string ชื่อหมวดหมู่
data[].kind string ชนิด image (รูปภาพ) / video (วิดีโอ) / bgm
data[].type string การใช้งาน image_element (เอลิเมนต์) / image_vertical (แนวตั้ง) / image_horizontal (แนวนอน) / reference_person (รูปภาพอ้างอิง: บุคคล) / reference_background (รูปภาพอ้างอิง: พื้นหลัง) / reference_layout (รูปภาพอ้างอิง: เลย์เอาต์) / reference_cta (รูปภาพอ้างอิง: CTA) / reference_pet (รูปภาพอ้างอิง: สัตว์เลี้ยง) / reference_product (รูปภาพอ้างอิง: สินค้าหรือบริการ) / image_rulebook (กฎเกณฑ์) / image_promotion (โปรโมชัน) / video_vertical (วิดีโอแนวตั้ง) / video_horizontal (วิดีโอแนวนอน) / bgm
data[].is_system boolean เป็นหมวดหมู่ที่ Stepeee สร้างขึ้นโดยอัตโนมัติหรือไม่
data[].material_count integer จำนวนสื่อในหมวดหมู่
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/material-categories?kind=image" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/material-categories?kind=image",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/material-categories?kind=image", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/material-categories?kind=image")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/material-categories?kind=image"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/material-categories?kind=image");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "category_unique": "Bg12Ab34Cd",
      "name": "Lo-fi",
      "kind": "bgm",
      "type": "bgm",
      "is_system": false,
      "material_count": 3
    },
    {
      "category_unique": "Xy12Ab34Cd",
      "name": "Product shots",
      "kind": "image",
      "type": "image_vertical",
      "is_system": false,
      "material_count": 12
    }
  ]
}
GET › /templates

รายการเทมเพลต

ดึงเทมเพลตการตั้งค่าและเทมเพลตออโตเมชัน เรียงตามที่อัปเดตล่าสุดก่อน ในทีมจะส่งกลับเทมเพลตที่ทีมใช้ร่วมกัน

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
mode คิวรี string ไม่บังคับ — กรองตามโหมด moviemode / blogmode / carouselmode / postmode
kind คิวรี string ไม่บังคับ — กรองตามชนิดของเทมเพลต setup / automation
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].template_unique string ID ของเทมเพลต
data[].kind string ชนิด setup (เทมเพลตการตั้งค่าที่รวมการตั้งค่าการผลิต) / automation (เทมเพลตออโตเมชันที่กำหนดขั้นตอนที่ออโตเมชันจะรัน)
data[].mode string moviemode (วิดีโอ) / blogmode (บล็อก) / carouselmode (แคโรเซล) / postmode (โพสต์)
data[].name string ชื่อเทมเพลต
data[].created_at string สร้างเมื่อ
data[].updated_at string อัปเดตเมื่อ
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "template_unique": "Ab12Cd34Ef",
      "kind": "automation",
      "mode": "carouselmode",
      "name": "Morning carousel",
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-10-05T00:00:00Z"
    },
    {
      "template_unique": "Gh56Ij78Kl",
      "kind": "setup",
      "mode": "moviemode",
      "name": "60-second explainer",
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-10-01T00:00:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}

หัวข้อและคอนเทนต์

เพิ่มหัวข้อให้คอนเซปต์วิดีโอ บล็อก และแคโรเซล และลบคอนเทนต์ ใช้ได้ในแพลน Pro ขึ้นไป

POST › /projects/{project_unique}/concepts/{concept_unique}/titles

เพิ่มหัวข้อ

เพิ่มหัวข้อจำนวนมากให้กับคอนเซปต์วิดีโอ บล็อก หรือแคโรเซล และสร้างคอนเทนต์แรก 1 รายการให้แต่ละหัวข้อ (กระบวนการเดียวกับการเพิ่มหัวข้อด้วยตนเองบนหน้าจอ) หัวข้อที่มีชื่อซ้ำในคอนเซปต์เดียวกัน และชื่อที่ปรากฏครั้งที่ 2 เป็นต้นไปในคำขอเดียวกัน จะไม่ถูกสร้างและจะอยู่ใน skipped คอนเซปต์มีหัวข้อได้สูงสุด 100 รายการ หากการเพิ่มจะทำให้เกิน 100 ระบบจะไม่สร้างอะไรเลย (ชื่อที่ถูกข้ามจะไม่นับ) หากสร้างคอนเทนต์ไม่ได้เพราะขีดจำกัดจำนวนคอนเทนต์ของแพลน จะสร้างเฉพาะหัวข้อและ variation_unique จะเป็น null ไม่สามารถตั้งค่าโปรโมชันและแอฟฟิลิเอตของบล็อกได้ หัวข้อจะถูกสร้างเป็นบทความมาตรฐาน ในทีม หัวข้อและคอนเทนต์ที่คุณสร้างจะเป็นของเจ้าของทีม

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
concept_unique พาธ string จำเป็น — ID ของคอนเซปต์ (คอนเซปต์วิดีโอ บล็อก หรือแคโรเซลที่อยู่ในโปรเจกต์)
titles เนื้อหา string[] จำเป็น — หัวข้อที่จะเพิ่ม 1–50 รายการ แต่ละรายการต้องมี 1–500 ตัวอักษรหลังตัดช่องว่างหน้าและหลังออก (ไม่อนุญาตหัวข้อที่มีแต่ช่องว่าง มีแต่ "0" หรือมีการขึ้นบรรทัดใหม่ตรงกลาง)
language เนื้อหา string จำเป็น — ภาษาที่เผยแพร่ของคอนเทนต์ที่จะสร้าง (รหัสภาษา เช่น ja, en หรือ fr)
setup_template_unique เนื้อหา string | null ไม่บังคับ — ID ของเทมเพลตการตั้งค่าที่จะใช้ (template_unique จาก GET /templates ที่ kind เป็น setup และเป็นโหมดเดียวกับคอนเซปต์) หากไม่ระบุจะใช้เทมเพลตเริ่มต้นของคอนเซปต์ (หรือการตั้งค่ามาตรฐานหากยังไม่ได้ตั้ง)
Idempotency-Key ส่วนหัว string ไม่บังคับ — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
created[] object หัวข้อที่สร้าง (ตามลำดับที่ส่ง)
created[].title_unique string ID ของหัวข้อ
created[].title_name string ชื่อหัวข้อ (ตัดช่องว่างหน้าและหลังออกแล้ว)
created[].variation_unique string | null ID ของคอนเทนต์แรกที่สร้าง เป็น null หากสร้างไม่ได้เพราะขีดจำกัดจำนวนคอนเทนต์ของแพลน
skipped[] object หัวข้อที่ไม่ได้สร้าง (ตามลำดับที่ส่ง)
skipped[].title_name string ชื่อหัวข้อ (ตัดช่องว่างหน้าและหลังออกแล้ว)
skipped[].reason string เหตุผลที่ไม่ได้สร้าง duplicate (มีหัวข้อชื่อเดียวกันในคอนเซปต์เดียวกัน หรือชื่อปรากฏครั้งที่ 2 เป็นต้นไปในคำขอเดียวกัน)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
403 readonly โปรเจกต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
404 not_found ไม่มีโปรเจกต์หรืออยู่นอกขอบเขตที่เข้าถึงได้ หรือคอนเซปต์ไม่ได้อยู่ในโปรเจกต์นั้น
409 title_limit_reached การเพิ่มจะทำให้หัวข้อของคอนเซปต์เกิน 100 รายการ (ระบบจะไม่สร้างอะไรเลย) details จะมี limit (ขีดจำกัด) และ total_after_add (จำนวนหลังเพิ่ม)
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 validation_error พารามิเตอร์ไม่ถูกต้อง
422 mode_not_supported คอนเซปต์โพสต์ (โหมดโพสต์) หรือคอนเซปต์โฟโต้
422 template_not_found ไม่มีเทมเพลตของ setup_template_unique (รวมเทมเพลตของโหมดอื่น)
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
  "language": "en",
  "setup_template_unique": "Gh56Ij78Kl"
}'
import requests

body = """{
  "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
  "language": "en",
  "setup_template_unique": "Gh56Ij78Kl"
}"""

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
  body: JSON.stringify({
    "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
    "language": "en",
    "setup_template_unique": "Gh56Ij78Kl"
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")
request.httpBody = """
{
  "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
  "language": "en",
  "setup_template_unique": "Gh56Ij78Kl"
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
        {
          "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
          "language": "en",
          "setup_template_unique": "Gh56Ij78Kl"
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
  "language": "en",
  "setup_template_unique": "Gh56Ij78Kl"
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "created": [
      { "title_unique": "q8Wm2LzR0pXa", "title_name": "Easy breakfast for beginners", "variation_unique": "Hn4kT7sY1cVb" },
      { "title_unique": "Zr5uP9eK3wQd", "title_name": "Meal prep in 5 minutes", "variation_unique": "Jm8oB2fN6xLe" }
    ],
    "skipped": [
      { "title_name": "Easy breakfast for beginners", "reason": "duplicate" }
    ]
  }
}
DELETE › /projects/{project_unique}/contents/{variation_unique}

ลบคอนเทนต์

ลบคอนเทนต์วิดีโอ บล็อก หรือแคโรเซล (กระบวนการเดียวกับการลบคอนเทนต์บนหน้าจอ) คอนเทนต์ที่ลบจะหายจากรายการและรายละเอียดทันที และหลังจาก delete_at (3 วันถัดมา) จะถูกลบถาวรพร้อมกับรูปภาพ เสียง และวิดีโอที่สร้างขึ้น หมายเลขของคอนเทนต์ที่อยู่ถัดไปภายใต้หัวข้อเดียวกันจะเลื่อนลงมาทีละ 1 คอนเทนต์ที่ออโตเมชันกำลังทำงานหรือตั้งเวลาไว้ลบไม่ได้ ให้หยุดออโตเมชันก่อน คอนเทนต์สุดท้ายที่เหลืออยู่ของหัวข้อและคอนเทนต์โพสต์ (โหมดโพสต์) ลบไม่ได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
project_unique พาธ string จำเป็น — ID ของโปรเจกต์
variation_unique พาธ string จำเป็น — ID ของคอนเทนต์
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
variation_unique string ID ของคอนเทนต์ที่ลบ
mode string moviemode (วิดีโอ) / blogmode (บล็อก) / carouselmode (แคโรเซล)
delete_at string เวลาที่จะถูกลบถาวร
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
403 readonly คอนเทนต์หรือโปรเจกต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
404 not_found ไม่มีโปรเจกต์หรืออยู่นอกขอบเขตที่เข้าถึงได้ คอนเทนต์ไม่ได้อยู่ในโปรเจกต์นั้น หรือถูกลบไปแล้ว
409 automation_running ออโตเมชันกำลังทำงานหรือตั้งเวลาไว้ (มีออโตเมชันที่ยังไม่เสร็จสิ้น)
409 last_variation เป็นคอนเทนต์สุดท้าย 1 รายการที่เหลืออยู่ของหัวข้อ
422 mode_not_supported คอนเทนต์โพสต์ (โหมดโพสต์)
ตัวอย่างคำขอ
curl -X DELETE "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.request(
    "DELETE",
    "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb")!)
request.httpMethod = "DELETE"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "variation_unique": "Hn4kT7sY1cVb",
    "mode": "blogmode",
    "delete_at": "2026-10-24T12:00:00Z"
  }
}

การดำเนินการกับออโตเมชัน

เริ่ม เปลี่ยนเวลา และหยุดออโตเมชันวิดีโอ บล็อก และแคโรเซล รวมถึงอนุมัติออโตเมชันที่รอการตรวจสอบ ดำเนินการได้ในขอบเขตเดียวกับออโตเมชันที่ดึงได้ด้วย GET /automations การหยุดใช้ได้ในทุกแพลน ส่วนการดำเนินการอื่นต้องใช้แพลน Pro ขึ้นไป

POST › /automations

เริ่มออโตเมชัน

เริ่มออโตเมชันสำหรับคอนเทนต์ (วิดีโอ บล็อก หรือแคโรเซล) โดยใช้การตั้งค่าของเทมเพลตออโตเมชัน หากระบุ reserved_at จะเป็นการตั้งเวลา หากไม่ระบุจะทำงานทันที คอนเทนต์เป้าหมายทั้งหมดต้องอยู่ในโปรเจกต์เดียวกันและโหมดเดียวกัน หากมีคอนเทนต์ที่เริ่มไม่ได้แม้เพียง 1 รายการ ระบบจะไม่ลงทะเบียนอะไรเลย และจะแจ้งว่าคอนเทนต์ใดเริ่มไม่ได้เพราะเหตุใด ขั้นตอนที่สร้างไว้แล้วจะถูกข้าม และการรันจะเริ่มจากขั้นตอนแรกที่ยังไม่ได้สร้าง ส่วนขั้นตอนที่ตั้งเป็นข้ามในเทมเพลตออโตเมชันจะไม่ถูกรัน สำหรับคอนเทนต์ที่ยังตั้งค่าไม่เสร็จ ระบบจะยืนยันการตั้งค่าตอนเริ่ม การรันออโตเมชันใช้ Token โดยไม่ตรวจสอบยอดคงเหลือตอนเริ่ม หากหมดระหว่างรัน ออโตเมชันจะจบด้วย token_shortage สำหรับการตั้งค่าที่ต้องตรวจสอบเนื้อหา ออโตเมชันจะหยุดที่ waiting_confirmation ระหว่างทาง ให้อนุมัติด้วย POST /automations/{auto_unique}/confirm การโพสต์อัตโนมัติของโพสต์ (โหมดโพสต์) เป็นกลไกแยกต่างหากที่เปิดและปิดต่อคอนเทนต์บนหน้าจอ และเริ่มด้วย endpoint นี้ไม่ได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
variation_uniques เนื้อหา string[] จำเป็น — variation_unique ของคอนเทนต์ที่จะทำออโตเมชัน 1–50 รายการ ห้ามซ้ำ
automation_template_unique เนื้อหา string จำเป็น — ID ของเทมเพลตออโตเมชัน (template_unique จาก GET /templates?kind=automation ที่เป็นโหมดเดียวกับคอนเทนต์)
reserved_at เนื้อหา string ไม่บังคับ — เวลาที่จะรัน (วันที่และเวลาในอนาคต) ระบุเป็น ISO 8601 พร้อมส่วนต่างเวลา ค่าที่ไม่มีส่วนต่างเวลาจะถือเป็น UTC หากไม่ระบุจะรันทันที
Idempotency-Key ส่วนหัว string จำเป็น — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) จำเป็นเพื่อป้องกันการเริ่มซ้ำสองครั้ง หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].auto_unique string ID ของการรันออโตเมชัน
data[].mode string moviemode / blogmode / carouselmode
data[].project object โปรเจกต์ {project_unique, project_name}
data[].content.variation_unique string ID ของคอนเทนต์
data[].content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
data[].run_no integer เป็นการรันครั้งที่เท่าไรของคอนเทนต์นั้น
data[].status string สถานะ pending (รอการทำงาน ตั้งเวลาไว้เมื่อ reserved_at อยู่ในอนาคต) / executing (กำลังทำงาน) / waiting_confirmation (รอการตรวจสอบเนื้อหา ทำงานต่อหลังตรวจสอบ) / completed (เสร็จสิ้น) / failed (ล้มเหลว) / stopped (หยุดแล้ว) / token_shortage (จบเพราะ Token ไม่พอ)
data[].execution_mode string sequential (ทีละ 1 รายการ) / parallel (พร้อมกันทั้งหมด)
data[].phases object สถานะของแต่ละช่วง {setup, step1, step2, step3} not_started (ยังไม่เริ่ม) / running (กำลังทำงาน หรือช่วงที่หยุดอยู่) / done (เสร็จสิ้น รวมที่ข้าม และสำหรับการรันที่จบเป็น completed จะรวมขั้นตอนที่อยู่นอกขอบเขตของการรันนี้) / error (ล้มเหลว)
data[].template.setup_template_name string | null ชื่อเทมเพลตการตั้งค่าที่ใช้ตอนเริ่ม
data[].template.automation_template_name string | null ชื่อเทมเพลตออโตเมชันที่ใช้ตอนเริ่ม
data[].reserved_at string | null เวลาทำงานที่ตั้งไว้
data[].executed_at string | null เวลาที่เริ่มการรัน
data[].completed_at string | null เวลาที่สิ้นสุด (เมื่อเป็น completed / failed / stopped / token_shortage)
data[].created_at string เวลาที่ลงทะเบียนการรัน
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
404 content_not_found มี variation_unique ที่ไม่อยู่ในคอนเทนต์ที่เข้าถึงได้ (รวมคอนเทนต์ที่ถูกกำหนดให้ลบหลังจากรับคำขอแล้ว ระบบจะไม่ลงทะเบียนอะไรเลย) details.variation_uniques จะมีรายการที่ตรงกัน
404 automation_template_not_found ไม่มีเทมเพลตออโตเมชัน
409 contents_not_automatable มีคอนเทนต์ที่เริ่มไม่ได้ (ระบบจะไม่ลงทะเบียนอะไรเลย) details.contents เป็นอาร์เรย์ของ {variation_unique, reason} โดย reason คือ automation_active (มีออโตเมชันที่ยังไม่เสร็จสิ้น) / content_complete (เสร็จสมบูรณ์แล้ว) / content_readonly (อ่านได้อย่างเดียวเพราะลดระดับแพลน) / layout_template_required (เป็นคอนเทนต์แบบแคโรเซลในโปรเจกต์ที่ไม่มีเทมเพลตเลย์เอาต์เลยแม้แต่ 1 รายการ)
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 validation_error พารามิเตอร์ไม่ถูกต้อง (0 รายการ หรือ 51 รายการขึ้นไป มีรายการซ้ำ reserved_at อยู่ในอดีต เป็นต้น)
422 mode_not_supported มีคอนเทนต์โพสต์ (โหมดโพสต์) รวมอยู่ details.variation_uniques จะมีรายการที่ตรงกัน
422 mixed_modes มีคอนเทนต์ต่างโหมดปะปนกัน
422 mixed_projects มีคอนเทนต์ต่างโปรเจกต์ปะปนกัน
422 automation_template_mode_mismatch โหมดของเทมเพลตออโตเมชันต่างจากโหมดของคอนเทนต์
422 idempotency_key_required ไม่มีส่วนหัว Idempotency-Key
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
503 automation_dispatch_failed เริ่มการทำงานทันทีไม่สำเร็จ ออโตเมชันที่ลงทะเบียนไว้จะเป็น failed หากส่งซ้ำด้วย Idempotency-Key เดิม ระบบจะลงทะเบียนใหม่และเริ่มทำงาน
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/automations" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
  "automation_template_unique": "Tm7pL2xQ9z",
  "reserved_at": "2030-01-02T12:04:05+09:00"
}'
import requests

body = """{
  "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
  "automation_template_unique": "Tm7pL2xQ9z",
  "reserved_at": "2030-01-02T12:04:05+09:00"
}"""

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/automations",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
  body: JSON.stringify({
    "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
    "automation_template_unique": "Tm7pL2xQ9z",
    "reserved_at": "2030-01-02T12:04:05+09:00"
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")
request.httpBody = """
{
  "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
  "automation_template_unique": "Tm7pL2xQ9z",
  "reserved_at": "2030-01-02T12:04:05+09:00"
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
        {
          "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
          "automation_template_unique": "Tm7pL2xQ9z",
          "reserved_at": "2030-01-02T12:04:05+09:00"
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
  "automation_template_unique": "Tm7pL2xQ9z",
  "reserved_at": "2030-01-02T12:04:05+09:00"
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/automations");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "auto_unique": "Qw3eRt6yUi",
      "mode": "blogmode",
      "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
      "content": { "variation_unique": "Ab3dEf6hIj9k", "title": "My blog title" },
      "run_no": 1,
      "status": "pending",
      "execution_mode": "sequential",
      "phases": { "setup": "running", "step1": "not_started", "step2": "not_started", "step3": "not_started" },
      "template": { "setup_template_name": null, "automation_template_name": "Morning blog" },
      "reserved_at": "2030-01-02T03:04:05Z",
      "executed_at": null,
      "completed_at": null,
      "created_at": "2026-10-21T10:00:00Z"
    },
    {
      "auto_unique": "As4dFg7hJk",
      "mode": "blogmode",
      "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
      "content": { "variation_unique": "Lm2nOp5qRs8t", "title": "My blog title" },
      "run_no": 1,
      "status": "pending",
      "execution_mode": "sequential",
      "phases": { "setup": "running", "step1": "not_started", "step2": "not_started", "step3": "not_started" },
      "template": { "setup_template_name": null, "automation_template_name": "Morning blog" },
      "reserved_at": "2030-01-02T03:04:05Z",
      "executed_at": null,
      "completed_at": null,
      "created_at": "2026-10-21T10:00:00Z"
    }
  ]
}
PATCH › /automations/{auto_unique}

เปลี่ยนเวลาที่ตั้งไว้

เปลี่ยนเวลาทำงานของออโตเมชันที่รอการทำงาน (status เป็น pending) ออโตเมชันที่เริ่มทำงานแล้วหรือเสร็จสิ้นแล้วจะเปลี่ยนแปลงไม่ได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
auto_unique พาธ string จำเป็น — ID ของการรันออโตเมชัน
reserved_at เนื้อหา string จำเป็น — เวลารันใหม่ (วันที่และเวลาในอนาคต) ระบุเป็น ISO 8601 พร้อมส่วนต่างเวลา ค่าที่ไม่มีส่วนต่างเวลาจะถือเป็น UTC
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
auto_unique string ID ของการรันออโตเมชัน
mode string moviemode / blogmode / carouselmode
project object โปรเจกต์ {project_unique, project_name}
content.variation_unique string ID ของคอนเทนต์
content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
run_no integer เป็นการรันครั้งที่เท่าไรของคอนเทนต์นั้น
status string สถานะ pending (รอการทำงาน ตั้งเวลาไว้เมื่อ reserved_at อยู่ในอนาคต) / executing (กำลังทำงาน) / waiting_confirmation (รอการตรวจสอบเนื้อหา ทำงานต่อหลังตรวจสอบ) / completed (เสร็จสิ้น) / failed (ล้มเหลว) / stopped (หยุดแล้ว) / token_shortage (จบเพราะ Token ไม่พอ)
execution_mode string sequential (ทีละ 1 รายการ) / parallel (พร้อมกันทั้งหมด)
phases object สถานะของแต่ละช่วง {setup, step1, step2, step3} not_started (ยังไม่เริ่ม) / running (กำลังทำงาน หรือช่วงที่หยุดอยู่) / done (เสร็จสิ้น รวมที่ข้าม และสำหรับการรันที่จบเป็น completed จะรวมขั้นตอนที่อยู่นอกขอบเขตของการรันนี้) / error (ล้มเหลว)
template.setup_template_name string | null ชื่อเทมเพลตการตั้งค่าที่ใช้ตอนเริ่ม
template.automation_template_name string | null ชื่อเทมเพลตออโตเมชันที่ใช้ตอนเริ่ม
reserved_at string | null เวลาทำงานที่ตั้งไว้
executed_at string | null เวลาที่เริ่มการรัน
completed_at string | null เวลาที่สิ้นสุด (เมื่อเป็น completed / failed / stopped / token_shortage)
created_at string เวลาที่ลงทะเบียนการรัน
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
404 not_found ไม่มีออโตเมชัน หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Automation not found.)
409 automation_not_pending ไม่ได้รอการทำงาน (pending) เริ่มทำงานแล้วหรือเสร็จสิ้นแล้ว
422 validation_error reserved_at หายไป อ่านเป็นวันที่และเวลาไม่ได้ หรืออยู่ในอดีต
ตัวอย่างคำขอ
curl -X PATCH "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
  "reserved_at": "2031-05-06T07:08:09+09:00"
}'
import requests

body = """{
  "reserved_at": "2031-05-06T07:08:09+09:00"
}"""

response = requests.request(
    "PATCH",
    "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi", {
  method: "PATCH",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "reserved_at": "2031-05-06T07:08:09+09:00"
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi")!)
request.httpMethod = "PATCH"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = """
{
  "reserved_at": "2031-05-06T07:08:09+09:00"
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("""
        {
          "reserved_at": "2031-05-06T07:08:09+09:00"
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "reserved_at": "2031-05-06T07:08:09+09:00"
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "auto_unique": "Qw3eRt6yUi",
    "mode": "blogmode",
    "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
    "content": { "variation_unique": "Ab3dEf6hIj9k", "title": "My blog title" },
    "run_no": 1,
    "status": "pending",
    "execution_mode": "sequential",
    "phases": { "setup": "running", "step1": "not_started", "step2": "not_started", "step3": "not_started" },
    "template": { "setup_template_name": null, "automation_template_name": "Morning blog" },
    "reserved_at": "2031-05-05T22:08:09Z",
    "executed_at": null,
    "completed_at": null,
    "created_at": "2026-10-21T10:00:00Z"
  }
}
POST › /automations/{auto_unique}/stop

หยุดออโตเมชัน

เป็นการดำเนินการเดียวกับการหยุดบนหน้าจอ ใช้ได้ในทุกแพลน (จึงหยุดได้แม้หลังเปลี่ยนแพลน) ออโตเมชันที่รอการทำงาน (รวมที่ตั้งเวลาไว้) หรือรอการตรวจสอบจะเป็น stopped ทันที สำหรับออโตเมชันที่กำลังทำงานจะมีการร้องขอให้หยุด ณ เวลาที่ตอบกลับยังเป็น executing และจะเป็น stopped ที่ช่วงคั่นระหว่างขั้นตอนถัดไป (ตรวจสอบด้วย GET /automations/{auto_unique}) ออโตเมชันที่เสร็จสิ้นแล้วจะไม่ถูกเปลี่ยนแปลง และจะส่งกลับสถานะปัจจุบัน

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
auto_unique พาธ string จำเป็น — ID ของการรันออโตเมชัน
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
auto_unique string ID ของการรันออโตเมชัน
mode string moviemode / blogmode / carouselmode
project object โปรเจกต์ {project_unique, project_name}
content.variation_unique string ID ของคอนเทนต์
content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
run_no integer เป็นการรันครั้งที่เท่าไรของคอนเทนต์นั้น
status string สถานะ pending (รอการทำงาน ตั้งเวลาไว้เมื่อ reserved_at อยู่ในอนาคต) / executing (กำลังทำงาน) / waiting_confirmation (รอการตรวจสอบเนื้อหา ทำงานต่อหลังตรวจสอบ) / completed (เสร็จสิ้น) / failed (ล้มเหลว) / stopped (หยุดแล้ว) / token_shortage (จบเพราะ Token ไม่พอ)
execution_mode string sequential (ทีละ 1 รายการ) / parallel (พร้อมกันทั้งหมด)
phases object สถานะของแต่ละช่วง {setup, step1, step2, step3} not_started (ยังไม่เริ่ม) / running (กำลังทำงาน หรือช่วงที่หยุดอยู่) / done (เสร็จสิ้น รวมที่ข้าม และสำหรับการรันที่จบเป็น completed จะรวมขั้นตอนที่อยู่นอกขอบเขตของการรันนี้) / error (ล้มเหลว)
template.setup_template_name string | null ชื่อเทมเพลตการตั้งค่าที่ใช้ตอนเริ่ม
template.automation_template_name string | null ชื่อเทมเพลตออโตเมชันที่ใช้ตอนเริ่ม
reserved_at string | null เวลาทำงานที่ตั้งไว้
executed_at string | null เวลาที่เริ่มการรัน
completed_at string | null เวลาที่สิ้นสุด (เมื่อเป็น completed / failed / stopped / token_shortage)
created_at string เวลาที่ลงทะเบียนการรัน
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีออโตเมชัน หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Automation not found.)
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "auto_unique": "Qw3eRt6yUi",
    "mode": "blogmode",
    "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
    "content": { "variation_unique": "Ab3dEf6hIj9k", "title": "My blog title" },
    "run_no": 1,
    "status": "stopped",
    "execution_mode": "sequential",
    "phases": { "setup": "running", "step1": "not_started", "step2": "not_started", "step3": "not_started" },
    "template": { "setup_template_name": null, "automation_template_name": "Morning blog" },
    "reserved_at": "2030-01-02T03:04:05Z",
    "executed_at": null,
    "completed_at": "2026-10-21T10:05:00Z",
    "created_at": "2026-10-21T10:00:00Z"
  }
}
POST › /automations/{auto_unique}/confirm

อนุมัติออโตเมชันที่รอการตรวจสอบ

สำหรับออโตเมชันที่หยุดรอการตรวจสอบเนื้อหา (status เป็น waiting_confirmation) จะทำเครื่องหมายว่าตรวจสอบเนื้อหาแล้ว และดำเนินการส่วนที่เหลือ (การสร้างข้อความสำหรับSNS การโพสต์ เป็นต้น) เป็นการดำเนินการเดียวกับการตรวจสอบเนื้อหาบนหน้าจอ เมื่อสำเร็จ ออโตเมชันจะกลับเป็น pending และเริ่มทำงานทันที

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
auto_unique พาธ string จำเป็น — ID ของการรันออโตเมชัน
Idempotency-Key ส่วนหัว string ไม่บังคับ — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
auto_unique string ID ของการรันออโตเมชัน
mode string moviemode / blogmode / carouselmode
project object โปรเจกต์ {project_unique, project_name}
content.variation_unique string ID ของคอนเทนต์
content.title string | null หัวข้อ (postmode เป็นชื่อคอนเซปต์)
run_no integer เป็นการรันครั้งที่เท่าไรของคอนเทนต์นั้น
status string สถานะ pending (รอการทำงาน ตั้งเวลาไว้เมื่อ reserved_at อยู่ในอนาคต) / executing (กำลังทำงาน) / waiting_confirmation (รอการตรวจสอบเนื้อหา ทำงานต่อหลังตรวจสอบ) / completed (เสร็จสิ้น) / failed (ล้มเหลว) / stopped (หยุดแล้ว) / token_shortage (จบเพราะ Token ไม่พอ)
execution_mode string sequential (ทีละ 1 รายการ) / parallel (พร้อมกันทั้งหมด)
phases object สถานะของแต่ละช่วง {setup, step1, step2, step3} not_started (ยังไม่เริ่ม) / running (กำลังทำงาน หรือช่วงที่หยุดอยู่) / done (เสร็จสิ้น รวมที่ข้าม และสำหรับการรันที่จบเป็น completed จะรวมขั้นตอนที่อยู่นอกขอบเขตของการรันนี้) / error (ล้มเหลว)
template.setup_template_name string | null ชื่อเทมเพลตการตั้งค่าที่ใช้ตอนเริ่ม
template.automation_template_name string | null ชื่อเทมเพลตออโตเมชันที่ใช้ตอนเริ่ม
reserved_at string | null เวลาทำงานที่ตั้งไว้
executed_at string | null เวลาที่เริ่มการรัน
completed_at string | null เวลาที่สิ้นสุด (เมื่อเป็น completed / failed / stopped / token_shortage)
created_at string เวลาที่ลงทะเบียนการรัน
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
404 not_found ไม่มีออโตเมชัน หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Automation not found.)
409 automation_not_waiting_confirmation ไม่ได้รอการตรวจสอบ (waiting_confirmation)
409 content_readonly คอนเทนต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
503 automation_dispatch_failed เริ่มการทำงานส่วนที่เหลือไม่สำเร็จ ออโตเมชันจะเป็น failed (คอนเทนต์ยังคงอยู่ในสถานะตรวจสอบแล้ว ดังนั้นให้เริ่มออโตเมชันใหม่เพื่อทำต่อ)
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90"
import requests

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "auto_unique": "Qw3eRt6yUi",
    "mode": "carouselmode",
    "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
    "content": { "variation_unique": "Ab3dEf6hIj9k", "title": "My carousel title" },
    "run_no": 1,
    "status": "pending",
    "execution_mode": "parallel",
    "phases": { "setup": "done", "step1": "done", "step2": "done", "step3": "running" },
    "template": { "setup_template_name": null, "automation_template_name": "Weekly carousel" },
    "reserved_at": null,
    "executed_at": "2026-10-21T09:00:00Z",
    "completed_at": null,
    "created_at": "2026-10-21T09:00:00Z"
  }
}

การตรวจสอบโพสต์

สำหรับคอนเทนต์ของออโตเมชันโพสต์ (โหมดโพสต์) ที่ตั้งการตรวจสอบก่อนโพสต์เป็นจำเป็นหรือไม่บังคับ สามารถอนุมัติ โพสต์ทันที เปลี่ยนวันที่และเวลา หรือยกเลิกโพสต์ได้ เป้าหมายคือโพสต์เดียวกับรายการรอการตรวจสอบบนหน้าจอและลิงก์ในอีเมลตรวจสอบ และใช้กฎเดียวกัน รายการใช้ได้ในทุกแพลน ส่วนการดำเนินการต้องใช้แพลน Pro ขึ้นไป

GET › /post-confirms

โพสต์ที่รอการตรวจสอบ

ดึงโพสต์ที่ส่งอีเมลตรวจสอบไปแล้วและยังไม่ถึงเวลาที่กำหนด (upcoming) หรือหมดอายุแล้ว (expired) เรียงตามเวลาที่กำหนดจากใกล้ไปไกล โพสต์ upcoming คือโพสต์ที่รออนุมัติ (awaiting ไม่อนุมัติจะไม่ถูกโพสต์) และโพสต์ที่แจ้งเตือนอย่างเดียว (notice โพสต์ตามเดิม) โพสต์ expired คือโพสต์ที่เลยเวลาที่กำหนดโดยไม่ได้รับอนุมัติและไม่ถูกโพสต์ โดยจะส่งกลับเพียง 30 วันหลังเวลาที่กำหนด เธรดจะส่งกลับเป็น 1 รายการสำหรับโพสต์แรก ส่วนโพสต์ที่ 2 เป็นต้นไปอยู่ใน thread ใช้ได้ในทุกแพลน

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
state คิวรี string ไม่บังคับ — กรองตาม upcoming (ก่อนถึงเวลาที่กำหนด) หรือ expired (หมดอายุ) หากไม่ระบุจะเป็นทั้งสองอย่าง
project_unique คิวรี string ไม่บังคับ — ส่งกลับเฉพาะโพสต์ของโปรเจกต์นี้
page คิวรี integer ไม่บังคับ 1 หน้าที่จะดึง (เริ่มจาก 1)
per_page คิวรี integer ไม่บังคับ 20 จำนวนรายการต่อหน้า (1–100)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].schedule_unique string ID ของโพสต์ที่ตั้งเวลาไว้ ใช้ในพาธของการดำเนินการ
data[].state string | null upcoming (ก่อนถึงเวลาที่กำหนด) / expired (หมดอายุ) เป็น null สำหรับโพสต์ที่ไม่อยู่ระหว่างตรวจสอบอีกต่อไปหลังอนุมัติ เปลี่ยนวันที่และเวลา และอื่น ๆ (เฉพาะในการตอบกลับของการดำเนินการ)
data[].confirm_state string awaiting (รออนุมัติ ไม่โพสต์จนกว่าจะอนุมัติ) / notice (แจ้งเตือนอย่างเดียว โพสต์ตามเดิม) / confirmed (อนุมัติแล้ว) / none (ไม่ตรวจสอบ)
data[].confirm_mode string การตั้งค่าการตรวจสอบของคอนเทนต์ required (ไม่โพสต์จนกว่าจะอนุมัติ) / optional (โพสต์แม้ไม่อนุมัติ) / none (ไม่ตรวจสอบ)
data[].can_approve boolean อนุมัติได้หรือไม่ (เป็น true เมื่อเป็น upcoming และ awaiting)
data[].can_post_now boolean โพสต์ทันทีได้หรือไม่ (เป็น true เมื่อเป็น expired)
data[].can_reschedule boolean เปลี่ยนวันที่และเวลาได้หรือไม่ (เป็น true เมื่อเป็น expired)
data[].scheduled_at string เวลาที่กำหนดโพสต์
data[].scheduled_at_local string เวลาที่กำหนดในเวลาท้องถิ่นของ timezone (YYYY-MM-DDTHH:MM:SS)
data[].timezone string เขตเวลาตอนที่สร้างแผน
data[].deadline_at string | null กำหนดเวลาที่ดำเนินการได้ สำหรับ upcoming คือเวลาที่กำหนด (เมื่อเลยจะเป็น expired) สำหรับ expired คือ 30 วันหลังเวลาที่กำหนด (เมื่อเลยจะหายจากรายการและดำเนินการไม่ได้) เป็น null หาก state เป็น null
data[].project object โปรเจกต์ {project_unique, project_name}
data[].concept object คอนเซปต์ {concept_unique, concept_name}
data[].variation_unique string ID ของคอนเทนต์
data[].post_unique string ID ของโพสต์ (เหมือนกับ items[].post_unique ในตารางเวลาโพสต์)
data[].post_type string ประเภทโพสต์ assertion (ความคิดเห็น) / knowhow (ความรู้และวิธีการ) / experience (ประสบการณ์) / casual (ชีวิตประจำวัน)
data[].text string ข้อความของโพสต์ (โพสต์แรกของเธรด)
data[].thread[] object โพสต์ที่ 2 เป็นต้นไปของเธรด {text, image} (ตามลำดับ เป็นอาร์เรย์ว่างหากไม่ใช่เธรด)
data[].image object | null รูปภาพที่แนบ {url, expires_at} (URL แบบมีลายเซ็น หมดอายุใน 1 ชั่วโมง) เป็น null หากไม่มี
meta.total integer จำนวนรายการที่ตรงตามเงื่อนไขทั้งหมด
meta.current_page integer หน้าปัจจุบัน
meta.per_page integer จำนวนรายการต่อ 1 หน้า
meta.last_page integer หน้าสุดท้าย
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีโปรเจกต์ หรืออยู่นอกขอบเขตที่เข้าถึงได้ (Project not found.)
422 validation_error พารามิเตอร์ไม่ถูกต้อง
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/post-confirms?state=upcoming" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/post-confirms?state=upcoming",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/post-confirms?state=upcoming", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/post-confirms?state=upcoming")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/post-confirms?state=upcoming"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/post-confirms?state=upcoming");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "schedule_unique": "aB3dE5fG7hJ9",
      "state": "upcoming",
      "confirm_state": "awaiting",
      "confirm_mode": "required",
      "can_approve": true,
      "can_post_now": false,
      "can_reschedule": false,
      "scheduled_at": "2026-10-19T13:00:00Z",
      "scheduled_at_local": "2026-10-19T22:00:00",
      "timezone": "Asia/Tokyo",
      "deadline_at": "2026-10-19T13:00:00Z",
      "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My brand" },
      "concept": { "concept_unique": "Cx2Yz4Wv6Ut8", "concept_name": "Morning tips" },
      "variation_unique": "Vr5Ws7Xt9Yu1",
      "post_unique": "Ps3Qt5Ru7Sv9",
      "post_type": "knowhow",
      "text": "First post of the thread",
      "thread": [
        { "text": "Second post", "image": null },
        { "text": "Third post", "image": { "url": "https://...", "expires_at": "2026-10-19T13:00:00Z" } }
      ],
      "image": null
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 20, "last_page": 1 }
}
POST › /post-schedules/{schedule_unique}/approve

อนุมัติโพสต์

อนุมัติโพสต์ที่รออนุมัติ (upcoming ที่ confirm_state เป็น awaiting) โพสต์ที่อนุมัติแล้วจะถูกโพสต์ตามเวลาที่กำหนด สำหรับโพสต์ที่เลยเวลาที่กำหนดแล้ว ให้ใช้การโพสต์ทันทีหรือเปลี่ยนวันที่และเวลา

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
schedule_unique พาธ string จำเป็น — ID ของโพสต์ที่ตั้งเวลาไว้ (schedule_unique จาก GET /post-confirms)
Idempotency-Key ส่วนหัว string ไม่บังคับ — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
schedule_unique / state / … / image — เหมือนกับ 1 รายการในรายการโพสต์ที่รอการตรวจสอบ (สถานะหลังดำเนินการ)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
404 post_schedule_not_found โพสต์ที่ไม่ปรากฏใน GET /post-confirms (ไม่มีอยู่ อยู่นอกขอบเขตที่เข้าถึงได้ ไม่ได้อยู่ระหว่างตรวจสอบ หรืออนุมัติไปแล้ว)
409 confirm_expired เลยเวลาที่กำหนดแล้ว (ใช้การโพสต์ทันทีหรือเปลี่ยนวันที่และเวลา)
409 confirm_not_pending ไม่ได้รออนุมัติ (เช่น โพสต์ที่แจ้งเตือนอย่างเดียว notice)
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90"
import requests

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "state": null,
    "confirm_state": "confirmed",
    "confirm_mode": "required",
    "can_approve": false,
    "can_post_now": false,
    "can_reschedule": false,
    "scheduled_at": "2026-10-19T13:00:00Z",
    "scheduled_at_local": "2026-10-19T22:00:00",
    "timezone": "Asia/Tokyo",
    "deadline_at": null,
    "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My brand" },
    "concept": { "concept_unique": "Cx2Yz4Wv6Ut8", "concept_name": "Morning tips" },
    "variation_unique": "Vr5Ws7Xt9Yu1",
    "post_unique": "Ps3Qt5Ru7Sv9",
    "post_type": "knowhow",
    "text": "First post of the thread",
    "thread": [
      { "text": "Second post", "image": null },
      { "text": "Third post", "image": { "url": "https://...", "expires_at": "2026-10-19T13:00:00Z" } }
    ],
    "image": null
  }
}
POST › /post-schedules/{schedule_unique}/post-now

โพสต์ที่หมดอายุทันที

ตั้งให้โพสต์ที่หมดอายุ (expired) โพสต์ในอีก 1 นาทีนับจากตอนนี้ และทำเครื่องหมายว่าอนุมัติแล้ว (จะโพสต์ในอีกไม่นาน) โพสต์ที่ 2 เป็นต้นไปของเธรดจะเลื่อนเวลาตามไปเท่ากัน ใช้ได้เฉพาะโพสต์ที่หมดอายุ

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
schedule_unique พาธ string จำเป็น — ID ของโพสต์ที่ตั้งเวลาไว้ (schedule_unique จาก GET /post-confirms)
allow_close_slot เนื้อหา boolean ไม่บังคับ false true เพื่อดำเนินการต่อแม้ช่วงห่างจากการตั้งเวลาอื่นของคอนเทนต์เดียวกันจะสั้นกว่าช่วงห่างขั้นต่ำ (90 นาที)
Idempotency-Key ส่วนหัว string ไม่บังคับ — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
schedule_unique / state / … / image — เหมือนกับ 1 รายการในรายการโพสต์ที่รอการตรวจสอบ (สถานะหลังดำเนินการ)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
403 resource_readonly คอนเทนต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
404 post_schedule_not_found โพสต์ที่ไม่ปรากฏใน GET /post-confirms (ไม่มีอยู่ อยู่นอกขอบเขตที่เข้าถึงได้ ไม่ได้อยู่ระหว่างตรวจสอบ หรืออนุมัติไปแล้ว)
409 confirm_not_expired ยังไม่หมดอายุ (ก่อนถึงเวลาที่กำหนดให้ใช้การอนุมัติ)
409 schedule_close_to_other_slot allow_close_slot เป็น false และช่วงห่างจากการตั้งเวลาอื่นของคอนเทนต์เดียวกันจะสั้นกว่า 90 นาที details จะมี min_gap_minutes (ช่วงห่างขั้นต่ำเป็นนาที) timezone และ conflicts (อาร์เรย์ของโพสต์ที่ตั้งเวลาไว้ใกล้กัน {scheduled_at_local, minutes_apart})
409 schedule_locked กำลังโพสต์หรือโพสต์แล้ว หรืออยู่ภายใน 2 นาทีจากเวลาที่กำหนดซึ่งทับกับการประมวลผลโพสต์
409 schedule_processing การดำเนินการเกิดขึ้นพร้อมกับการโพสต์ จึงเปลี่ยนแปลงไม่ได้
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 validation_error allow_close_slot ไม่ใช่ true หรือ false
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "allow_close_slot": true
}'
import requests

body = """{
  "allow_close_slot": true
}"""

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
  body: JSON.stringify({
    "allow_close_slot": true
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")
request.httpBody = """
{
  "allow_close_slot": true
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
        {
          "allow_close_slot": true
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "allow_close_slot": true
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "state": null,
    "confirm_state": "confirmed",
    "confirm_mode": "required",
    "can_approve": false,
    "can_post_now": false,
    "can_reschedule": false,
    "scheduled_at": "2026-10-21T12:01:00Z",
    "scheduled_at_local": "2026-10-21T21:01:00",
    "timezone": "Asia/Tokyo",
    "deadline_at": null,
    "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My brand" },
    "concept": { "concept_unique": "Cx2Yz4Wv6Ut8", "concept_name": "Morning tips" },
    "variation_unique": "Vr5Ws7Xt9Yu1",
    "post_unique": "Ps3Qt5Ru7Sv9",
    "post_type": "knowhow",
    "text": "First post of the thread",
    "thread": [
      { "text": "Second post", "image": null },
      { "text": "Third post", "image": { "url": "https://...", "expires_at": "2026-10-19T13:00:00Z" } }
    ],
    "image": null
  }
}
PATCH › /post-schedules/{schedule_unique}

เปลี่ยนเวลาของโพสต์ที่หมดอายุ

เปลี่ยนวันที่และเวลาที่กำหนดของโพสต์ที่หมดอายุ (expired) และทำเครื่องหมายว่าอนุมัติแล้ว (จะโพสต์ตามวันที่และเวลาที่ระบุ) โพสต์ที่ 2 เป็นต้นไปของเธรดจะเลื่อนเวลาตามไปเท่ากัน เปลี่ยนวันที่และเวลาได้เฉพาะโพสต์ที่หมดอายุ

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
schedule_unique พาธ string จำเป็น — ID ของโพสต์ที่ตั้งเวลาไว้ (schedule_unique จาก GET /post-confirms)
scheduled_at เนื้อหา string จำเป็น — วันที่และเวลาใหม่ที่กำหนด (วันที่และเวลาในอนาคต) ระบุเป็น ISO 8601 พร้อมส่วนต่างเวลา (เช่น 2026-10-21T09:30:00+09:00 หรือ 2026-10-21T00:30:00Z ละวินาทีได้ และเศษของวินาทีจะถูกตัดทิ้ง) ระบบจะแปลงเป็นเวลาใน timezone ของโพสต์แล้วบันทึก
allow_close_slot เนื้อหา boolean ไม่บังคับ false true เพื่อดำเนินการต่อแม้ช่วงห่างจากการตั้งเวลาอื่นของคอนเทนต์เดียวกันจะสั้นกว่าช่วงห่างขั้นต่ำ (90 นาที)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
schedule_unique / state / … / image — เหมือนกับ 1 รายการในรายการโพสต์ที่รอการตรวจสอบ (สถานะหลังดำเนินการ)
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
403 resource_readonly คอนเทนต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
404 post_schedule_not_found โพสต์ที่ไม่ปรากฏใน GET /post-confirms (ไม่มีอยู่ อยู่นอกขอบเขตที่เข้าถึงได้ ไม่ได้อยู่ระหว่างตรวจสอบ หรืออนุมัติไปแล้ว)
409 confirm_not_expired ยังไม่หมดอายุ (ก่อนถึงเวลาที่กำหนดให้ใช้การอนุมัติ)
409 schedule_close_to_other_slot allow_close_slot เป็น false และช่วงห่างจากการตั้งเวลาอื่นของคอนเทนต์เดียวกันจะสั้นกว่า 90 นาที details จะมี min_gap_minutes (ช่วงห่างขั้นต่ำเป็นนาที) timezone และ conflicts (อาร์เรย์ของโพสต์ที่ตั้งเวลาไว้ใกล้กัน {scheduled_at_local, minutes_apart})
409 schedule_locked กำลังโพสต์หรือโพสต์แล้ว หรืออยู่ภายใน 2 นาทีจากเวลาที่กำหนดซึ่งทับกับการประมวลผลโพสต์
409 schedule_processing การดำเนินการเกิดขึ้นพร้อมกับการโพสต์ จึงเปลี่ยนแปลงไม่ได้
422 confirm_reschedule_past scheduled_at เป็นเวลาปัจจุบันหรือก่อนหน้านั้น
422 validation_error scheduled_at หายไป ไม่มีส่วนต่างเวลา หรืออ่านเป็นวันที่และเวลาไม่ได้ หรือ allow_close_slot ไม่ใช่ true หรือ false
ตัวอย่างคำขอ
curl -X PATCH "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduled_at": "2026-10-22T09:30:00-05:00",
  "allow_close_slot": false
}'
import requests

body = """{
  "scheduled_at": "2026-10-22T09:30:00-05:00",
  "allow_close_slot": false
}"""

response = requests.request(
    "PATCH",
    "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9", {
  method: "PATCH",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "scheduled_at": "2026-10-22T09:30:00-05:00",
    "allow_close_slot": false
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9")!)
request.httpMethod = "PATCH"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = """
{
  "scheduled_at": "2026-10-22T09:30:00-05:00",
  "allow_close_slot": false
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .method("PATCH", HttpRequest.BodyPublishers.ofString("""
        {
          "scheduled_at": "2026-10-22T09:30:00-05:00",
          "allow_close_slot": false
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "scheduled_at": "2026-10-22T09:30:00-05:00",
  "allow_close_slot": false
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "state": null,
    "confirm_state": "confirmed",
    "confirm_mode": "required",
    "can_approve": false,
    "can_post_now": false,
    "can_reschedule": false,
    "scheduled_at": "2026-10-22T14:30:00Z",
    "scheduled_at_local": "2026-10-22T23:30:00",
    "timezone": "Asia/Tokyo",
    "deadline_at": null,
    "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My brand" },
    "concept": { "concept_unique": "Cx2Yz4Wv6Ut8", "concept_name": "Morning tips" },
    "variation_unique": "Vr5Ws7Xt9Yu1",
    "post_unique": "Ps3Qt5Ru7Sv9",
    "post_type": "knowhow",
    "text": "First post of the thread",
    "thread": [
      { "text": "Second post", "image": null },
      { "text": "Third post", "image": { "url": "https://...", "expires_at": "2026-10-19T13:00:00Z" } }
    ],
    "image": null
  }
}
DELETE › /post-schedules/{schedule_unique}

ยกเลิกโพสต์

ยกเลิกโพสต์ (ไม่ว่าจะก่อนถึงเวลาที่กำหนดหรือหมดอายุแล้ว) โพสต์ โพสต์ที่ 2 เป็นต้นไปของเธรด และการตั้งเวลาจะถูกลบทั้งหมด ไม่สามารถย้อนกลับได้

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
schedule_unique พาธ string จำเป็น — ID ของโพสต์ที่ตั้งเวลาไว้ (schedule_unique จาก GET /post-confirms)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
schedule_unique string ID ของโพสต์ที่ตั้งเวลาไว้ซึ่งถูกยกเลิก
deleted boolean เป็น true เสมอ
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
403 resource_readonly คอนเทนต์อ่านได้อย่างเดียวเนื่องจากลดระดับแพลน
404 post_schedule_not_found โพสต์ที่ไม่ปรากฏใน GET /post-confirms (ไม่มีอยู่ อยู่นอกขอบเขตที่เข้าถึงได้ ไม่ได้อยู่ระหว่างตรวจสอบ หรืออนุมัติไปแล้ว)
409 post_posting_locked กำลังโพสต์ (รวมโพสต์ที่ 2 เป็นต้นไปของเธรด) จึงยกเลิกไม่ได้
ตัวอย่างคำขอ
curl -X DELETE "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.request(
    "DELETE",
    "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9")!)
request.httpMethod = "DELETE"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "deleted": true
  }
}

Webhook

ส่งเหตุการณ์ของออโตเมชันและการโพสต์เป็น JSON ไปยัง URL ที่คุณลงทะเบียน ใช้เมื่ออยากทราบการเสร็จสิ้น ความล้มเหลว และการรอตรวจสอบ โดยไม่ต้องเรียก API ซ้ำ ๆ การลงทะเบียนและการส่งทดสอบต้องใช้แพลน Pro ขึ้นไป ส่วนการแสดงรายการและการลบใช้ได้ในทุกแพลน

GET › /webhooks

รายการปลายทาง Webhook

ดึงปลายทางที่ลงทะเบียนไว้ตามลำดับที่ลงทะเบียน (สูงสุด 5 รายการ ไม่มีการแบ่งหน้า) ไม่รวม secret สำหรับลายเซ็น ใช้ได้ในทุกแพลน

ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
data[].webhook_unique string ID ของปลายทาง
data[].url string URL ปลายทาง
data[].events string[] ชื่อเหตุการณ์ที่จะได้รับ
data[].description string | null บันทึก
data[].is_active boolean กำลังส่งเหตุการณ์อยู่หรือไม่ เป็น true เมื่อเจ้าของอยู่ในแพลน Pro ขึ้นไป (สำหรับสมาชิกทีม คือเมื่อเจ้าของทีมอยู่ในแพลน Team) เหตุการณ์ที่เกิดขึ้นขณะเป็น false จะไม่ถูกส่ง
data[].last_delivery_at string | null เวลาที่พยายามส่งครั้งล่าสุด (ไม่รวมการส่งทดสอบ)
data[].last_delivery_status string | null ผลการส่งครั้งล่าสุด succeeded (สำเร็จ) / failed (ล้มเหลว) เป็น null หากยังไม่เคยส่ง
data[].last_response_status integer | null สถานะ HTTP ที่ได้รับในการส่งครั้งล่าสุด (เป็น null หากไม่มีการตอบกลับ)
data[].last_error string | null เหตุผลที่การส่งครั้งล่าสุดล้มเหลว ค่าเหมือนกับ error ของการส่งทดสอบ
data[].created_at string สร้างเมื่อ
ตัวอย่างคำขอ
curl "https://stepeee.com/public-api/v1/webhooks" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.get(
    "https://stepeee.com/public-api/v1/webhooks",
    headers={"Authorization": "Bearer sk_xxxxxxxxxxxxxxxx"},
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/webhooks", {
  headers: { Authorization: "Bearer sk_xxxxxxxxxxxxxxxx" },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/webhooks")!)
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/webhooks"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/webhooks");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": [
    {
      "webhook_unique": "Xk3pQ9vLm2Ta",
      "url": "https://example.com/hooks/stepeee",
      "events": ["automation.completed", "post.published"],
      "description": "production hook",
      "is_active": true,
      "last_delivery_at": "2026-10-21T12:01:00Z",
      "last_delivery_status": "failed",
      "last_response_status": 503,
      "last_error": "non_2xx_response",
      "created_at": "2026-10-20T09:00:00Z"
    }
  ]
}
POST › /webhooks

ลงทะเบียนปลายทาง Webhook

ลงทะเบียนปลายทางการแจ้งเตือน secret (secret สำหรับลายเซ็น) ในการตอบกลับจะถูกส่งกลับเฉพาะในการตอบกลับนี้เท่านั้น และไม่มีวิธีแสดงอีกภายหลัง หากทำหาย ให้ลบปลายทางแล้วลงทะเบียนใหม่ ลงทะเบียนได้สูงสุด 5 รายการ เหตุการณ์ที่เกิดขึ้นก่อนการลงทะเบียนจะไม่ถูกส่ง

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
url เนื้อหา string จำเป็น — URL ปลายทาง (https เท่านั้น พอร์ต 443 เท่านั้น (ละได้) ไม่เกิน 2048 ตัวอักษร) ลงทะเบียน URL ที่มีชื่อผู้ใช้หรือรหัสผ่านไม่ได้ ลงทะเบียน URL ที่แปลงเป็นที่อยู่ภายในหรือที่อยู่ที่สงวนไว้ (IP ส่วนตัว loopback link-local localhost เป็นต้น) และ URL ที่แปลงชื่อไม่ได้ ไม่ได้
events เนื้อหา string[] จำเป็น — ชื่อเหตุการณ์ที่จะได้รับ (อย่างน้อย 1 รายการจากรายการเหตุการณ์ ห้ามซ้ำ)
description เนื้อหา string | null ไม่บังคับ — บันทึก (ไม่เกิน 100 ตัวอักษร)
Idempotency-Key ส่วนหัว string ไม่บังคับ — สตริงที่ไม่ซ้ำกันซึ่งสร้างขึ้นสำหรับแต่ละการดำเนินการ (อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว) หากส่งเนื้อหาเดิมซ้ำด้วย Key เดิม จะส่งการตอบกลับครั้งแรกกลับมาตามเดิม (ดู Idempotency-Key ในข้อกำหนดทั่วไป)
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
webhook_unique string ID ของปลายทาง
url string URL ปลายทาง
events string[] ชื่อเหตุการณ์ที่จะได้รับ
description string | null บันทึก
is_active boolean กำลังส่งเหตุการณ์อยู่หรือไม่ เป็น true เมื่อเจ้าของอยู่ในแพลน Pro ขึ้นไป (สำหรับสมาชิกทีม คือเมื่อเจ้าของทีมอยู่ในแพลน Team) เหตุการณ์ที่เกิดขึ้นขณะเป็น false จะไม่ถูกส่ง
last_delivery_at string | null เวลาที่พยายามส่งครั้งล่าสุด (ไม่รวมการส่งทดสอบ)
last_delivery_status string | null ผลการส่งครั้งล่าสุด succeeded (สำเร็จ) / failed (ล้มเหลว) เป็น null หากยังไม่เคยส่ง
last_response_status integer | null สถานะ HTTP ที่ได้รับในการส่งครั้งล่าสุด (เป็น null หากไม่มีการตอบกลับ)
last_error string | null เหตุผลที่การส่งครั้งล่าสุดล้มเหลว ค่าเหมือนกับ error ของการส่งทดสอบ
created_at string สร้างเมื่อ
secret string secret สำหรับลายเซ็น (ขึ้นต้นด้วย whsec_) ส่งกลับเฉพาะในการตอบกลับนี้
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
409 webhook_limit_reached ลงทะเบียนครบ 5 รายการแล้ว
409 idempotency_request_in_progress คำขอที่ใช้ Idempotency-Key เดียวกันยังประมวลผลอยู่
422 validation_error ข้อมูลที่ป้อนไม่ถูกต้อง (URL ที่ไม่ใช่ https พอร์ตอื่นที่ไม่ใช่ 443 URL ที่มีชื่อผู้ใช้หรือรหัสผ่าน URL ที่แปลงเป็นที่อยู่ภายในหรือแปลงชื่อไม่ได้ ชื่อเหตุการณ์ที่ไม่รู้จัก ชื่อเหตุการณ์ซ้ำ เป็นต้น)
422 idempotency_key_invalid Idempotency-Key ไม่ใช่อักขระ ASCII ที่แสดงผลได้ 1–255 ตัว
422 idempotency_key_reused ใช้ Idempotency-Key เดิมกับคำขอที่มีเนื้อหาต่างกัน
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/webhooks" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "url": "https://example.com/hooks/stepeee",
  "events": ["automation.completed", "post.published"],
  "description": "production hook"
}'
import requests

body = """{
  "url": "https://example.com/hooks/stepeee",
  "events": ["automation.completed", "post.published"],
  "description": "production hook"
}"""

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/webhooks",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
        "Content-Type": "application/json",
        "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
    },
    data=body,
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/webhooks", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type": "application/json",
    "Idempotency-Key": "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
  },
  body: JSON.stringify({
    "url": "https://example.com/hooks/stepeee",
    "events": ["automation.completed", "post.published"],
    "description": "production hook"
  }),
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/webhooks")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.setValue("5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90", forHTTPHeaderField: "Idempotency-Key")
request.httpBody = """
{
  "url": "https://example.com/hooks/stepeee",
  "events": ["automation.completed", "post.published"],
  "description": "production hook"
}
""".data(using: .utf8)

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/webhooks"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .header("Content-Type", "application/json")
    .header("Idempotency-Key", "5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90")
    .method("POST", HttpRequest.BodyPublishers.ofString("""
        {
          "url": "https://example.com/hooks/stepeee",
          "events": ["automation.completed", "post.published"],
          "description": "production hook"
        }
        """))
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$body = <<<'JSON'
{
  "url": "https://example.com/hooks/stepeee",
  "events": ["automation.completed", "post.published"],
  "description": "production hook"
}
JSON;

$ch = curl_init("https://stepeee.com/public-api/v1/webhooks");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
    "Content-Type: application/json",
    "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, $body);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "webhook_unique": "Xk3pQ9vLm2Ta",
    "url": "https://example.com/hooks/stepeee",
    "events": ["automation.completed", "post.published"],
    "description": "production hook",
    "is_active": true,
    "last_delivery_at": null,
    "last_delivery_status": null,
    "last_response_status": null,
    "last_error": null,
    "created_at": "2026-10-21T12:00:00Z",
    "secret": "whsec_5f0c2a9e8b7d4c3a1f6e9d8c7b6a5f4e3d2c1b0a9f8e7d6c"
  }
}
DELETE › /webhooks/{webhook_unique}

ลบปลายทาง Webhook

ลบปลายทางการแจ้งเตือน เหตุการณ์ที่ยังไม่ได้ส่งและเหตุการณ์ที่รอลองส่งใหม่จะไม่ถูกส่งเช่นกัน ใช้ได้ในทุกแพลน

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
webhook_unique พาธ string จำเป็น — ID ของปลายทาง
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
webhook_unique string ID ของปลายทางที่ลบ
deleted boolean เป็น true เสมอ
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
404 not_found ไม่มีปลายทางการแจ้งเตือน หรือเป็นของผู้ใช้อื่น
ตัวอย่างคำขอ
curl -X DELETE "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.request(
    "DELETE",
    "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta")!)
request.httpMethod = "DELETE"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .method("DELETE", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "webhook_unique": "Xk3pQ9vLm2Ta",
    "deleted": true
  }
}
POST › /webhooks/{webhook_unique}/test

ทดสอบการส่ง

ส่งเหตุการณ์ webhook.test 1 ครั้งทันทีและส่งกลับผลลัพธ์ ส่งด้วยลายเซ็น ส่วนหัว และการตรวจสอบปลายทางแบบเดียวกับเหตุการณ์จริง จึงใช้ตรวจสอบการยืนยันลายเซ็นฝั่งผู้รับได้ ระบบจะไม่ลองใหม่ และไม่บันทึกใน last_delivery_at และฟิลด์ที่คล้ายกัน

พารามิเตอร์
ชื่อ ตำแหน่ง ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
webhook_unique พาธ string จำเป็น — ID ของปลายทาง
ฟิลด์ในการตอบกลับ
ฟิลด์ชนิดคำอธิบาย
delivered boolean ได้รับการตอบกลับ 2xx หรือไม่
response_status integer | null สถานะ HTTP ที่ได้รับ (เป็น null หากไม่มีการตอบกลับ)
error string | null เหตุผลที่ล้มเหลว url_blocked (ไม่ใช่ https, พอร์ตอื่นที่ไม่ใช่ 443, มีชื่อผู้ใช้และรหัสผ่าน, หรือก่อนส่งแปลงเป็นที่อยู่ภายในหรือแปลงชื่อไม่ได้) / timeout (ไม่มีการตอบกลับภายใน 5 วินาที) / connection_failed (การเชื่อมต่อหรือ TLS ล้มเหลว) / non_2xx_response (การตอบกลับที่ไม่ใช่ 2xx การเปลี่ยนเส้นทางก็ถือเป็นความล้มเหลวและจะไม่ตามไป) เป็น null เมื่อสำเร็จ
ข้อผิดพลาด
สถานะรหัสเงื่อนไขที่เกิดขึ้น
403 plan_required เจ้าของ API Key อยู่ต่ำกว่าแพลน Pro
403 team_plan_lost คุณเป็นสมาชิกทีม และเจ้าของทีมไม่ได้อยู่ในแพลน Team อีกต่อไป
404 not_found ไม่มีปลายทางการแจ้งเตือน หรือเป็นของผู้ใช้อื่น
ตัวอย่างคำขอ
curl -X POST "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

response = requests.request(
    "POST",
    "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test",
    headers={
        "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
    },
)
print(response.json())
const response = await fetch("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test", {
  method: "POST",
  headers: {
    "Authorization": "Bearer sk_xxxxxxxxxxxxxxxx",
  },
});
const data = await response.json();
console.log(data);
var request = URLRequest(url: URL(string: "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test")!)
request.httpMethod = "POST"
request.setValue("Bearer sk_xxxxxxxxxxxxxxxx", forHTTPHeaderField: "Authorization")

let (data, _) = try await URLSession.shared.data(for: request)
print(String(data: data, encoding: .utf8)!)
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
    .uri(URI.create("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test"))
    .header("Authorization", "Bearer sk_xxxxxxxxxxxxxxxx")
    .method("POST", HttpRequest.BodyPublishers.noBody())
    .build();

HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
$ch = curl_init("https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Authorization: Bearer sk_xxxxxxxxxxxxxxxx",
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
ตัวอย่างการตอบกลับ
{
  "data": {
    "delivered": false,
    "response_status": 500,
    "error": "non_2xx_response"
  }
}

เหตุการณ์

เมื่อเกิดเหตุการณ์ที่ลงทะเบียนไว้กับปลายทาง ระบบจะส่ง POST ไปยัง URL ที่ลงทะเบียน ระบบจะส่งเฉพาะเหตุการณ์ในโปรเจกต์ที่เจ้าของปลายทางเข้าถึงได้ ณ เวลานั้น เหตุการณ์ถูกตรวจสอบทุก 1 นาที การส่งจึงอาจใช้เวลาหลายนาที ระบบจะไม่ส่งเหตุการณ์ที่เกิดก่อนลงทะเบียนปลายทาง และเหตุการณ์ที่เกิดขณะที่เจ้าของอยู่ต่ำกว่าแพลน Pro (สำหรับสมาชิกทีม คือขณะที่เจ้าของทีมไม่ได้อยู่ในแพลน Team)

เหตุการณ์ความหมาย
automation.waiting_confirmationออโตเมชัน (วิดีโอ บล็อก หรือแคโรเซล) หยุดรอการตรวจสอบเนื้อหา
automation.completedออโตเมชันเสร็จสมบูรณ์จนจบ
automation.failedออโตเมชันจบด้วย failed, stopped หรือ token_shortage (Token หมด)
post.publishedโพสต์ไปยัง SNS แล้ว (ผลการโพสต์ของวิดีโอ บล็อก หรือแคโรเซลเป็น success หรือโพสต์ (โหมดโพสต์) ถูกโพสต์ไปยัง X) รวมทั้งโพสต์ด้วยตนเองและโพสต์จากออโตเมชัน
post.failedโพสต์ล้มเหลว (ผลการโพสต์ของวิดีโอ บล็อก หรือแคโรเซลเป็น failed หรือ partial_success หรือโพสต์ (โหมดโพสต์) ถูกข้ามเพราะการโพสต์หรือการสร้างข้อความล้มเหลว)
post.confirm_requiredโพสต์ (โหมดโพสต์) ที่รออนุมัติปรากฏใน GET /post-confirms (จะไม่ถูกโพสต์จนกว่าจะอนุมัติ)
webhook.testการส่งทดสอบ (POST /webhooks/{webhook_unique}/test) ใช้เป็นเหตุการณ์ที่ลงทะเบียนให้ปลายทางไม่ได้

เนื้อหาที่ส่ง

เนื้อหาเป็น JSON (UTF-8) ของ {id, type, created_at, data} โดย id คือ ID ของเหตุการณ์ (ขึ้นต้นด้วย evt_) type คือชื่อเหตุการณ์ และ created_at คือเวลาที่บันทึกเหตุการณ์ เมื่อส่งเหตุการณ์เดิมซ้ำ เนื้อหาจะเหมือนเดิม และมีเพียง t ในลายเซ็นที่เปลี่ยน รูปแบบของ data ของแต่ละเหตุการณ์เป็นดังนี้

เหตุการณ์รูปแบบของ data
automation.*รูปแบบเดียวกับ 1 รายการของ data[] ใน GET /automations status เป็น waiting_confirmation สำหรับ automation.waiting_confirmation, completed สำหรับ automation.completed และ failed / stopped / token_shortage สำหรับ automation.failed
post.published
post.failed
วิดีโอ บล็อก และแคโรเซล: รูปแบบของ 1 รายการของ data[] ใน GET /projects/{project_unique}/publications พร้อม project เพิ่มเติม สำหรับ post.failed status เป็น failed หรือ partial_success และ error_code จะมีรหัสความล้มเหลวเดียวกับผลการโพสต์ โพสต์ (โหมดโพสต์): รูปแบบเดียวกันพร้อม schedule_unique เพิ่มเติม publication_unique คือ ID ของโพสต์ (เป็น null สำหรับแผนที่การสร้างข้อความล้มเหลว) content.title คือชื่อคอนเซปต์ account เป็น null และ error_code คือ token_expired / api_error / not_found / insufficient_token / no_x_account / node_ws_timeout ใช้ is_automation เพื่อแยกว่าเป็นโพสต์จากออโตเมชันหรือไม่
post.confirm_requiredรูปแบบเดียวกับ 1 รายการของ data[] ใน GET /post-confirms โดยเป็นค่า ณ เวลาที่บันทึกเหตุการณ์ ไม่ส่งสำหรับโพสต์ที่แจ้งเตือนอย่างเดียว (notice) URL แบบมีลายเซ็นของ image จะหมดอายุ 1 ชั่วโมงหลังบันทึก หากมาถึงช้า ให้ดึงใหม่ด้วย GET /post-confirms หากโพสต์ของแผนเดียวกันถูกสร้างใหม่ จะมาถึงอีกครั้งพร้อม post_unique ใหม่
webhook.test{"webhook_unique": "…"}

ตัวอย่างเนื้อหา

automation.failed
{
  "id": "evt_Q2x8Lr0aZk9MvB3pT7cYw1Nd",
  "type": "automation.failed",
  "created_at": "2026-10-21T12:01:03Z",
  "data": {
    "auto_unique": "a8Kd02LmQz",
    "mode": "blogmode",
    "project": { "project_unique": "Pj7Xc2Lq9W", "project_name": "My Project" },
    "content": { "variation_unique": "Vb3Nq8Ls1Kd0", "title": "How to start" },
    "run_no": 2,
    "status": "token_shortage",
    "execution_mode": "sequential",
    "phases": { "setup": "done", "step1": "done", "step2": "running", "step3": "not_started" },
    "template": { "setup_template_name": "Default", "automation_template_name": null },
    "reserved_at": null,
    "executed_at": "2026-10-21T11:40:00Z",
    "completed_at": "2026-10-21T12:00:41Z",
    "created_at": "2026-10-21T11:39:58Z"
  }
}
post.published
{
  "id": "evt_7hT2mWq9Zp3LxR8cVb1Nk5Ds",
  "type": "post.published",
  "created_at": "2026-10-21T12:02:10Z",
  "data": {
    "publication_unique": "Lg4Hs9Pq2Wx7",
    "mode": "moviemode",
    "project": { "project_unique": "Pj7Xc2Lq9W", "project_name": "My Project" },
    "content": { "variation_unique": "Mv8Kq2Zt5Rb1", "title": "5 tips" },
    "platform": "youtube",
    "account": { "account_unique": "Ac1Bd2Ef3Gh4", "name": "My Channel" },
    "status": "success",
    "post_url": "https://www.youtube.com/watch?v=xxxxxxxx",
    "error_code": null,
    "is_automation": true,
    "posted_at": "2026-10-21T12:01:55Z",
    "created_at": "2026-10-21T12:01:20Z"
  }
}
post.failed
{
  "id": "evt_9Zq1Lm4Xc7Vb2Nk8Ds3Pt6Wr",
  "type": "post.failed",
  "created_at": "2026-10-21T09:00:40Z",
  "data": {
    "publication_unique": "Pp5Kd8Lw2Qz9",
    "mode": "postmode",
    "project": { "project_unique": "Pj7Xc2Lq9W", "project_name": "My Project" },
    "content": { "variation_unique": "Pv4Lk9Qz2Wx6", "title": "My X concept" },
    "platform": "x",
    "account": null,
    "status": "failed",
    "post_url": null,
    "error_code": "token_expired",
    "is_automation": true,
    "posted_at": null,
    "created_at": "2026-10-20T21:00:12Z",
    "schedule_unique": "Sc6Hj1Kl8Mn3"
  }
}
post.confirm_required
{
  "id": "evt_3Kd8Lq2Wz7Xc1Vb9Nm4Pt6Rs",
  "type": "post.confirm_required",
  "created_at": "2026-10-19T08:15:02Z",
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "state": "upcoming",
    "confirm_state": "awaiting",
    "confirm_mode": "required",
    "can_approve": true,
    "can_post_now": false,
    "can_reschedule": false,
    "scheduled_at": "2026-10-19T13:00:00Z",
    "scheduled_at_local": "2026-10-19T22:00:00",
    "timezone": "Asia/Tokyo",
    "deadline_at": "2026-10-19T13:00:00Z",
    "project": { "project_unique": "Pq7Rs9Tu1V", "project_name": "My brand" },
    "concept": { "concept_unique": "Cx2Yz4Wv6Ut8", "concept_name": "Morning tips" },
    "variation_unique": "Vr5Ws7Xt9Yu1",
    "post_unique": "Ps3Qt5Ru7Sv9",
    "post_type": "knowhow",
    "text": "First post of the thread",
    "thread": [
      { "text": "Second post", "image": null }
    ],
    "image": { "url": "https://...", "expires_at": "2026-10-19T09:15:02Z" }
  }
}
webhook.test
{
  "id": "evt_Q2x8Lr0aZk9MvB3pT7cYw1Nd",
  "type": "webhook.test",
  "created_at": "2026-10-21T12:00:00Z",
  "data": { "webhook_unique": "Xk3pQ9vLm2Ta" }
}

ส่วนหัวของคำขอ

ส่วนหัวคำอธิบาย
Content-Type: application/jsonรูปแบบของเนื้อหา
Stepeee-Signature: t=1792584000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdลายเซ็น t คือเวลาที่ส่ง (วินาที UNIX) และ v1 คือลายเซ็น (HMAC-SHA256 ในรูปเลขฐาน 16) ดูวิธีตรวจสอบได้ที่การตรวจสอบลายเซ็นด้านล่าง
Stepeee-Event-Id: evt_Q2x8Lr0aZk9MvB3pT7cYw1NdID ของเหตุการณ์ (เหมือนกับ id ในเนื้อหา) ไม่เปลี่ยนแม้ส่งซ้ำ จึงใช้ตัดรายการซ้ำได้
Stepeee-Event-Type: automation.failedชื่อเหตุการณ์ (เหมือนกับ type ในเนื้อหา)
User-Agent: Stepeee-Webhooks/1.0ผู้ส่ง

การตรวจสอบลายเซ็น

เพื่อยืนยันว่าเนื้อหาที่ได้รับถูกส่งมาจาก Stepeee และไม่ถูกแก้ไข ให้ตรวจสอบลายเซ็นตามขั้นตอนต่อไปนี้

  1. แยกส่วนหัว Stepeee-Signature ด้วย "," แล้วนำค่าของ t= (วินาที UNIX) และค่าของ v1= (เลขฐาน 16 จำนวน 64 ตัว) ออกมา
  2. ใช้เนื้อหาที่ได้รับเป็นไบต์ตามเดิม (อย่าอ่าน JSON แล้วสร้างขึ้นใหม่) และสร้างสตริงที่ต่อค่า t, "." และเนื้อหาเข้าด้วยกัน
  3. คำนวณ HMAC-SHA256 โดยใช้ secret ที่ได้รับตอนลงทะเบียน (ทั้งค่ารวม whsec_) เป็นคีย์ แล้วแปลงเป็นเลขฐาน 16 ตัวพิมพ์เล็ก
  4. เปรียบเทียบค่าที่คำนวณได้กับ v1 ด้วยการเปรียบเทียบที่เวลาที่ใช้ไม่ขึ้นกับเนื้อหา (เช่น hmac.compare_digest ของ Python หรือ hash_equals ของ PHP) หากไม่ตรงกัน ให้ส่งกลับ 400 หรือคล้ายกัน และไม่ประมวลผล
  5. เพื่อป้องกันการส่งซ้ำของคำขอเก่า แนะนำให้ปฏิเสธคำขอที่ t ต่างจากเวลาปัจจุบันตั้งแต่ 5 นาทีขึ้นไป
  6. ใช้ id ในเนื้อหาเพื่อข้ามเหตุการณ์ที่ประมวลผลไปแล้ว

ตัวอย่างโค้ดสำหรับการตรวจสอบ

import hmac, hashlib, time

def verify(body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    t, v1 = parts.get("t"), parts.get("v1")
    if not t or not v1 or abs(time.time() - int(t)) > tolerance:
        return False
    expected = hmac.new(secret.encode(), f"{t}.".encode() + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, v1)

# Flask: verify(request.get_data(), request.headers["Stepeee-Signature"], SECRET)
const crypto = require("crypto");

function verify(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
  const t = parts.t, v1 = parts.v1;
  if (!t || !v1 || Math.abs(Date.now() / 1000 - Number(t)) > toleranceSec) return false;
  const expected = crypto.createHmac("sha256", secret).update(`${t}.`).update(rawBody).digest("hex");
  return v1.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

// Express: receive the body as raw bytes with express.raw()
app.post("/hooks/stepeee", express.raw({ type: "application/json" }), (req, res) => {
  if (!verify(req.body, req.get("Stepeee-Signature"), process.env.STEPEEE_WEBHOOK_SECRET)) return res.sendStatus(400);
  const event = JSON.parse(req.body.toString("utf8"));
  res.sendStatus(200);
});
function verifyStepeeeSignature(string $body, string $header, string $secret, int $tolerance = 300): bool
{
    $parts = [];
    foreach (explode(',', $header) as $part) {
        [$k, $v] = array_pad(explode('=', $part, 2), 2, '');
        $parts[$k] = $v;
    }
    if (! isset($parts['t'], $parts['v1']) || abs(time() - (int) $parts['t']) > $tolerance) {
        return false;
    }
    $expected = hash_hmac('sha256', $parts['t'].'.'.$body, $secret);

    return hash_equals($expected, $parts['v1']);
}

$ok = verifyStepeeeSignature(file_get_contents('php://input'), $_SERVER['HTTP_STEPEEE_SIGNATURE'] ?? '', $secret);
# BODY: raw request body, T: t from Stepeee-Signature, SECRET: whsec_...
printf '%s.%s' "$T" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $NF}'
# The signature is valid if the output equals v1

เงื่อนไขความสำเร็จและการลองใหม่

หากส่งกลับ 2xx ภายใน 5 วินาที จะถือว่าส่งถึงแล้ว ระบบไม่อ่านเนื้อหาของการตอบกลับและไม่ตามการเปลี่ยนเส้นทาง การตอบกลับที่ไม่ใช่ 2xx การหมดเวลา และการเชื่อมต่อล้มเหลวจะถูกลองใหม่ โดยส่งสูงสุด 8 ครั้งรวมครั้งแรก ช่วงห่างก่อนส่งครั้งถัดไปคือ 1 นาที → 5 นาที → 30 นาที → 2 ชั่วโมง → 4 ชั่วโมง → 6 ชั่วโมง → 10 ชั่วโมง และหากล้มเหลวทั้ง 8 ครั้ง ระบบจะไม่ส่งเหตุการณ์นั้นอีก หาก ณ เวลาที่ส่ง เจ้าของอยู่ต่ำกว่าแพลน Pro (สำหรับสมาชิกทีม คือเจ้าของทีมไม่ได้อยู่ในแพลน Team) ระบบจะไม่ส่งเหตุการณ์นั้น และจะไม่ส่งเช่นกันหาก ณ เวลาที่ส่ง เจ้าของเข้าถึงโปรเจกต์นั้นไม่ได้อีกต่อไป (ออกจากทีม ถูกถอนสิทธิ์ หรือโปรเจกต์ถูกลบ)

เนื่องจากระบบส่งเหตุการณ์เดิมซ้ำจนกว่าจะได้รับ 2xx เหตุการณ์เดียวกันจึงอาจมาถึงตั้งแต่สองครั้งขึ้นไป ให้ตัดรายการซ้ำด้วย Stepeee-Event-Id (id ในเนื้อหา) ลำดับการมาถึงไม่รับประกัน ให้ทำงานหนักหลังจากส่งกลับ 2xx แล้ว

เงื่อนไขของปลายทาง

ปลายทางต้องเป็น URL แบบ https เท่านั้น และจำกัดพอร์ตที่ 443 ลงทะเบียน URL ที่มีชื่อผู้ใช้หรือรหัสผ่านไม่ได้เช่นกัน ลงทะเบียน URL ที่แปลงเป็นที่อยู่ภายในหรือที่อยู่ที่สงวนไว้ (IP ส่วนตัว loopback link-local localhost เป็นต้น) และ URL ที่แปลงชื่อไม่ได้ ไม่ได้ ระบบจะแปลงชื่อและตรวจสอบอีกครั้งก่อนส่ง หากแปลงเป็นที่อยู่ภายใน การส่งจะล้มเหลวเป็น url_blocked โดยไม่ได้ส่ง