Stepeee Stepeee Nền tảng AI tự động hoàn toàn

Xác thực

1

Kiểm tra API Key của bạn

Bạn có thể kiểm tra tại menu góc trên bên phải > Cài đặt > Tài khoản > API Key.

2

Thêm vào header của request

Thêm API key đã cấp vào header Authorization theo định dạng Bearer.

3

Gửi yêu cầu đến base URL

Gửi yêu cầu đến base URL bên dưới, theo sau là đường dẫn endpoint.

Mỗi tài khoản có một API key. Khi bạn đổi key, key cũ sẽ ngừng hoạt động ngay lập tức. Hãy giữ kín key của bạn.

Base URL

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

Ví dụ yêu cầu

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;

Định dạng phản hồi & lỗi

Tất cả các phản hồi đều được trả về theo định dạng envelope dưới đây.

Khi thành công

{ "data": ... }

Khi có lỗi

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

Mã trạng thái

Trạng tháiÝ nghĩa
401API key bị thiếu, không hợp lệ hoặc đã bị thu hồi
403Bạn không có quyền cho yêu cầu này (ví dụ: gọi endpoint yêu cầu gói Pro trở lên bằng API key của tài khoản dưới gói Pro, hoặc nhân viên team yêu cầu mức sử dụng token của team)
404Tài nguyên không tồn tại (bao gồm cả trường hợp bạn không có quyền truy cập)
405Không thể dùng HTTP method này cho đường dẫn này
409Không thể thực hiện thao tác này ở trạng thái hiện tại (ví dụ: xóa nội dung đang có tự động hóa chạy, hoặc một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý). Hãy dùng error.code để phân biệt lý do
422Các tham số không hợp lệ hoặc yêu cầu không thể được chấp nhận. Với validation_error, error.details chứa lý do cho từng tham số
429Đã vượt quá giới hạn tốc độ (rate limit)
500Đã xảy ra lỗi ngoài dự kiến
503Không thể bắt đầu thao tác (ví dụ: khi việc bắt đầu lần chạy tự động hóa thất bại). Vui lòng thử lại sau

Quy ước

Những gì bạn có thể truy cập và thay đổi

Bạn có thể xem và thay đổi những nội dung mà chủ sở hữu API key nhìn thấy trong ứng dụng. Ngoài các dự án của chính mình, với gói Team, chủ sở hữu và quản trị viên của team có thể xem và thay đổi tất cả dự án của team, còn nhân viên có thể xem và thay đổi các dự án được cấp quyền. Tài nguyên nằm ngoài phạm vi này sẽ trả về 404, giống như tài nguyên không tồn tại.

Dữ liệu đã xóa

Các dự án, concept, tiêu đề, nội dung và tài liệu đã xóa sẽ không được trả về, kể cả trong khoảng thời gian trước khi chúng bị xóa vĩnh viễn. Khi bạn xóa một tiêu đề hoặc concept, nội dung bên dưới nó cũng không được trả về.

Phân trang

Danh sách dùng page (bắt đầu từ 1) và per_page (1–100, mặc định 20) để chọn phạm vi trả về. meta chứa tổng số (total), trang hiện tại (current_page), số mục mỗi trang (per_page) và trang cuối (last_page).

Ngày giờ

Tất cả ngày giờ trong phản hồi đều ở định dạng UTC ISO 8601 (ví dụ: 2026-10-21T09:30:00Z). Các tham số from / to chấp nhận ngày (2026-10-21), ngày giờ (2026-10-21T09:30:00) hoặc ngày giờ kèm độ lệch múi giờ (2026-10-21T18:30:00+09:00); giá trị không có độ lệch được coi là UTC. from bao gồm thời điểm đó, và khi bạn chỉ truyền ngày cho to, cả ngày đó đến 23:59:59 đều được bao gồm.

ID

Tài nguyên được xác định bằng ID công khai gồm chữ và số như project_unique và variation_unique. ID không thay đổi.

URL của tệp

URL của hình ảnh, video và âm thanh được trả về dưới dạng {url, expires_at}. Tệp riêng tư dùng URL có chữ ký, sẽ ngừng hoạt động sau expires_at (1 giờ sau khi được cấp). Để tiếp tục sử dụng tệp, hãy tải xuống và lưu trữ trước khi hết hạn, hoặc gọi lại API để lấy URL mới. Các tệp được đặt ở chế độ công khai dùng URL không hết hạn, và expires_at là null.

Các loại giá trị

Các giá trị như status và platform được trả về dưới dạng chuỗi viết thường được liệt kê trên trang này. Giá trị mới có thể được thêm khi có tính năng mới, vì vậy hãy đảm bảo mã của bạn vẫn hoạt động khi nhận được một giá trị mà nó không biết.

Số tiền

Số tiền là số nguyên theo đơn vị nhỏ nhất của loại tiền tệ (cent đối với USD, yên đối với JPY). Loại tiền tệ nằm trong currency dưới dạng mã ISO 4217 viết thường (usd, jpy, v.v.).

Yêu cầu ghi (gói Pro)

Với các method khác GET, bạn có thể thực hiện các thao tác như thêm tiêu đề, xóa nội dung, bắt đầu tự động hóa, duyệt bài đăng và đăng ký webhook. Mỗi thao tác chạy cùng quy trình với thao tác tương tự trong ứng dụng, và áp dụng cùng các quy tắc. Yêu cầu ghi chỉ khả dụng khi chủ sở hữu API key dùng gói Pro trở lên; dưới gói Pro sẽ trả về 403 plan_required. Thành viên team nhận 403 team_plan_lost khi chủ sở hữu team không còn dùng gói Team. Tuy nhiên, việc dừng tự động hóa, xem danh sách và xóa webhook, và xem danh sách bài đăng đang chờ duyệt khả dụng ở mọi gói (để bạn có thể dừng các tự động hóa và thông báo đang chạy ngay cả sau khi đổi gói). Thao tác tạo mới trả về 201; mọi thao tác khác trả về 200.

Idempotency-Key

Để bạn có thể thử lại một thao tác một cách an toàn khi kết nối bị ngắt và bạn không nhận được phản hồi, một số endpoint ghi chấp nhận header Idempotency-Key (các endpoint chấp nhận header này sẽ liệt kê nó trong bảng tham số; header này là bắt buộc khi bắt đầu tự động hóa). Hãy dùng một chuỗi duy nhất do bạn tạo cho mỗi thao tác (ví dụ UUID; 1–255 ký tự ASCII có thể in được). Nếu bạn gửi lại cùng nội dung (method, path và body) với cùng key, thao tác sẽ không được thực hiện lại; phản hồi đầu tiên được trả về nguyên trạng, kèm header Idempotent-Replayed: true. Key có hiệu lực trong 24 giờ cho mỗi chủ sở hữu API key. Gửi nội dung khác với cùng key sẽ trả về 422 idempotency_key_reused, và nếu yêu cầu đầu tiên vẫn đang được xử lý, 409 idempotency_request_in_progress sẽ được trả về. Phản hồi 5xx không được lưu, nên bạn có thể thử lại với cùng key. Ở các endpoint bắt buộc có header này, thiếu header sẽ trả về 422 idempotency_key_required, và định dạng không hợp lệ sẽ trả về 422 idempotency_key_invalid.

Giới hạn tốc độ

Bạn có thể gửi tối đa 120 yêu cầu mỗi phút cho mỗi API key (các yêu cầu ghi còn có giới hạn tốc độ ghi được mô tả bên dưới). Bạn có thể xem X-RateLimit-Limit (giới hạn) và X-RateLimit-Remaining (số lượng còn lại) trong header của phản hồi. Khi vượt quá giới hạn, 429 sẽ được trả về, và Retry-After chứa số giây cho đến khi bạn có thể thử lại.

Giới hạn tốc độ ghi

Các yêu cầu ghi (method khác GET) bị giới hạn ở 30 yêu cầu mỗi phút cho mỗi API key, bên cạnh giới hạn 120 yêu cầu mỗi phút. Khi vượt quá, 429 rate_limited sẽ được trả về, và Retry-After chứa số giây cho đến khi bạn có thể thử lại. Với yêu cầu ghi, các header phản hồi X-RateLimit-Limit và X-RateLimit-Remaining hiển thị giá trị của giới hạn nào trong hai giới hạn còn ít yêu cầu hơn.

Mã lỗi

Khi có lỗi, error.code chứa loại lỗi và error.message chứa mô tả bằng tiếng Anh. Các mã mà bất kỳ endpoint nào cũng có thể trả về được liệt kê bên dưới. Các mã riêng của từng endpoint (như title_limit_reached) được liệt kê trong bảng lỗi của endpoint đó. Hãy dùng error.code trong mã của bạn để phân biệt các lỗi.

MãÝ nghĩa
unauthorizedAPI key bị thiếu, không hợp lệ hoặc đã bị thu hồi (401)
forbiddenBạn không có quyền (403)
plan_requiredThao tác này yêu cầu gói Pro trở lên (403)
team_plan_lostChủ sở hữu team không còn dùng gói Team, nên thành viên team không thể ghi (403)
not_foundTài nguyên không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (404)
method_not_allowedKhông thể dùng HTTP method này cho đường dẫn này (405)
conflictKhông thể thực hiện thao tác này ở trạng thái hiện tại (409)
idempotency_request_in_progressMột yêu cầu có cùng Idempotency-Key vẫn đang được xử lý (409)
validation_errorCác tham số không hợp lệ (422)
idempotency_key_requiredThiếu header Idempotency-Key ở endpoint bắt buộc có header này (422)
idempotency_key_invalidIdempotency-Key không phải 1–255 ký tự ASCII có thể in được (422)
idempotency_key_reusedCùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác (422)
rate_limitedĐã vượt quá giới hạn tốc độ (429)
internal_errorĐã xảy ra lỗi ngoài dự kiến (500)

Ví dụ 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."]
    }
  }
}

Tài khoản

Thông tin về tài khoản của chủ sở hữu API key. Bạn có thể lấy gói, số dư token, mức sử dụng, dung lượng lưu trữ, các khoản thanh toán và trạng thái chương trình giới thiệu.

GET › /me

Thông tin tài khoản

Lấy hồ sơ, gói, giới hạn của gói và team của chủ sở hữu API key.

Các trường phản hồi
TrườngKiểuMô tả
user_unique string ID người dùng
nickname string | null Biệt danh
email string Địa chỉ email dùng để đăng nhập
plan string Gói. free / vault / plus / pro / team
limits object Các giới hạn của gói hiện tại. null nghĩa là không giới hạn
limits.projects integer | null Số dự án bạn có thể tạo
limits.moviemode_variations_per_title integer | null Số lượng nội dung cho mỗi tiêu đề video
limits.blogmode_variations_per_title integer | null Số lượng nội dung cho mỗi tiêu đề blog
limits.carouselmode_variations_per_title integer | null Số lượng nội dung cho mỗi tiêu đề carousel
limits.postmode_variations_per_concept integer | null Số lượng nội dung cho mỗi concept bài đăng
limits.team boolean Có dùng được các tính năng team hay không
limits.script_duration_max integer Độ dài tối đa của kịch bản video (giây)
limits.reading_time_max integer Thời gian đọc tối đa của một bài blog (phút)
limits.reading_time_max_fulltext integer Thời gian đọc tối đa của một bài blog khi đọc to toàn bộ văn bản (phút)
limits.slide_count_max integer Số slide carousel tối đa
limits.cta_enabled boolean Có dùng được CTA (như slide cuối kêu gọi hành động) hay không
limits.thread_enabled boolean Có dùng được chuỗi bài và bài đăng kèm hình ảnh cho bài đăng hay không
limits.schedule_title_variation_max integer Số tiêu đề và nội dung bạn có thể chỉ định cùng lúc khi tạo các mục theo lịch
limits.schedule_variation_create_max integer Số nội dung bạn có thể tạo cùng lúc khi tạo các mục theo lịch
language string | null Ngôn ngữ hiển thị của ứng dụng
timezone string Cài đặt múi giờ của bạn (định dạng IANA, ví dụ Asia/Tokyo)
team object | null Team bạn thuộc về. null nếu bạn không dùng gói Team hoặc không thuộc team nào
team.team_unique string ID team
team.role string Vai trò của bạn trong team. owner / admin / staff
created_at string Thời điểm tài khoản được tạo
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Gói đăng ký

Lấy trạng thái gói hiện tại, kỳ thanh toán, lịch hủy (nếu có) và lịch đổi gói (nếu có). Thành viên team nhận gói đăng ký của chủ sở hữu team.

Các trường phản hồi
TrườngKiểuMô tả
plan string Gói. free / vault / plus / pro / team
status string Trạng thái gói đăng ký. active / past_due (quá hạn thanh toán) / trialing (đang dùng thử) / none (không có gói trả phí)
managed_by_team boolean Bạn có dùng gói thông qua gói đăng ký của chủ sở hữu team hay không. Khi là true, các trường kỳ thanh toán và hủy là giá trị của chủ sở hữu
current_period_start string | null Thời điểm kỳ thanh toán hiện tại bắt đầu
current_period_end string | null Thời điểm kỳ thanh toán hiện tại kết thúc (ngày thanh toán tiếp theo)
cancel_at_period_end boolean Gói đăng ký có được lên lịch hủy vào cuối kỳ thanh toán hiện tại hay không
cancel_at string | null Thời điểm gói đăng ký sẽ bị hủy
canceled_at string | null Thời điểm yêu cầu hủy được gửi
scheduled_change object | null Việc đổi gói đã lên lịch (null nếu không có)
scheduled_change.plan string Gói sau khi thay đổi
scheduled_change.effective_at string | null Thời điểm thay đổi có hiệu lực
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Số dư Token

Lấy số dư token khả dụng của bạn. Với team, trả về số dư được team chia sẻ và hạn mức được giao cho bạn.

Các trường phản hồi
TrườngKiểuMô tả
balance integer Số dư
reserved integer Số lượng được giữ cho các tác vụ đang chạy
available integer Số lượng bạn có thể dùng ngay (số dư trừ đi phần đang giữ)
wallet string personal (số dư của riêng bạn) / team (số dư được team chia sẻ)
team_quota object | null Hạn mức của bạn do chủ sở hữu team đặt. null khi bạn dùng số dư của riêng mình và với chủ sở hữu team
team_quota.unlimited boolean Hạn mức có không giới hạn hay không
team_quota.view_only boolean Bạn có chỉ xem được và không thể dùng token hay không
team_quota.budget integer | null Giới hạn cho mỗi kỳ (null nghĩa là không giới hạn, 0 nghĩa là chỉ xem)
team_quota.used integer Số lượng đã dùng trong kỳ hiện tại
team_quota.available integer | null Số lượng còn lại trong kỳ hiện tại (null nếu không giới hạn)
team_quota.period string | null Kỳ giới hạn. day / week / month (null khi không có giới hạn)
team_quota.next_reset_at string | null Thời điểm mức sử dụng được đặt lại
auto_purchase.enabled boolean Việc tự động mua khi số dư sắp hết có đang bật hay không
auto_purchase.plan string | null Gói token được mua tự động (ví dụ token_100). null khi tắt
auto_purchase.threshold integer Việc mua được thực hiện tự động khi số dư giảm xuống dưới giá trị này
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Mức sử dụng Token

Lấy mức sử dụng và lượng cộng thêm của token theo ngày hoặc theo tháng. Mức sử dụng được tổng hợp theo từng ngày, và ngày hôm trước được phản ánh vào khoảng 2:45 UTC (mức sử dụng của hôm nay không được bao gồm). Lượng cộng thêm từ việc mua và thưởng được phản ánh ngay lập tức.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
from Query string (YYYY-MM-DD) Tùy chọn — Ngày bắt đầu (UTC). 29 ngày trước to khi bỏ qua
to Query string (YYYY-MM-DD) Tùy chọn — Ngày kết thúc (UTC, bao gồm ngày đó). Hôm nay khi bỏ qua. Phạm vi có thể dài tối đa 366 ngày
group_by Query string Tùy chọn day Cách nhóm. day / month
Các trường phản hồi
TrườngKiểuMô tả
data[].period string Kỳ. YYYY-MM-DD theo ngày, YYYY-MM theo tháng. Các kỳ không có mức sử dụng hay lượng cộng thêm sẽ không được bao gồm
data[].consumed integer Mức sử dụng
data[].added integer Lượng cộng thêm (đã trừ các khoản giảm như phần thưởng giới thiệu bị thu hồi)
data[].consumed_by_type object Mức sử dụng theo loại (text / image / video / audio, v.v.)
data[].added_by_type object Lượng cộng thêm theo loại. purchase / bonus / refund / referral_revoke (phần thưởng giới thiệu bị thu hồi, giá trị âm)
meta.from string Ngày bắt đầu của khoảng thời gian được tổng hợp
meta.to string Ngày kết thúc của khoảng thời gian được tổng hợp
meta.group_by string Cách nhóm kết quả
meta.total_consumed integer Tổng mức sử dụng trong khoảng thời gian
meta.total_added integer Tổng lượng cộng thêm trong khoảng thời gian
Lỗi
Trạng tháiMãKhi nào
403 forbidden Một nhân viên dùng token của team (chỉ chủ sở hữu và quản trị viên của team mới xem được mức sử dụng token của team)
422 validation_error Phạm vi dài hơn 366 ngày, to sớm hơn from, có giá trị không thể đọc thành ngày, hoặc group_by không phải day / month
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Dung lượng lưu trữ

Lấy mức sử dụng dung lượng lưu trữ, dung lượng tối đa và phân tích theo loại tệp. Với team, trả về dung lượng lưu trữ được team chia sẻ.

Các trường phản hồi
TrườngKiểuMô tả
used_bytes integer Mức sử dụng (byte). Bằng tổng của by_type
capacity_bytes integer | null Dung lượng (byte). null nghĩa là không giới hạn, và 0 nghĩa là không có dung lượng lưu trữ (gói Free)
by_type[].file_type string | null Loại tệp. material / image / video / bgm / voice (âm thanh) / movie (video hoàn chỉnh)
by_type[].bytes integer Mức sử dụng của loại đó (byte)
by_type[].files integer Số lượng tệp của loại đó
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Lịch sử thanh toán

Lấy các khoản thanh toán như phí gói và mua token, mới nhất trước. Bạn có thể dùng để nhập các khoản thanh toán vào hệ thống kế toán của mình.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
status Query string Tùy chọn — Lọc theo trạng thái thanh toán (phân tách bằng dấu phẩy). succeeded / refunded / partially_refunded. Tất cả khi bỏ qua
type Query string Tùy chọn — Lọc theo loại thanh toán (phân tách bằng dấu phẩy). Các giá trị giống data[].type
from Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc sau ngày giờ này
to Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc trước ngày giờ này
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].payment_unique string ID khoản thanh toán
data[].type string Loại. token_first_time (lần mua token đầu tiên) / token_regular (mua token) / subscription_vault, subscription_plus, subscription_pro, subscription_team (phí gói)
data[].description string Tên khoản thanh toán (bằng tiếng Anh)
data[].status string Trạng thái. succeeded (đã thanh toán) / refunded (đã hoàn tiền toàn bộ) / partially_refunded
data[].currency string Loại tiền tệ (ISO 4217 viết thường)
data[].amount_subtotal integer Số tiền trước thuế (đơn vị nhỏ nhất)
data[].tax_amount integer Thuế (đơn vị nhỏ nhất)
data[].amount_total integer Số tiền đã gồm thuế (đơn vị nhỏ nhất)
data[].line_items[] object Các dòng chi tiết. type (base_plan: phí gói / storage_addon: dung lượng lưu trữ bổ sung / extra_member: thành viên bổ sung), quantity, amount và description (null nếu không có)
data[].receipt_url string | null URL biên lai (Stripe). Có thể không mở được nữa sau một thời gian kể từ khi được phát hành
data[].invoice_pdf_url string | null URL PDF của hóa đơn (Stripe). Có thể không mở được nữa sau một thời gian kể từ khi được phát hành
data[].created_at string Thời điểm thanh toán
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Chương trình giới thiệu

Lấy mã giới thiệu của bạn cùng trạng thái giới thiệu và phần thưởng.

Các trường phản hồi
TrườngKiểuMô tả
code string | null Mã giới thiệu (null nếu bạn chưa có)
referral_url string | null URL giới thiệu (null nếu bạn không có mã giới thiệu)
is_active boolean Mã giới thiệu có đang hoạt động hay không
reward_type string | null Cách bạn nhận phần thưởng. cash / token. null nếu bạn không có mã giới thiệu
clicks integer Số lần URL giới thiệu được mở
signups integer Số người đã đăng ký thông qua giới thiệu của bạn
conversions integer Số người đã đăng ký gói trả phí thông qua giới thiệu của bạn
earned object Phần thưởng đã được xác nhận đến nay {amount (đơn vị nhỏ nhất), currency}
earned_tokens integer Token đã nhận đến nay
pending object Phần thưởng đang chờ xác nhận {amount, currency}
available object Phần thưởng bạn có thể yêu cầu nhận {amount, currency}
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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" }
  }
}

Dự án

Lấy các dự án và cấu trúc concept và tiêu đề bên trong chúng.

GET › /projects

Danh sách dự án

Lấy các dự án bạn có thể truy cập, mới nhất trước.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].project_unique string ID dự án
data[].project_name string Tên dự án
data[].description string | null Mô tả dự án
data[].access_level string Quyền của bạn. owner (dự án của chính bạn) / admin (toàn quyền với tư cách chủ sở hữu hoặc quản trị viên của team) / edit (quyền chỉnh sửa được cấp trong team)
data[].team object | null Team của dự án team, hoặc null với dự án chỉ của riêng bạn
data[].team.team_unique string ID team
data[].is_readonly boolean Dự án có chỉ xem được hay không vì vượt giới hạn sau khi hạ cấp gói (trạng thái này được gỡ khi bạn nâng cấp)
data[].readonly_since string | null Thời điểm dự án chuyển sang chỉ xem
data[].created_at string Thời điểm tạo
data[].updated_at string Thời điểm cập nhật
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Chi tiết dự án

Lấy chi tiết một dự án, kèm số concept và tiêu đề theo từng chế độ và số nội dung theo tiến độ.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
Các trường phản hồi
TrườngKiểuMô tả
project_unique string ID dự án
project_name string Tên dự án
description string | null Mô tả dự án
access_level string Quyền của bạn. owner (dự án của chính bạn) / admin (toàn quyền với tư cách chủ sở hữu hoặc quản trị viên của team) / edit (quyền chỉnh sửa được cấp trong team)
team object | null Team của dự án team, hoặc null với dự án chỉ của riêng bạn
team.team_unique string ID team
is_readonly boolean Dự án có chỉ xem được hay không vì vượt giới hạn sau khi hạ cấp gói (trạng thái này được gỡ khi bạn nâng cấp)
readonly_since string | null Thời điểm dự án chuyển sang chỉ xem
created_at string Thời điểm tạo
updated_at string Thời điểm cập nhật
scope string Khu vực mục tiêu. global (không chỉ định) / region (một quốc gia cụ thể)
scope_region string | null Quốc gia mục tiêu (ISO 3166-1 alpha-2, ví dụ JP). null khi là global
counts.{mode}.concepts integer Số concept theo từng chế độ (moviemode / blogmode / carouselmode / postmode)
counts.{mode}.titles integer | null Số lượng tiêu đề (null với postmode, vì không có tiêu đề)
counts.{mode}.contents object Số lượng nội dung {total, not_started, in_progress, complete}
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Danh sách concept

Lấy các concept trong một dự án ở tất cả các chế độ, mới nhất trước.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
mode Query string Tùy chọn — Lọc theo chế độ. Bạn có thể truyền nhiều giá trị trong moviemode (video), blogmode (blog), carouselmode (carousel) và postmode (bài đăng), phân tách bằng dấu phẩy. Tất cả chế độ khi bỏ qua
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].concept_unique string ID concept
data[].mode string moviemode (video) / blogmode (blog) / carouselmode (carousel) / postmode (bài đăng)
data[].concept_name string Tên concept
data[].title_count integer | null Số lượng tiêu đề (null với postmode)
data[].content_count integer Số lượng nội dung
data[].created_at string Thời điểm tạo
data[].updated_at string Thời điểm cập nhật
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Chi tiết concept

Lấy chi tiết một concept. Concept video, blog và carousel bao gồm danh sách tiêu đề, còn concept bài đăng (postmode) bao gồm persona của người đăng và các quy tắc đăng bài.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
concept_unique Path string Bắt buộc — ID concept
Các trường phản hồi
TrườngKiểuMô tả
concept_unique / mode / concept_name / title_count / content_count / created_at / updated_at — Giống như danh sách concept
description string | null Mô tả concept
scope string Khu vực mục tiêu. global (không chỉ định) / region (một quốc gia cụ thể)
scope_region string | null Quốc gia mục tiêu (ISO 3166-1 alpha-2, ví dụ JP). null khi là global
default_template_unique string | null Mẫu thiết lập dùng cho nội dung mới (template_unique trong danh sách mẫu). null khi chưa đặt hoặc với postmode
titles array | null Danh sách tiêu đề (mới nhất trước). null với postmode
titles[].title_unique string ID tiêu đề
titles[].title_name string Tiêu đề
titles[].article_type string | null Loại. standard / news với moviemode, standard / news / promotion (giới thiệu sản phẩm) với blogmode. null với carouselmode
titles[].content_count integer Số lượng nội dung của tiêu đề đó
persona object | null Persona của người đăng (chỉ postmode, null nếu chưa tạo)
persona.persona_unique string ID persona
persona.gender string Giới tính. male / female / undisclosed
persona.generation string Nhóm tuổi. 10s / 20s / 30s / 40s / 50s / 60s_plus
persona.region string | null Mã quốc gia của vùng văn hóa
persona.keywords object Từ khóa persona. occupation, industry, residence, workstyle, household và personality là chuỗi, còn interest và expertise là mảng chuỗi. Chỉ những mục đã đặt mới được bao gồm
persona.description string Văn bản persona
persona.casual_description string | null Văn bản persona dùng cho các bài đăng hằng ngày (null nếu không có)
persona.taboos array Những điều cần tránh trong bài đăng
persona.timezone_mode string Cách xác định múi giờ. auto (theo vùng, hoặc theo ngôn ngữ đăng bài khi không có vùng) / specify (múi giờ được chỉ định)
persona.timezone string | null Múi giờ dùng cho lịch đăng bài (định dạng IANA). null khi không thể xác định vì các quy tắc đăng bài chưa được tạo
rule object | null Các quy tắc đăng bài (chỉ postmode, null nếu chưa tạo)
rule.rule_unique string ID quy tắc đăng bài
rule.language string Ngôn ngữ đăng bài
rule.formality string Giọng văn. very_casual / casual / normal / polite / honorific
rule.emoji string Emoji. never / sometimes / often / always
rule.line_break string Mức độ xuống dòng. none / moderate / frequent
rule.post_type_share object Tỷ lệ của từng loại bài đăng (%). assertion (quan điểm) / knowhow / experience / casual (hằng ngày)
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
404 not_found Concept không tồn tại (Concept not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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"
    }
  }
}

Nội dung

Lấy nội dung video, blog, carousel và bài đăng ở tất cả các chế độ. Trong phần chi tiết, package chứa những gì được đăng lên từng mạng xã hội hoặc trang (văn bản nội dung, hình ảnh, video và chú thích), nên bạn có thể đưa nội dung đã tạo trong Stepeee vào hệ thống của riêng mình.

GET › /projects/{project_unique}/contents

Danh sách nội dung

Lấy nội dung trong một dự án (video, blog, carousel và bài đăng) ở tất cả các chế độ. Bạn có thể lọc theo tiến độ, ngôn ngữ đăng tải, đã đăng hay chưa, v.v.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
mode Query string Tùy chọn — Lọc theo chế độ. Bạn có thể truyền nhiều giá trị trong moviemode (video), blogmode (blog), carouselmode (carousel) và postmode (bài đăng), phân tách bằng dấu phẩy. Tất cả chế độ khi bỏ qua
status Query string Tùy chọn — Lọc theo tiến độ. not_started / in_progress / complete
concept_unique Query string Tùy chọn — Chỉ trả về nội dung của concept này
title_unique Query string Tùy chọn — Chỉ trả về nội dung của tiêu đề này (postmode không được bao gồm vì không có tiêu đề)
language Query string Tùy chọn — Lọc theo ngôn ngữ đăng tải (ví dụ: ja hoặc en)
published Query string Tùy chọn — true chỉ trả về nội dung đã đăng, và false chỉ trả về nội dung chưa đăng
from Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc sau ngày giờ này
to Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc trước ngày giờ này
sort Query string Tùy chọn -created_at Thứ tự. created_at / -created_at / updated_at / -updated_at (- nghĩa là mới nhất trước)
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].mode string moviemode (video) / blogmode (blog) / carouselmode (carousel) / postmode (bài đăng)
data[].variation_unique string ID nội dung
data[].variation_no integer Số thứ tự trong tiêu đề (concept với postmode)
data[].title string Tiêu đề (tên concept với postmode)
data[].concept object Concept mà nội dung thuộc về {concept_unique, concept_name}
data[].title_unique string | null ID của tiêu đề mà nội dung thuộc về (null với postmode)
data[].language string | null Ngôn ngữ đăng tải (ngôn ngữ mà người xem và người đọc thấy). null nếu chưa đặt
data[].status string Tiến độ. not_started / in_progress / complete (đã đánh dấu hoàn tất)
data[].progress.step_process integer Bước đã hoàn tất (0–3)
data[].progress.is_complete boolean Đã được đánh dấu là hoàn tất hay chưa
data[].is_readonly boolean Chỉ xem được do hạ cấp gói hay không
data[].confirmed_at string | null Thời điểm nội dung được đánh dấu là đã duyệt (null với postmode và khi chưa được duyệt)
data[].published_platforms array Các đích đến đã đăng (success / partial_success)
data[].created_at string Thời điểm tạo
data[].updated_at string Thời điểm cập nhật
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Chi tiết nội dung

Lấy chi tiết một nội dung. package chứa những gì thực sự được đăng lên từng đích đến (giống như khi đăng từ Stepeee). Với nội dung bài đăng (postmode), hãy lấy danh sách bài đăng cùng lịch đăng.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
variation_unique Path string Bắt buộc — ID nội dung
Các trường phản hồi
TrườngKiểuMô tả
mode / variation_unique / … / updated_at — Giống như danh sách nội dung
publish[] object Kết quả đăng bài theo từng đích đến
publish[].platform string Đích đến. youtube / tiktok / instagram / x / wordpress / webhook
publish[].status string Kết quả đăng bài. success (đã đăng) / failed / scheduled (đã lên lịch trên đích đến) / processing / partial_success (đăng thành công nhưng một bước liên quan như đặt ảnh thu nhỏ thất bại) / reviewing (đăng thành công và đang chờ đích đến xét duyệt, nên URL chưa có)
publish[].post_url string | null URL của bài đăng (null nếu chưa có)
publish[].posted_at string | null Thời điểm đăng (null nếu chưa đăng)
content object Dữ liệu đã tạo theo từng chế độ. blogmode: body_html (nội dung bài viết) / carouselmode: scenario (cấu trúc slide; resolved_header, resolved_footer và resolved_texts là văn bản ở ngôn ngữ đăng tải) / moviemode: movie_unique, download_url, thumbnail_url (video được chọn ở Step3; các URL có hiệu lực trong 1 giờ sau khi được cấp) / postmode: posts (post_text, post_type)
package object | null Nội dung được đăng. null với postmode
package.video (moviemode) object | null Video hoàn chỉnh {file: {url, expires_at}, thumbnail: {url, expires_at} | null, duration_ms, width, height, size_bytes}. null nếu chưa có
package.youtube.title (moviemode) string | null Tiêu đề YouTube
package.youtube.description (moviemode) string | null Mô tả YouTube (bao gồm văn bản cố định)
package.youtube.thumbnail (moviemode) object | null Ảnh thu nhỏ YouTube {url, expires_at, width, height}. null với video dọc (Shorts), loại không đặt ảnh thu nhỏ
package.tiktok.caption (moviemode) string | null Chú thích TikTok
package.instagram.caption (moviemode / carouselmode) string | null Chú thích Instagram (bao gồm văn bản cố định)
package.instagram.cover (moviemode) object | null Ảnh bìa Instagram {url, expires_at, width, height}
package.x.posts (moviemode / blogmode / carouselmode) array Các bài đăng trên X. Từ hai bài trở lên được đăng lần lượt dưới dạng chuỗi bài
package.title (blogmode) string | null Tiêu đề bài viết
package.meta_description (blogmode) string | null Meta description
package.body_html (blogmode) string | null HTML của nội dung bài viết. Hình ảnh nằm trong src của các thẻ img, và mã tiếp thị liên kết cùng đánh giá cho phần giới thiệu sản phẩm đã được điền sẵn. Bạn có thể đăng nguyên trạng lên trang của mình
package.images (blogmode) array Hình ảnh trong nội dung (theo thứ tự xuất hiện) {url, expires_at, width, height}
package.cover_image (blogmode) object | null Ảnh bìa {url, expires_at, width, height}
package.audio (blogmode) object | null Âm thanh của bài viết {url, expires_at, duration_ms}
package.slides[] (carouselmode) object Hình ảnh slide (theo thứ tự slide) {no, image: {url, expires_at, width, height}}
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
404 not_found Nội dung không tồn tại (Content not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Lịch đăng bài

Lấy các bài đăng đã lên kế hoạch, đã tạo và đã đăng của nội dung bài đăng (postmode) theo thứ tự giờ đã lên lịch. Cũng bao gồm trạng thái tự động hóa.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
variation_unique Path string Bắt buộc — ID nội dung
from Query string Tùy chọn — Đầu phạm vi (giờ đã lên lịch). 7 ngày trước khi bỏ qua (37 ngày trước to khi chỉ có to)
to Query string Tùy chọn — Cuối phạm vi (giờ đã lên lịch). 30 ngày kể từ bây giờ khi bỏ qua (37 ngày sau from khi chỉ có from). Phạm vi có thể dài tối đa 92 ngày
Các trường phản hồi
TrườngKiểuMô tả
automation.enabled boolean Tự động hóa có đang bật hay không
automation.is_executing boolean Việc tự động tạo bài đăng có đang chạy hay không (là true ngay cả sau khi tắt tự động hóa nếu còn các bài đang được tạo)
automation.week_limit integer | null Số tuần kế hoạch tối đa được tạo tự động (null nghĩa là không giới hạn)
automation.week_count integer Số tuần kế hoạch đã được tạo đến nay
automation.next_refill_at string | null Thời điểm các kế hoạch tiếp theo sẽ được tạo (null khi tự động hóa tắt)
automation.timezone string | null Múi giờ dùng cho lịch đăng bài
items[].schedule_unique string ID lịch đăng
items[].post_unique string | null ID bài đăng (null nếu văn bản chưa được tạo)
items[].scheduled_at string Thời điểm bài đăng được lên lịch
items[].scheduled_at_local string Giờ đã lên lịch theo giờ địa phương của timezone (YYYY-MM-DDTHH:MM:SS)
items[].timezone string Múi giờ tại thời điểm kế hoạch được tạo
items[].status string Trạng thái. pending (chờ tạo văn bản) / generating / generated (đã tạo, chờ đăng) / awaiting_image (chờ hình ảnh) / posting / posted / failed / discarded (đã hủy)
items[].confirm_state string Duyệt trước khi đăng. none (không duyệt) / awaiting (không được đăng nếu chưa duyệt) / notice (đăng sau khi chỉ gửi thông báo) / confirmed (đã duyệt)
items[].created_via string Cách được tạo. auto (tự động hóa) / manual
items[].post_type string Loại bài đăng. assertion (quan điểm) / knowhow / experience / casual (hằng ngày)
items[].text string | null Văn bản bài đăng (null nếu chưa được tạo)
items[].thread[] object Các bài tiếp theo trong chuỗi bài (theo thứ tự) {text, post_url, posted_at, image}
items[].image object | null Hình ảnh đính kèm {url, expires_at} (null nếu không có)
items[].post_url string | null URL của bài đăng (null nếu chưa có)
items[].posted_at string | null Thời điểm đăng (null nếu chưa đăng)
items[].fail_reason string | null Lý do thất bại. token_expired (X bị ngắt kết nối) / api_error (lỗi X) / not_found (đích của bài đăng không tồn tại) / insufficient_token (không đủ token) / no_x_account (chưa đặt tài khoản X) / node_ws_timeout (quá thời gian khi tạo văn bản) / unconfirmed (chưa được duyệt)
meta.from / meta.to string Phạm vi đã được trả về
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
404 not_found Nội dung không phải nội dung bài đăng (postmode), hoặc nội dung không tồn tại (Schedule not found.)
422 validation_error Phạm vi dài hơn 92 ngày, to sớm hơn from, hoặc có giá trị không thể đọc thành ngày giờ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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" }
}

Kết quả đăng bài & đích đến

Lấy kết quả đăng bài lên mạng xã hội, WordPress và webhook, cùng trạng thái của các đích đến đã kết nối với một dự án. Bạn có thể dùng để phát hiện các tài khoản bị ngắt kết nối.

GET › /projects/{project_unique}/publications

Kết quả đăng bài

Lấy kết quả đăng bài của một dự án ở tất cả các chế độ và đích đến, mới nhất trước. Với bài đăng (postmode), các bài đã đăng và thất bại (bài đầu tiên của mỗi chuỗi) được bao gồm.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
mode Query string Tùy chọn — Lọc theo chế độ. Bạn có thể truyền nhiều giá trị trong moviemode (video), blogmode (blog), carouselmode (carousel) và postmode (bài đăng), phân tách bằng dấu phẩy. Tất cả chế độ khi bỏ qua
platform Query string Tùy chọn — Lọc theo đích đến (phân tách bằng dấu phẩy). youtube / tiktok / instagram / x / wordpress / webhook
status Query string Tùy chọn — Lọc theo kết quả đăng bài (phân tách bằng dấu phẩy). success / failed / scheduled / processing / partial_success / reviewing
from Query string Tùy chọn — Chỉ trả về các kết quả có thời điểm đăng (thời điểm được ghi nhận nếu chưa đăng) vào hoặc sau ngày giờ này
to Query string Tùy chọn — Chỉ trả về các kết quả có thời điểm đăng (thời điểm được ghi nhận nếu chưa đăng) vào hoặc trước ngày giờ này
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].publication_unique string ID kết quả đăng bài
data[].mode string moviemode (video) / blogmode (blog) / carouselmode (carousel) / postmode (bài đăng)
data[].content.variation_unique string ID nội dung
data[].content.title string | null Tiêu đề (tên concept với postmode)
data[].platform string Đích đến. youtube / tiktok / instagram / x / wordpress / webhook
data[].account object | null Tài khoản dùng để đăng {account_unique, name}. name là null với tài khoản đã ngắt kết nối. null với postmode
data[].status string Kết quả đăng bài. success (đã đăng) / failed / scheduled (đã lên lịch trên đích đến) / processing / partial_success (đăng thành công nhưng một bước liên quan như đặt ảnh thu nhỏ thất bại) / reviewing (đăng thành công và đang chờ đích đến xét duyệt, nên URL chưa có)
data[].post_url string | null URL của bài đăng (null nếu chưa có)
data[].error_code string | null Mã lý do thất bại (khác nhau theo đích đến và chế độ)
data[].is_automation boolean Có được tự động hóa đăng hay không
data[].posted_at string | null Thời điểm đăng (null nếu chưa đăng)
data[].created_at string Thời điểm tạo
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Các đích đến đã kết nối

Lấy các đích đến đã kết nối với một dự án (tài khoản mạng xã hội, WordPress và webhook) cùng trạng thái của chúng. Khi status chuyển thành expired hoặc connection_error, bạn cần kết nối lại.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
Các trường phản hồi
TrườngKiểuMô tả
data[].account_unique string ID của đích đến
data[].platform string Đích đến. youtube / tiktok / instagram / x / wordpress / webhook
data[].name string Tên hiển thị. Là tên tài khoản với mạng xã hội, tên trang với WordPress, và tên miền của URL đích với webhook (ở dạng https://example.com/…, không có đường dẫn)
data[].image_url string | null URL của ảnh biểu tượng tài khoản (chỉ mạng xã hội)
data[].status string Trạng thái. active / expired (kết nối đã hết hạn và bạn cần kết nối lại) / connection_error (không thể kết nối tới WordPress)
data[].token_expires_at string | null Thời điểm kết nối hết hạn (chỉ mạng xã hội)
data[].connected_at string | null Thời điểm kết nối
data[].last_used_at string | null Thời điểm dùng để đăng bài gần nhất (chỉ mạng xã hội)
data[].site_url string | null URL trang WordPress (chỉ WordPress)
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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
    }
  ]
}

Tự động hóa

Lấy tiến độ của các tự động hóa video, blog và carousel. Với tự động hóa bài đăng (chế độ post), hãy dùng lịch đăng của nội dung.

GET › /automations

Các lần chạy tự động hóa

Lấy các lần chạy tự động hóa video, blog và carousel (đã lên lịch, đang chạy, đang chờ duyệt và đã kết thúc), mới nhất trước.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
status Query string Tùy chọn — Lọc theo trạng thái (phân tách bằng dấu phẩy). Các giá trị giống data[].status
mode Query string Tùy chọn — Lọc theo chế độ (phân tách bằng dấu phẩy). moviemode / blogmode / carouselmode
project_unique Query string Tùy chọn — Chỉ trả về các lần chạy của dự án này
from Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc sau ngày giờ này
to Query string Tùy chọn — Chỉ trả về các mục được tạo vào hoặc trước ngày giờ này
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].auto_unique string ID lần chạy tự động hóa
data[].mode string moviemode / blogmode / carouselmode
data[].project object Dự án {project_unique, project_name}
data[].content.variation_unique string ID nội dung
data[].content.title string | null Tiêu đề (tên concept với postmode)
data[].run_no integer Đây là lần chạy thứ mấy cho nội dung
data[].status string Trạng thái. pending (chờ chạy; là đã lên lịch khi reserved_at ở tương lai) / executing / waiting_confirmation (chờ duyệt nội dung; tiếp tục sau khi duyệt) / completed / failed / stopped / token_shortage (kết thúc vì hết token)
data[].execution_mode string sequential (lần lượt từng cái) / parallel (tất cả cùng lúc)
data[].phases object Trạng thái của từng giai đoạn {setup, step1, step2, step3}. not_started / running (đang chạy, hoặc giai đoạn nơi nó dừng) / done (bao gồm đã bỏ qua và, với lần chạy kết thúc ở trạng thái completed, các bước nằm ngoài phạm vi của lần chạy này) / error
data[].template.setup_template_name string | null Tên mẫu thiết lập được dùng khi bắt đầu
data[].template.automation_template_name string | null Tên mẫu tự động hóa được dùng khi bắt đầu
data[].reserved_at string | null Giờ chạy đã lên lịch
data[].executed_at string | null Thời điểm lần chạy bắt đầu
data[].completed_at string | null Thời điểm lần chạy kết thúc (với completed / failed / stopped / token_shortage)
data[].created_at string Thời điểm lần chạy được đăng ký
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Chi tiết lần chạy tự động hóa

Lấy chi tiết một lần chạy tự động hóa và tiến độ của từng bước. Bạn có thể dùng để kiểm tra tiến độ trong khi đang chạy.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
auto_unique Path string Bắt buộc — ID lần chạy tự động hóa
Các trường phản hồi
TrườngKiểuMô tả
auto_unique / mode / … / created_at — Giống như danh sách các lần chạy tự động hóa
steps[].key string Tên bước (ví dụ step1_1_text)
steps[].phase string Giai đoạn của bước. setup / step1 / step2 / step3
steps[].status string Trạng thái bước. not_run (chưa chạy, không áp dụng hoặc đang chạy) / success / error / skipped
steps[].started_at string | null Thời điểm bước đang chạy bắt đầu (null khi đã kết thúc)
steps[].finished_at string | null Thời điểm bước kết thúc
steps[].duration_sec number | null Mất bao nhiêu giây (với success / error)
steps[].error_code string | null Lý do thất bại. internal_error / automation_record_not_found / automation_stopped_by_admin / insufficient_token (không đủ token) / token_group_blocked (đã đạt hạn mức của team) / automation_auth_error (lỗi xác thực đích đến) / automation_not_found / automation_conflict / automation_rate_limited (giới hạn tốc độ của đích đến) / automation_server_error (lỗi của đích đến) / automation_network_error (lỗi mạng) / automation_step_failed. null khi không có lý do nào được ghi lại
accounts[] object Các đích đến tại thời điểm bắt đầu {platform, account_unique, name}. name là null với webhook
stop_requested boolean Đã có yêu cầu dừng hay chưa
confirmation.requested_at string | null Thời điểm bắt đầu chờ duyệt
confirmation.confirmed_at string | null Thời điểm nội dung được duyệt (null khi đang chờ duyệt hoặc chưa được duyệt)
Lỗi
Trạng tháiMãKhi nào
404 not_found Tự động hóa không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Automation not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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 }
  }
}

Tài liệu & mẫu

Lấy My Materials (hình ảnh, video và BGM) cùng các mẫu thiết lập và mẫu tự động hóa.

GET › /materials

Danh sách tài liệu

Lấy My Materials (hình ảnh, video và BGM), mới nhất trước. Với team, trả về các tài liệu được team chia sẻ. Hình ảnh chỉ dùng bên trong một dự án và các tệp đang được tạo không được bao gồm.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
kind Query string Tùy chọn — Lọc theo loại tài liệu. image / video / bgm
type Query string Tùy chọn — Lọc theo mục đích sử dụng của tài liệu. Các giá trị giống data[].type. Khi dùng cùng kind, chỉ có thể chỉ định các mục đích sử dụng thuộc loại đó
category_unique Query string Tùy chọn — Chỉ trả về các tài liệu trong danh mục này
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].material_unique string ID tài liệu
data[].kind string Loại. image / video / bgm
data[].type string Mục đích sử dụng. image_element (element) / image_vertical (dọc) / image_horizontal (ngang) / reference_person (ảnh tham chiếu: người) / reference_background (ảnh tham chiếu: nền) / reference_layout (ảnh tham chiếu: bố cục) / reference_cta (ảnh tham chiếu: CTA) / reference_pet (ảnh tham chiếu: thú cưng) / reference_product (ảnh tham chiếu: sản phẩm hoặc dịch vụ) / image_rulebook (rulebook) / image_promotion (quảng bá) / video_vertical (video dọc) / video_horizontal (video ngang) / bgm
data[].category object | null Danh mục {category_unique, name} (null nếu chưa phân loại)
data[].width / data[].height integer | null Chiều rộng và chiều cao (pixel). null với BGM và khi chưa đo
data[].duration_ms integer | null Độ dài (mili giây). null với hình ảnh
data[].size_bytes integer Kích thước tệp (byte). Có thể là 0 khi tài liệu tham chiếu đến một tài liệu dùng chung
data[].file object Chính tệp đó {url, expires_at}
data[].thumbnail object | null Ảnh thu nhỏ {url, expires_at}. null với BGM, element và khi ảnh thu nhỏ đang được tạo
data[].created_at string Thời điểm tạo
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Chi tiết tài liệu

Lấy một tài liệu.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
material_unique Path string Bắt buộc — ID tài liệu
Các trường phản hồi
TrườngKiểuMô tả
material_unique string ID tài liệu
kind string Loại. image / video / bgm
type string Mục đích sử dụng. image_element (element) / image_vertical (dọc) / image_horizontal (ngang) / reference_person (ảnh tham chiếu: người) / reference_background (ảnh tham chiếu: nền) / reference_layout (ảnh tham chiếu: bố cục) / reference_cta (ảnh tham chiếu: CTA) / reference_pet (ảnh tham chiếu: thú cưng) / reference_product (ảnh tham chiếu: sản phẩm hoặc dịch vụ) / image_rulebook (rulebook) / image_promotion (quảng bá) / video_vertical (video dọc) / video_horizontal (video ngang) / bgm
category object | null Danh mục {category_unique, name} (null nếu chưa phân loại)
width / height integer | null Chiều rộng và chiều cao (pixel). null với BGM và khi chưa đo
duration_ms integer | null Độ dài (mili giây). null với hình ảnh
size_bytes integer Kích thước tệp (byte). Có thể là 0 khi tài liệu tham chiếu đến một tài liệu dùng chung
file object Chính tệp đó {url, expires_at}
thumbnail object | null Ảnh thu nhỏ {url, expires_at}. null với BGM, element và khi ảnh thu nhỏ đang được tạo
created_at string Thời điểm tạo
Lỗi
Trạng tháiMãKhi nào
404 not_found Tài liệu không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Material not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Danh mục tài liệu

Lấy các danh mục tài liệu và số lượng tài liệu trong mỗi danh mục.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
kind Query string Tùy chọn — Lọc theo loại tài liệu. image / video / bgm
type Query string Tùy chọn — Lọc theo mục đích sử dụng của tài liệu. Các giá trị giống data[].type. Khi dùng cùng kind, chỉ có thể chỉ định các mục đích sử dụng thuộc loại đó
Các trường phản hồi
TrườngKiểuMô tả
data[].category_unique string ID danh mục
data[].name string Tên danh mục
data[].kind string Loại. image / video / bgm
data[].type string Mục đích sử dụng. image_element (element) / image_vertical (dọc) / image_horizontal (ngang) / reference_person (ảnh tham chiếu: người) / reference_background (ảnh tham chiếu: nền) / reference_layout (ảnh tham chiếu: bố cục) / reference_cta (ảnh tham chiếu: CTA) / reference_pet (ảnh tham chiếu: thú cưng) / reference_product (ảnh tham chiếu: sản phẩm hoặc dịch vụ) / image_rulebook (rulebook) / image_promotion (quảng bá) / video_vertical (video dọc) / video_horizontal (video ngang) / bgm
data[].is_system boolean Danh mục có được Stepeee tạo tự động hay không
data[].material_count integer Số lượng tài liệu trong danh mục
Lỗi
Trạng tháiMãKhi nào
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Danh sách mẫu

Lấy các mẫu thiết lập và mẫu tự động hóa, cập nhật gần nhất trước. Với team, trả về các mẫu được team chia sẻ.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
mode Query string Tùy chọn — Lọc theo chế độ. moviemode / blogmode / carouselmode / postmode
kind Query string Tùy chọn — Lọc theo loại mẫu. setup / automation
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].template_unique string ID mẫu
data[].kind string Loại. setup (mẫu thiết lập chứa các cài đặt sản xuất) / automation (mẫu tự động hóa quyết định tự động hóa chạy những bước nào)
data[].mode string moviemode (video) / blogmode (blog) / carouselmode (carousel) / postmode (bài đăng)
data[].name string Tên mẫu
data[].created_at string Thời điểm tạo
data[].updated_at string Thời điểm cập nhật
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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 }
}

Tiêu đề và nội dung

Thêm tiêu đề vào các concept video, blog và carousel, và xóa nội dung. Khả dụng với gói Pro trở lên.

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

Thêm tiêu đề

Thêm hàng loạt tiêu đề vào một concept video, blog hoặc carousel và tạo nội dung đầu tiên cho mỗi tiêu đề (cùng quy trình như thêm tiêu đề thủ công trong ứng dụng). Các tiêu đề có tên đã tồn tại trong cùng concept, và các tên xuất hiện lần thứ hai trở đi trong cùng yêu cầu, sẽ không được tạo và được liệt kê trong skipped. Một concept có tối đa 100 tiêu đề; nếu việc thêm sẽ vượt quá 100, không có gì được tạo (các tên bị bỏ qua không được tính). Nếu giới hạn nội dung của gói không cho phép tạo nội dung, chỉ tiêu đề được tạo và variation_unique là null. Không thể đặt cài đặt quảng bá blog và tiếp thị liên kết; tiêu đề được tạo dưới dạng bài viết tiêu chuẩn. Với team, các tiêu đề và nội dung bạn tạo thuộc sở hữu của chủ sở hữu team.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
concept_unique Path string Bắt buộc — ID concept (một concept video, blog hoặc carousel trong dự án)
titles Body string[] Bắt buộc — Các tiêu đề cần thêm. 1–50 mục. Mỗi tiêu đề phải dài 1–500 ký tự sau khi bỏ khoảng trắng ở đầu và cuối (không cho phép tiêu đề chỉ có khoảng trắng, chỉ có "0", hoặc có xuống dòng ở giữa)
language Body string Bắt buộc — Ngôn ngữ đăng tải của nội dung cần tạo (mã ngôn ngữ như ja, en hoặc fr)
setup_template_unique Body string | null Tùy chọn — ID của mẫu thiết lập cần áp dụng (template_unique từ GET /templates, với kind là setup và cùng chế độ với concept). Nếu bỏ qua, mẫu mặc định của concept được dùng (hoặc thiết lập tiêu chuẩn nếu chưa đặt)
Idempotency-Key Header string Tùy chọn — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
created[] object Các tiêu đề đã tạo (theo thứ tự đã gửi)
created[].title_unique string ID tiêu đề
created[].title_name string Tên tiêu đề (đã bỏ khoảng trắng ở đầu và cuối)
created[].variation_unique string | null ID của nội dung đầu tiên được tạo. null nếu không thể tạo do giới hạn nội dung của gói
skipped[] object Các tiêu đề không được tạo (theo thứ tự đã gửi)
skipped[].title_name string Tên tiêu đề (đã bỏ khoảng trắng ở đầu và cuối)
skipped[].reason string Lý do không được tạo. duplicate (đã có tiêu đề cùng tên trong cùng concept, hoặc tên xuất hiện lần thứ hai trở đi trong cùng yêu cầu)
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
403 readonly Dự án ở chế độ chỉ đọc do hạ cấp gói
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi truy cập của bạn, hoặc concept không thuộc dự án đó
409 title_limit_reached Việc thêm sẽ khiến concept vượt quá 100 tiêu đề (không có gì được tạo). details chứa limit (giới hạn) và total_after_add (số lượng sau khi thêm)
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 validation_error Các tham số không hợp lệ
422 mode_not_supported Concept bài đăng (chế độ post) hoặc concept ảnh
422 template_not_found Mẫu của setup_template_unique không tồn tại (bao gồm mẫu của chế độ khác)
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Xóa nội dung

Xóa nội dung video, blog hoặc carousel (cùng quy trình như xóa nội dung trong ứng dụng). Nội dung đã xóa biến mất khỏi danh sách và chi tiết ngay lập tức, và sau delete_at (3 ngày sau) nó bị xóa vĩnh viễn cùng với hình ảnh, âm thanh và video đã tạo. Số thứ tự của các nội dung sau trong cùng tiêu đề được dịch xuống 1. Không thể xóa nội dung đang có tự động hóa chạy hoặc đã lên lịch, vì vậy hãy dừng tự động hóa trước. Không thể xóa nội dung cuối cùng còn lại của một tiêu đề và nội dung bài đăng (chế độ post).

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
project_unique Path string Bắt buộc — ID dự án
variation_unique Path string Bắt buộc — ID nội dung
Các trường phản hồi
TrườngKiểuMô tả
variation_unique string ID của nội dung đã xóa
mode string moviemode (video) / blogmode (blog) / carouselmode (carousel)
delete_at string Thời điểm bị xóa vĩnh viễn
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
403 readonly Nội dung hoặc dự án ở chế độ chỉ đọc do hạ cấp gói
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi truy cập của bạn, nội dung không thuộc dự án đó, hoặc đã bị xóa
409 automation_running Một tự động hóa đang chạy hoặc đã được lên lịch (có một tự động hóa chưa kết thúc)
409 last_variation Nội dung cuối cùng còn lại của tiêu đề
422 mode_not_supported Nội dung bài đăng (chế độ post)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "data": {
    "variation_unique": "Hn4kT7sY1cVb",
    "mode": "blogmode",
    "delete_at": "2026-10-24T12:00:00Z"
  }
}

Thao tác tự động hóa

Bắt đầu, đổi lịch và dừng các tự động hóa video, blog và carousel, và duyệt các tự động hóa đang chờ duyệt. Bạn có thể thao tác trên chính những tự động hóa mà bạn lấy được bằng GET /automations. Việc dừng khả dụng ở mọi gói; mọi thao tác khác yêu cầu gói Pro trở lên.

POST › /automations

Bắt đầu một tự động hóa

Bắt đầu tự động hóa cho nội dung (video, blog hoặc carousel) bằng cài đặt của một mẫu tự động hóa. Nếu bạn chỉ định reserved_at, tự động hóa được lên lịch; nếu bỏ qua, nó chạy ngay. Tất cả nội dung mục tiêu phải thuộc cùng một dự án và cùng một chế độ. Nếu dù chỉ một nội dung không thể bắt đầu, sẽ không có gì được đăng ký, và phản hồi cho biết nội dung nào không thể bắt đầu và lý do. Các bước đã được tạo sẽ bị bỏ qua và lần chạy bắt đầu từ bước đầu tiên chưa được tạo; các bước được đặt là skip trong mẫu tự động hóa sẽ không chạy. Với nội dung chưa hoàn tất thiết lập, thiết lập sẽ được chốt khi bắt đầu. Chạy tự động hóa sẽ tiêu tốn Token. Số dư không được kiểm tra khi bắt đầu; nếu hết trong lúc chạy, tự động hóa kết thúc với token_shortage. Với các cài đặt yêu cầu duyệt nội dung, tự động hóa dừng ở waiting_confirmation giữa chừng, vì vậy hãy duyệt bằng POST /automations/{auto_unique}/confirm. Tự động đăng cho bài đăng (chế độ post) là một cơ chế riêng, được bật và tắt cho từng nội dung trong ứng dụng và không thể bắt đầu bằng endpoint này.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
variation_uniques Body string[] Bắt buộc — variation_unique của nội dung cần tự động hóa. 1–50 mục, không trùng lặp
automation_template_unique Body string Bắt buộc — ID mẫu tự động hóa (template_unique từ GET /templates?kind=automation, cùng chế độ với nội dung)
reserved_at Body string Tùy chọn — Thời điểm chạy (một ngày giờ trong tương lai). Hãy chỉ định theo ISO 8601 kèm độ lệch múi giờ; giá trị không có độ lệch được coi là UTC. Nếu bỏ qua, tự động hóa chạy ngay
Idempotency-Key Header string Bắt buộc — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Bắt buộc để tránh bắt đầu hai lần. Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
data[].auto_unique string ID lần chạy tự động hóa
data[].mode string moviemode / blogmode / carouselmode
data[].project object Dự án {project_unique, project_name}
data[].content.variation_unique string ID nội dung
data[].content.title string | null Tiêu đề (tên concept với postmode)
data[].run_no integer Đây là lần chạy thứ mấy cho nội dung
data[].status string Trạng thái. pending (chờ chạy; là đã lên lịch khi reserved_at ở tương lai) / executing / waiting_confirmation (chờ duyệt nội dung; tiếp tục sau khi duyệt) / completed / failed / stopped / token_shortage (kết thúc vì hết token)
data[].execution_mode string sequential (lần lượt từng cái) / parallel (tất cả cùng lúc)
data[].phases object Trạng thái của từng giai đoạn {setup, step1, step2, step3}. not_started / running (đang chạy, hoặc giai đoạn nơi nó dừng) / done (bao gồm đã bỏ qua và, với lần chạy kết thúc ở trạng thái completed, các bước nằm ngoài phạm vi của lần chạy này) / error
data[].template.setup_template_name string | null Tên mẫu thiết lập được dùng khi bắt đầu
data[].template.automation_template_name string | null Tên mẫu tự động hóa được dùng khi bắt đầu
data[].reserved_at string | null Giờ chạy đã lên lịch
data[].executed_at string | null Thời điểm lần chạy bắt đầu
data[].completed_at string | null Thời điểm lần chạy kết thúc (với completed / failed / stopped / token_shortage)
data[].created_at string Thời điểm lần chạy được đăng ký
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
404 content_not_found Một variation_unique không nằm trong số nội dung bạn có thể truy cập (bao gồm nội dung được lên lịch xóa sau khi yêu cầu được chấp nhận; không có gì được đăng ký). details.variation_uniques chứa những giá trị tương ứng
404 automation_template_not_found Mẫu tự động hóa không tồn tại
409 contents_not_automatable Một số nội dung không thể bắt đầu (không có gì được đăng ký). details.contents chứa một mảng {variation_unique, reason}. reason là automation_active (có một tự động hóa chưa kết thúc) / content_complete (đã hoàn tất) / content_readonly (chỉ đọc do hạ cấp gói) / layout_template_required (nội dung carousel trong dự án chưa có mẫu bố cục)
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 validation_error Các tham số không hợp lệ (0 mục hoặc từ 51 mục trở lên, trùng lặp, reserved_at trong quá khứ, v.v.)
422 mode_not_supported Có nội dung bài đăng (chế độ post). details.variation_uniques chứa những giá trị tương ứng
422 mixed_modes Nội dung của các chế độ khác nhau bị trộn lẫn
422 mixed_projects Nội dung của các dự án khác nhau bị trộn lẫn
422 automation_template_mode_mismatch Chế độ của mẫu tự động hóa khác với chế độ của nội dung
422 idempotency_key_required Thiếu header Idempotency-Key
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
503 automation_dispatch_failed Việc bắt đầu lần chạy ngay lập tức thất bại. Các tự động hóa đã đăng ký chuyển sang failed. Gửi lại với cùng Idempotency-Key sẽ đăng ký lại và bắt đầu chúng
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Thay đổi giờ đã lên lịch

Thay đổi thời gian chạy của một tự động hóa đang chờ chạy (status pending). Các tự động hóa đã bắt đầu hoặc đã kết thúc không thể thay đổi.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
auto_unique Path string Bắt buộc — ID lần chạy tự động hóa
reserved_at Body string Bắt buộc — Giờ chạy mới (một ngày giờ trong tương lai). Hãy chỉ định theo ISO 8601 kèm độ lệch múi giờ; giá trị không có độ lệch được coi là UTC
Các trường phản hồi
TrườngKiểuMô tả
auto_unique string ID lần chạy tự động hóa
mode string moviemode / blogmode / carouselmode
project object Dự án {project_unique, project_name}
content.variation_unique string ID nội dung
content.title string | null Tiêu đề (tên concept với postmode)
run_no integer Đây là lần chạy thứ mấy cho nội dung
status string Trạng thái. pending (chờ chạy; là đã lên lịch khi reserved_at ở tương lai) / executing / waiting_confirmation (chờ duyệt nội dung; tiếp tục sau khi duyệt) / completed / failed / stopped / token_shortage (kết thúc vì hết token)
execution_mode string sequential (lần lượt từng cái) / parallel (tất cả cùng lúc)
phases object Trạng thái của từng giai đoạn {setup, step1, step2, step3}. not_started / running (đang chạy, hoặc giai đoạn nơi nó dừng) / done (bao gồm đã bỏ qua và, với lần chạy kết thúc ở trạng thái completed, các bước nằm ngoài phạm vi của lần chạy này) / error
template.setup_template_name string | null Tên mẫu thiết lập được dùng khi bắt đầu
template.automation_template_name string | null Tên mẫu tự động hóa được dùng khi bắt đầu
reserved_at string | null Giờ chạy đã lên lịch
executed_at string | null Thời điểm lần chạy bắt đầu
completed_at string | null Thời điểm lần chạy kết thúc (với completed / failed / stopped / token_shortage)
created_at string Thời điểm lần chạy được đăng ký
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
404 not_found Tự động hóa không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Automation not found.)
409 automation_not_pending Không ở trạng thái chờ chạy (pending); đã bắt đầu hoặc đã kết thúc
422 validation_error reserved_at bị thiếu, không thể đọc thành ngày giờ, hoặc nằm trong quá khứ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Dừng một tự động hóa

Cùng thao tác như dừng trong ứng dụng. Khả dụng ở mọi gói (để bạn có thể dừng ngay cả sau khi đổi gói). Các tự động hóa đang chờ chạy (bao gồm đã lên lịch) hoặc đang chờ duyệt sẽ chuyển sang stopped ngay lập tức. Với tự động hóa đang chạy, một yêu cầu dừng được gửi đi: tại thời điểm phản hồi nó vẫn đang thực thi, và nó chuyển sang stopped ở khoảng nghỉ tiếp theo giữa các bước (kiểm tra bằng GET /automations/{auto_unique}). Các tự động hóa đã kết thúc được giữ nguyên và trạng thái hiện tại của chúng được trả về.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
auto_unique Path string Bắt buộc — ID lần chạy tự động hóa
Các trường phản hồi
TrườngKiểuMô tả
auto_unique string ID lần chạy tự động hóa
mode string moviemode / blogmode / carouselmode
project object Dự án {project_unique, project_name}
content.variation_unique string ID nội dung
content.title string | null Tiêu đề (tên concept với postmode)
run_no integer Đây là lần chạy thứ mấy cho nội dung
status string Trạng thái. pending (chờ chạy; là đã lên lịch khi reserved_at ở tương lai) / executing / waiting_confirmation (chờ duyệt nội dung; tiếp tục sau khi duyệt) / completed / failed / stopped / token_shortage (kết thúc vì hết token)
execution_mode string sequential (lần lượt từng cái) / parallel (tất cả cùng lúc)
phases object Trạng thái của từng giai đoạn {setup, step1, step2, step3}. not_started / running (đang chạy, hoặc giai đoạn nơi nó dừng) / done (bao gồm đã bỏ qua và, với lần chạy kết thúc ở trạng thái completed, các bước nằm ngoài phạm vi của lần chạy này) / error
template.setup_template_name string | null Tên mẫu thiết lập được dùng khi bắt đầu
template.automation_template_name string | null Tên mẫu tự động hóa được dùng khi bắt đầu
reserved_at string | null Giờ chạy đã lên lịch
executed_at string | null Thời điểm lần chạy bắt đầu
completed_at string | null Thời điểm lần chạy kết thúc (với completed / failed / stopped / token_shortage)
created_at string Thời điểm lần chạy được đăng ký
Lỗi
Trạng tháiMãKhi nào
404 not_found Tự động hóa không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Automation not found.)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Duyệt một tự động hóa đang chờ duyệt

Với một tự động hóa đang dừng để chờ duyệt nội dung (status waiting_confirmation), đánh dấu nội dung là đã duyệt và chạy phần còn lại (tạo văn bản mạng xã hội, đăng bài, v.v.). Cùng thao tác như duyệt nội dung trong ứng dụng. Khi thành công, tự động hóa trở về pending và bắt đầu chạy ngay.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
auto_unique Path string Bắt buộc — ID lần chạy tự động hóa
Idempotency-Key Header string Tùy chọn — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
auto_unique string ID lần chạy tự động hóa
mode string moviemode / blogmode / carouselmode
project object Dự án {project_unique, project_name}
content.variation_unique string ID nội dung
content.title string | null Tiêu đề (tên concept với postmode)
run_no integer Đây là lần chạy thứ mấy cho nội dung
status string Trạng thái. pending (chờ chạy; là đã lên lịch khi reserved_at ở tương lai) / executing / waiting_confirmation (chờ duyệt nội dung; tiếp tục sau khi duyệt) / completed / failed / stopped / token_shortage (kết thúc vì hết token)
execution_mode string sequential (lần lượt từng cái) / parallel (tất cả cùng lúc)
phases object Trạng thái của từng giai đoạn {setup, step1, step2, step3}. not_started / running (đang chạy, hoặc giai đoạn nơi nó dừng) / done (bao gồm đã bỏ qua và, với lần chạy kết thúc ở trạng thái completed, các bước nằm ngoài phạm vi của lần chạy này) / error
template.setup_template_name string | null Tên mẫu thiết lập được dùng khi bắt đầu
template.automation_template_name string | null Tên mẫu tự động hóa được dùng khi bắt đầu
reserved_at string | null Giờ chạy đã lên lịch
executed_at string | null Thời điểm lần chạy bắt đầu
completed_at string | null Thời điểm lần chạy kết thúc (với completed / failed / stopped / token_shortage)
created_at string Thời điểm lần chạy được đăng ký
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
404 not_found Tự động hóa không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Automation not found.)
409 automation_not_waiting_confirmation Không ở trạng thái chờ duyệt (waiting_confirmation)
409 content_readonly Nội dung ở chế độ chỉ đọc do hạ cấp gói
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
503 automation_dispatch_failed Việc bắt đầu phần còn lại của lần chạy thất bại. Tự động hóa chuyển sang failed (nội dung vẫn ở trạng thái đã duyệt, vì vậy hãy bắt đầu một tự động hóa mới để tiếp tục)
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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"
  }
}

Duyệt bài đăng

Với nội dung tự động hóa bài đăng (chế độ post) có cài đặt duyệt trước khi đăng là required hoặc optional, bạn có thể duyệt, đăng ngay, đổi lịch hoặc hủy bài đăng. Đối tượng là những bài đăng giống như trong danh sách duyệt của ứng dụng và các liên kết trong email duyệt, và áp dụng cùng các quy tắc. Danh sách khả dụng ở mọi gói; các thao tác yêu cầu gói Pro trở lên.

GET › /post-confirms

Bài đăng đang chờ duyệt

Lấy các bài đăng đã được gửi email duyệt mà chưa tới giờ đã lên lịch (upcoming) hoặc đã hết hạn (expired), theo thứ tự giờ đã lên lịch. Bài upcoming là các bài đang chờ phê duyệt (awaiting; không được đăng nếu không được duyệt) và các bài chỉ thông báo (notice; được đăng nguyên trạng). Bài expired là các bài đã quá giờ đã lên lịch mà không được duyệt và không được đăng; chúng chỉ được trả về trong 30 ngày sau giờ đã lên lịch. Một chuỗi bài được trả về dưới dạng một mục ứng với bài đầu tiên, còn các bài thứ hai trở đi nằm trong thread. Khả dụng ở mọi gói.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
state Query string Tùy chọn — Lọc theo upcoming (trước giờ đã lên lịch) hoặc expired. Cả hai nếu bỏ qua
project_unique Query string Tùy chọn — Chỉ trả về các bài đăng của dự án này
page Query integer Tùy chọn 1 Trang cần trả về (bắt đầu từ 1)
per_page Query integer Tùy chọn 20 Số mục mỗi trang (1–100)
Các trường phản hồi
TrườngKiểuMô tả
data[].schedule_unique string ID của bài đăng đã lên lịch. Dùng trong các đường dẫn thao tác
data[].state string | null upcoming (trước giờ đã lên lịch) / expired. null với các bài không còn trong quá trình duyệt sau khi duyệt, đổi lịch, v.v. (chỉ có trong phản hồi của thao tác)
data[].confirm_state string awaiting (chờ phê duyệt; không được đăng nếu chưa duyệt) / notice (chỉ thông báo; được đăng nguyên trạng) / confirmed (đã duyệt) / none (không duyệt)
data[].confirm_mode string Cài đặt duyệt của nội dung. required (không được đăng nếu chưa duyệt) / optional (vẫn được đăng dù không duyệt) / none (không duyệt)
data[].can_approve boolean Có thể duyệt hay không (true khi là upcoming và awaiting)
data[].can_post_now boolean Có thể đăng ngay hay không (true khi là expired)
data[].can_reschedule boolean Có thể đổi lịch hay không (true khi là expired)
data[].scheduled_at string Thời điểm bài đăng được lên lịch
data[].scheduled_at_local string Giờ đã lên lịch theo giờ địa phương của timezone (YYYY-MM-DDTHH:MM:SS)
data[].timezone string Múi giờ tại thời điểm kế hoạch được tạo
data[].deadline_at string | null Hạn chót để thao tác. Với upcoming là giờ đã lên lịch (sau đó chuyển thành expired); với expired là 30 ngày sau giờ đã lên lịch (sau đó biến mất khỏi danh sách và không thể thao tác). null nếu state là null
data[].project object Dự án {project_unique, project_name}
data[].concept object Concept {concept_unique, concept_name}
data[].variation_unique string ID nội dung
data[].post_unique string ID bài đăng (giống items[].post_unique trong lịch đăng bài)
data[].post_type string Loại bài đăng. assertion (quan điểm) / knowhow / experience / casual (hằng ngày)
data[].text string Văn bản bài đăng (bài đầu tiên của chuỗi bài)
data[].thread[] object Các bài thứ hai trở đi của chuỗi bài {text, image} (theo thứ tự; mảng rỗng nếu không phải chuỗi bài)
data[].image object | null Hình ảnh đính kèm {url, expires_at} (URL có chữ ký hết hạn sau 1 giờ). null nếu không có
meta.total integer Tổng số mục khớp
meta.current_page integer Trang hiện tại
meta.per_page integer Số mục mỗi trang
meta.last_page integer Trang cuối
Lỗi
Trạng tháiMãKhi nào
404 not_found Dự án không tồn tại hoặc nằm ngoài phạm vi bạn có thể truy cập (Project not found.)
422 validation_error Các tham số không hợp lệ
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Duyệt một bài đăng

Duyệt một bài đăng đang chờ phê duyệt (upcoming với confirm_state là awaiting). Bài đã duyệt sẽ được đăng vào giờ đã lên lịch. Với bài đã quá giờ đã lên lịch, hãy dùng đăng ngay hoặc đổi lịch.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
schedule_unique Path string Bắt buộc — ID của bài đăng đã lên lịch (schedule_unique từ GET /post-confirms)
Idempotency-Key Header string Tùy chọn — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
schedule_unique / state / … / image — Giống như một mục trong danh sách bài đăng đang chờ duyệt (trạng thái sau thao tác)
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
404 post_schedule_not_found Một bài đăng không xuất hiện trong GET /post-confirms (không tồn tại, nằm ngoài phạm vi truy cập, không trong quá trình duyệt, hoặc đã được duyệt)
409 confirm_expired Đã quá giờ đã lên lịch (hãy dùng đăng ngay hoặc đổi lịch)
409 confirm_not_pending Không ở trạng thái chờ phê duyệt (ví dụ: bài đăng chỉ thông báo)
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Đăng ngay một bài đã hết hạn

Đặt một bài đăng đã hết hạn sẽ được đăng sau 1 phút kể từ bây giờ và đánh dấu là đã duyệt (bài sẽ được đăng ngay sau đó). Các bài thứ hai trở đi của chuỗi bài được dời đi cùng một khoảng. Chỉ dùng được cho bài đăng đã hết hạn.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
schedule_unique Path string Bắt buộc — ID của bài đăng đã lên lịch (schedule_unique từ GET /post-confirms)
allow_close_slot Body boolean Tùy chọn false true để vẫn tiếp tục dù khoảng cách đến các bài đăng đã lên lịch khác của cùng nội dung ngắn hơn khoảng cách tối thiểu (90 phút)
Idempotency-Key Header string Tùy chọn — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
schedule_unique / state / … / image — Giống như một mục trong danh sách bài đăng đang chờ duyệt (trạng thái sau thao tác)
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
403 resource_readonly Nội dung ở chế độ chỉ đọc do hạ cấp gói
404 post_schedule_not_found Một bài đăng không xuất hiện trong GET /post-confirms (không tồn tại, nằm ngoài phạm vi truy cập, không trong quá trình duyệt, hoặc đã được duyệt)
409 confirm_not_expired Chưa hết hạn (hãy dùng duyệt trước giờ đã lên lịch)
409 schedule_close_to_other_slot allow_close_slot là false và khoảng cách đến một bài đăng đã lên lịch khác của cùng nội dung sẽ ngắn hơn 90 phút. details chứa min_gap_minutes (khoảng cách tối thiểu tính bằng phút), timezone và conflicts (một mảng các bài đăng đã lên lịch ở gần {scheduled_at_local, minutes_apart})
409 schedule_locked Đang đăng hoặc đã đăng, hoặc trong vòng 2 phút trước giờ đã lên lịch khi trùng với việc đăng bài
409 schedule_processing Thao tác xảy ra cùng lúc với việc đăng bài và không thể áp dụng
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 validation_error allow_close_slot không phải true hoặc false
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Đổi lịch một bài đã hết hạn

Thay đổi giờ đã lên lịch của một bài đăng đã hết hạn và đánh dấu là đã duyệt (bài sẽ được đăng vào thời điểm đã chỉ định). Các bài thứ hai trở đi của chuỗi bài được dời đi cùng một khoảng. Chỉ có thể đổi lịch cho bài đăng đã hết hạn.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
schedule_unique Path string Bắt buộc — ID của bài đăng đã lên lịch (schedule_unique từ GET /post-confirms)
scheduled_at Body string Bắt buộc — Giờ đã lên lịch mới (một ngày giờ trong tương lai). Hãy chỉ định theo ISO 8601 kèm độ lệch múi giờ (như 2026-10-21T09:30:00+09:00 hoặc 2026-10-21T00:30:00Z; có thể bỏ giây và phần thập phân của giây bị cắt bỏ). Giá trị được quy đổi sang giờ theo timezone của bài đăng rồi lưu lại
allow_close_slot Body boolean Tùy chọn false true để vẫn tiếp tục dù khoảng cách đến các bài đăng đã lên lịch khác của cùng nội dung ngắn hơn khoảng cách tối thiểu (90 phút)
Các trường phản hồi
TrườngKiểuMô tả
schedule_unique / state / … / image — Giống như một mục trong danh sách bài đăng đang chờ duyệt (trạng thái sau thao tác)
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
403 resource_readonly Nội dung ở chế độ chỉ đọc do hạ cấp gói
404 post_schedule_not_found Một bài đăng không xuất hiện trong GET /post-confirms (không tồn tại, nằm ngoài phạm vi truy cập, không trong quá trình duyệt, hoặc đã được duyệt)
409 confirm_not_expired Chưa hết hạn (hãy dùng duyệt trước giờ đã lên lịch)
409 schedule_close_to_other_slot allow_close_slot là false và khoảng cách đến một bài đăng đã lên lịch khác của cùng nội dung sẽ ngắn hơn 90 phút. details chứa min_gap_minutes (khoảng cách tối thiểu tính bằng phút), timezone và conflicts (một mảng các bài đăng đã lên lịch ở gần {scheduled_at_local, minutes_apart})
409 schedule_locked Đang đăng hoặc đã đăng, hoặc trong vòng 2 phút trước giờ đã lên lịch khi trùng với việc đăng bài
409 schedule_processing Thao tác xảy ra cùng lúc với việc đăng bài và không thể áp dụng
422 confirm_reschedule_past scheduled_at bằng hoặc trước thời điểm hiện tại
422 validation_error scheduled_at bị thiếu, không có độ lệch múi giờ, hoặc không thể đọc thành ngày giờ, hoặc allow_close_slot không phải true hoặc false
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Hủy một bài đăng

Hủy một bài đăng (dù chưa tới giờ đã lên lịch hay đã hết hạn). Bài đăng, các bài thứ hai trở đi của chuỗi bài và lịch đăng đều bị xóa. Không thể hoàn tác thao tác này.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
schedule_unique Path string Bắt buộc — ID của bài đăng đã lên lịch (schedule_unique từ GET /post-confirms)
Các trường phản hồi
TrườngKiểuMô tả
schedule_unique string ID của bài đăng đã lên lịch bị hủy
deleted boolean Luôn là true
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
403 resource_readonly Nội dung ở chế độ chỉ đọc do hạ cấp gói
404 post_schedule_not_found Một bài đăng không xuất hiện trong GET /post-confirms (không tồn tại, nằm ngoài phạm vi truy cập, không trong quá trình duyệt, hoặc đã được duyệt)
409 post_posting_locked Đang được đăng (bao gồm các bài thứ hai trở đi của chuỗi bài) và không thể hủy
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "deleted": true
  }
}

Webhook

Gửi các sự kiện tự động hóa và đăng bài dưới dạng JSON tới các URL bạn đăng ký. Hãy dùng để biết về các lần hoàn tất, thất bại và duyệt mà không cần gọi API liên tục. Việc đăng ký và gửi thử yêu cầu gói Pro trở lên; xem danh sách và xóa khả dụng ở mọi gói.

GET › /webhooks

Danh sách endpoint webhook

Lấy các endpoint bạn đã đăng ký theo thứ tự đăng ký (tối đa 5; không phân trang). Khóa bí mật ký (signing secret) không được bao gồm. Khả dụng ở mọi gói.

Các trường phản hồi
TrườngKiểuMô tả
data[].webhook_unique string ID endpoint
data[].url string URL đích
data[].events string[] Tên các sự kiện cần nhận
data[].description string | null Ghi chú
data[].is_active boolean Sự kiện hiện có được gửi hay không. true khi chủ sở hữu dùng gói Pro trở lên (với thành viên team là khi chủ sở hữu team dùng gói Team). Các sự kiện xảy ra khi là false sẽ không được gửi
data[].last_delivery_at string | null Thời điểm lần gửi gần nhất được thực hiện (không bao gồm gửi thử)
data[].last_delivery_status string | null Kết quả của lần gửi gần nhất. succeeded / failed. null nếu chưa gửi gì
data[].last_response_status integer | null HTTP status nhận được ở lần gửi gần nhất (null nếu không có phản hồi)
data[].last_error string | null Lý do lần gửi gần nhất thất bại. Các giá trị giống error của lần gửi thử
data[].created_at string Thời điểm tạo
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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

Đăng ký một endpoint webhook

Đăng ký một endpoint. secret (khóa bí mật ký) trong phản hồi chỉ được trả về trong phản hồi này, và sẽ không có cách nào hiển thị lại sau đó. Nếu bạn làm mất, hãy xóa endpoint và đăng ký lại. Bạn có thể đăng ký tối đa 5 endpoint. Các sự kiện xảy ra trước khi đăng ký sẽ không được gửi.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
url Body string Bắt buộc — URL đích (chỉ https, chỉ cổng 443 (có thể bỏ qua), tối đa 2048 ký tự). Không thể đăng ký các URL chứa tên người dùng hoặc mật khẩu. Không thể đăng ký các URL phân giải thành địa chỉ nội bộ hoặc địa chỉ dành riêng (IP riêng, loopback, link-local, localhost, v.v.) và các URL không phân giải được tên
events Body string[] Bắt buộc — Tên các sự kiện cần nhận (một hoặc nhiều giá trị từ danh sách sự kiện, không trùng lặp)
description Body string | null Tùy chọn — Ghi chú (tối đa 100 ký tự)
Idempotency-Key Header string Tùy chọn — Một chuỗi duy nhất do bạn tạo cho mỗi thao tác (1–255 ký tự ASCII có thể in được). Gửi lại cùng nội dung với cùng key sẽ trả về phản hồi đầu tiên nguyên trạng (xem Idempotency-Key trong phần quy ước)
Các trường phản hồi
TrườngKiểuMô tả
webhook_unique string ID endpoint
url string URL đích
events string[] Tên các sự kiện cần nhận
description string | null Ghi chú
is_active boolean Sự kiện hiện có được gửi hay không. true khi chủ sở hữu dùng gói Pro trở lên (với thành viên team là khi chủ sở hữu team dùng gói Team). Các sự kiện xảy ra khi là false sẽ không được gửi
last_delivery_at string | null Thời điểm lần gửi gần nhất được thực hiện (không bao gồm gửi thử)
last_delivery_status string | null Kết quả của lần gửi gần nhất. succeeded / failed. null nếu chưa gửi gì
last_response_status integer | null HTTP status nhận được ở lần gửi gần nhất (null nếu không có phản hồi)
last_error string | null Lý do lần gửi gần nhất thất bại. Các giá trị giống error của lần gửi thử
created_at string Thời điểm tạo
secret string Khóa bí mật ký (bắt đầu bằng whsec_). Chỉ được trả về trong phản hồi này
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
409 webhook_limit_reached Bạn đã đăng ký 5 endpoint
409 idempotency_request_in_progress Một yêu cầu có cùng Idempotency-Key vẫn đang được xử lý
422 validation_error Dữ liệu nhập không hợp lệ (URL không phải https, cổng khác 443, URL chứa tên người dùng hoặc mật khẩu, URL phân giải thành địa chỉ nội bộ hoặc không phân giải được tên, tên sự kiện không xác định, tên sự kiện trùng lặp, v.v.)
422 idempotency_key_invalid Idempotency-Key không phải 1–255 ký tự ASCII có thể in được
422 idempotency_key_reused Cùng một Idempotency-Key đã được dùng cho một yêu cầu có nội dung khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "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}

Xóa một endpoint webhook

Xóa một endpoint. Các sự kiện chưa được gửi và các sự kiện đang chờ thử lại cũng sẽ không được gửi. Khả dụng ở mọi gói.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
webhook_unique Path string Bắt buộc — ID endpoint
Các trường phản hồi
TrườngKiểuMô tả
webhook_unique string ID của endpoint đã xóa
deleted boolean Luôn là true
Lỗi
Trạng tháiMãKhi nào
404 not_found Endpoint không tồn tại hoặc thuộc về người dùng khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "data": {
    "webhook_unique": "Xk3pQ9vLm2Ta",
    "deleted": true
  }
}
POST › /webhooks/{webhook_unique}/test

Gửi thử

Gửi một sự kiện webhook.test một lần ngay lập tức và trả về kết quả. Sự kiện được gửi với cùng chữ ký, header và các bước kiểm tra đích đến như sự kiện thật, vì vậy bạn có thể dùng để kiểm tra việc xác minh chữ ký ở phía nhận. Sự kiện không được thử lại và không được ghi vào last_delivery_at và các trường tương tự.

Tham số
Tên Vị trí Kiểu Bắt buộc Mặc định Mô tả
webhook_unique Path string Bắt buộc — ID endpoint
Các trường phản hồi
TrườngKiểuMô tả
delivered boolean Có nhận được phản hồi 2xx hay không
response_status integer | null HTTP status nhận được (null nếu không có phản hồi)
error string | null Lý do thất bại. url_blocked (không phải https, cổng khác 443, chứa tên người dùng và mật khẩu, hoặc ngay trước khi gửi đã phân giải thành địa chỉ nội bộ hoặc không phân giải được) / timeout (không có phản hồi trong 5 giây) / connection_failed (kết nối hoặc TLS thất bại) / non_2xx_response (phản hồi khác 2xx; chuyển hướng cũng bị coi là thất bại và không được theo dõi). null khi thành công
Lỗi
Trạng tháiMãKhi nào
403 plan_required Chủ sở hữu API key dùng gói thấp hơn Pro
403 team_plan_lost Bạn là thành viên team và chủ sở hữu team không còn dùng gói Team
404 not_found Endpoint không tồn tại hoặc thuộc về người dùng khác
Ví dụ yêu cầu
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;
Ví dụ phản hồi
{
  "data": {
    "delivered": false,
    "response_status": 500,
    "error": "non_2xx_response"
  }
}

Sự kiện

Khi một sự kiện bạn đã đăng ký xảy ra, một yêu cầu POST được gửi đến URL đã đăng ký. Chỉ các sự kiện trong những dự án mà chủ sở hữu endpoint có thể truy cập vào thời điểm đó mới được gửi. Các sự kiện được kiểm tra mỗi phút, nên việc gửi có thể mất vài phút. Các sự kiện xảy ra trước khi endpoint được đăng ký, và các sự kiện xảy ra khi chủ sở hữu dùng gói thấp hơn Pro (với thành viên team là khi chủ sở hữu team không dùng gói Team), sẽ không được gửi.

Sự kiệnÝ nghĩa
automation.waiting_confirmationMột tự động hóa (video, blog hoặc carousel) đã dừng để chờ duyệt nội dung
automation.completedMột tự động hóa đã hoàn tất đến cuối
automation.failedMột tự động hóa kết thúc với failed, stopped hoặc token_shortage (hết Token)
post.publishedĐã đăng lên mạng xã hội (kết quả đăng bài của video, blog hoặc carousel trở thành success, hoặc một bài đăng (chế độ post) đã được đăng lên X). Bao gồm cả bài đăng thủ công và tự động
post.failedMột bài đăng thất bại (kết quả đăng bài của video, blog hoặc carousel trở thành failed hoặc partial_success, hoặc một bài đăng (chế độ post) bị bỏ qua vì việc đăng hoặc tạo văn bản thất bại)
post.confirm_requiredMột bài đăng (chế độ post) đang chờ phê duyệt đã xuất hiện trong GET /post-confirms (bài không được đăng nếu chưa duyệt)
webhook.testMột lần gửi thử (POST /webhooks/{webhook_unique}/test). Không thể dùng làm sự kiện để đăng ký

Body của yêu cầu

Body là JSON (UTF-8) gồm {id, type, created_at, data}. id là ID sự kiện (bắt đầu bằng evt_), type là tên sự kiện và created_at là thời điểm sự kiện được ghi lại. Khi cùng một sự kiện được gửi lại, body giống nhau và chỉ t trong chữ ký thay đổi. Cấu trúc của data cho từng sự kiện như sau.

Sự kiệnCấu trúc của data
automation.*Cùng cấu trúc với một mục của data[] trong GET /automations. status là waiting_confirmation với automation.waiting_confirmation, completed với automation.completed, và failed / stopped / token_shortage với automation.failed
post.published
post.failed
Video, blog và carousel: một mục của data[] trong GET /projects/{project_unique}/publications cộng với project. Với post.failed, status là failed hoặc partial_success, và error_code chứa cùng mã thất bại như kết quả đăng bài. Bài đăng (chế độ post): cùng cấu trúc cộng với schedule_unique. publication_unique là ID bài đăng (null với lịch đăng mà việc tạo văn bản thất bại), content.title là tên concept, account là null, và error_code là token_expired / api_error / not_found / insufficient_token / no_x_account / node_ws_timeout. Hãy dùng is_automation để biết đó có phải bài đăng tự động hay không
post.confirm_requiredCùng cấu trúc với một mục của data[] trong GET /post-confirms, với các giá trị tại thời điểm sự kiện được ghi lại. Không được gửi với các bài chỉ thông báo (notice). URL hình ảnh có chữ ký hết hạn 1 giờ sau khi được ghi lại, vì vậy nếu sự kiện đến muộn, hãy lấy lại bằng GET /post-confirms. Nếu một bài đăng cho cùng lịch đăng được tạo lại, sự kiện sẽ đến lần nữa với post_unique mới
webhook.test{"webhook_unique": "…"}

Ví dụ body

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" }
}

Header của yêu cầu

HeaderMô tả
Content-Type: application/jsonĐịnh dạng của body
Stepeee-Signature: t=1792584000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bdChữ ký. t là thời điểm gửi (giây UNIX) và v1 là chữ ký (HMAC-SHA256 dạng thập lục phân). Xem phần xác minh chữ ký bên dưới để biết cách xác minh
Stepeee-Event-Id: evt_Q2x8Lr0aZk9MvB3pT7cYw1NdID sự kiện (giống id trong body). Không đổi khi gửi lại, nên hãy dùng để loại bỏ trùng lặp
Stepeee-Event-Type: automation.failedTên sự kiện (giống type trong body)
User-Agent: Stepeee-Webhooks/1.0Bên gửi

Xác minh chữ ký

Để xác nhận rằng body bạn nhận được do Stepeee gửi và chưa bị chỉnh sửa, hãy xác minh chữ ký như sau.

  1. Tách header Stepeee-Signature theo dấu "," và lấy giá trị của t= (giây UNIX) và giá trị của v1= (64 ký tự thập lục phân).
  2. Dùng body nhận được ở dạng byte thô (không phân tích rồi dựng lại JSON), tạo chuỗi ghép từ giá trị t, ".", và body.
  3. Tính HMAC-SHA256 với secret bạn nhận được khi đăng ký (toàn bộ giá trị, bao gồm whsec_) làm khóa, và mã hóa thành dạng thập lục phân viết thường.
  4. So sánh giá trị đã tính với v1 bằng phép so sánh có thời gian không phụ thuộc vào nội dung (như hmac.compare_digest trong Python hoặc hash_equals trong PHP). Nếu không khớp, hãy trả về 400 hoặc tương tự và không xử lý.
  5. Để ngăn việc phát lại các yêu cầu cũ, chúng tôi khuyến nghị từ chối các yêu cầu có t chênh lệch so với thời gian hiện tại từ 5 phút trở lên.
  6. Hãy dùng id trong body để bỏ qua các sự kiện bạn đã xử lý.

Ví dụ mã xác minh

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

Điều kiện thành công và thử lại

Nếu bạn trả về 2xx trong vòng 5 giây, sự kiện được coi là đã gửi thành công. Body của phản hồi không được đọc và chuyển hướng không được theo dõi. Các phản hồi khác 2xx, hết thời gian chờ và lỗi kết nối sẽ được thử lại, với tối đa 8 lần gửi tính cả lần đầu. Khoảng cách trước lần gửi tiếp theo là 1 phút → 5 phút → 30 phút → 2 giờ → 4 giờ → 6 giờ → 10 giờ, và nếu cả 8 lần đều thất bại, sự kiện sẽ không được gửi nữa. Nếu chủ sở hữu dùng gói thấp hơn Pro tại thời điểm gửi (với thành viên team là nếu chủ sở hữu team không dùng gói Team), sự kiện sẽ không được gửi. Sự kiện cũng không được gửi nếu chủ sở hữu không còn truy cập được dự án tại thời điểm gửi (đã rời team, bị gỡ quyền hoặc dự án đã bị xóa).

Vì cùng một sự kiện được gửi lại cho đến khi nhận được 2xx, nên cùng một sự kiện có thể đến từ hai lần trở lên. Hãy loại bỏ trùng lặp bằng Stepeee-Event-Id (id trong body). Thứ tự gửi không được đảm bảo. Hãy xử lý nặng sau khi đã trả về 2xx.

Yêu cầu đối với đích đến

Đích đến phải là URL https, và cổng bị giới hạn ở 443. Không thể đăng ký các URL chứa tên người dùng hoặc mật khẩu. Không thể đăng ký các URL phân giải thành địa chỉ nội bộ hoặc địa chỉ dành riêng (IP riêng, loopback, link-local, localhost, v.v.) và các URL không phân giải được tên. Tên cũng được phân giải và kiểm tra ngay trước khi gửi, và nếu nó phân giải thành địa chỉ nội bộ, việc gửi sẽ thất bại với url_blocked mà không được gửi đi.