Stepeee Stepeee AI 全自動平台

連線方式

1

確認 API 金鑰

可從右上角選單 > 設定 > 帳戶 > API 金鑰 中確認。

2

加入請求標頭

將發行的 API 金鑰以 Bearer 格式加入 Authorization 標頭。

3

向基礎 URL 發送請求

請在以下基礎 URL 後方接續端點路徑,發送請求。

每個帳號只有 1 組 API 金鑰。變更金鑰後,舊金鑰會立即失效。請妥善保管金鑰,避免被第三方得知。

基礎 URL

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

請求範例

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

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

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

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

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

echo $response;

回應格式與錯誤

所有回應皆以下列封裝格式回傳。

成功時

{ "data": ... }

錯誤時

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

狀態碼

狀態意義
401API 金鑰缺漏、不正確或已失效
403沒有此操作的權限(以低於 Pro 方案之帳號的 API 金鑰呼叫需要 Pro 方案以上的操作,或團隊員工取得團隊的 Token 使用紀錄等情況)
404資源不存在(包含沒有存取權限的情況)
405此路徑不能使用的 HTTP 方法
409在目前的狀態下無法執行此操作(刪除自動化正在運作的內容、正在處理使用相同 Idempotency-Key 的請求等)。原因請以 error.code 判斷
422參數不正確,或為無法受理的內容。為 validation_error 時,error.details 會包含各參數的原因
429已超過速率限制
500發生未預期的錯誤
503無法開始處理(開始執行自動化失敗等)。請稍後再試

共通規格

可取得、操作的範圍

可取得、操作的範圍,與 API 金鑰持有者在畫面上可看到的範圍相同。除了自己的專案之外,在 Team 方案中,團隊的擁有者與管理員可取得、操作團隊的所有專案,員工則可取得、操作已被授予權限的專案。範圍外的資源與不存在時相同,會回傳 404。

已刪除的資料

已刪除的專案、概念、標題、內容與素材,包含在完全清除前的期間,皆不會回傳。刪除標題或概念後,其下的內容也不會回傳。

分頁

清單以 page(從 1 開始)與 per_page(1~100,預設 20)指定要取得的範圍。meta 中會包含總筆數(total)、目前頁數(current_page)、每頁筆數(per_page)與最後一頁(last_page)。

日期時間

回應中的日期時間一律為 UTC 的 ISO 8601 格式(例:2026-10-21T09:30:00Z)。參數 from / to 可接受日期(2026-10-21)、日期時間(2026-10-21T09:30:00)以及含時差的日期時間(2026-10-21T18:30:00+09:00),未含時差者視為 UTC。from 包含該時刻;若 to 只指定日期,則包含到當天結束(23:59:59)為止。

ID

資源以 project_unique、variation_unique 這類英數字的公開 ID 指定。ID 不會改變。

檔案 URL

圖片、影片與音訊的 URL 以 {url, expires_at} 的形式回傳。非公開的檔案為簽章 URL,超過 expires_at(自發行起 1 小時)後即無法使用。若要繼續使用,請在期限內下載並儲存,或重新呼叫 API 取得新的 URL。設為公開的檔案為無期限的 URL,expires_at 為 null。

值的類型

status、platform 這類的值,會以本頁所列的英文小寫字串回傳。日後隨著功能新增,值可能增加,因此請讓程式在收到未知的值時也不會中斷處理。

金額

金額為貨幣最小單位的整數(USD 為美分,JPY 為日圓)。貨幣會以 ISO 4217 的小寫代碼(usd、jpy 等)填入 currency。

寫入操作(Pro 方案)

使用 GET 以外的方法,可進行新增標題、刪除內容、開始自動化、核准貼文、註冊 Webhook 等操作。這些操作與在畫面上進行相同操作時的處理相同,並適用相同的規則。寫入操作僅限 API 金鑰持有者為 Pro 方案以上時可使用,低於 Pro 方案時會回傳 403 plan_required。團隊成員在團隊擁有者不再是 Team 方案時,會回傳 403 team_plan_lost。不過,停止自動化、Webhook 的清單與刪除、貼文確認的清單,不論方案皆可使用(即使變更方案後,仍可停止運作中的自動化與通知)。建立時回傳 201,其他情況回傳 200。

Idempotency-Key

為了在連線中斷、無法收到回應時能安全地重複同一項操作,部分寫入操作可接受 Idempotency-Key 標頭(接受此標頭的端點會列在參數表中。開始自動化時為必填)。值請使用每次操作各自產生的唯一字串(UUID 等,1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容(方法、路徑、本文)時,不會重新執行操作,而是直接回傳最初的回應,並附上 Idempotent-Replayed: true 標頭。金鑰對每位 API 金鑰持有者有效 24 小時。以相同的金鑰傳送不同內容時會回傳 422 idempotency_key_reused,若最初的請求仍在處理中則回傳 409 idempotency_request_in_progress。5xx 的回應不會被儲存,因此可用相同的金鑰重試。在必填的端點上,缺少標頭時會回傳 422 idempotency_key_required,格式不正確時會回傳 422 idempotency_key_invalid。

速率限制

每組 API 金鑰每分鐘最多 120 次請求(寫入操作另外還有下方的寫入速率限制)。可從回應標頭的 X-RateLimit-Limit(上限)與 X-RateLimit-Remaining(剩餘)確認。超過時會回傳 429,Retry-After 會填入可重試前的秒數。

寫入操作的速率限制

寫入操作(GET 以外的方法)除了每分鐘 120 次請求的額度之外,每組 API 金鑰每分鐘最多 30 次請求。超過時會回傳 429 rate_limited,Retry-After 會填入可重試前的秒數。寫入操作回應標頭的 X-RateLimit-Limit 與 X-RateLimit-Remaining,是兩個額度中剩餘較少者的值。

錯誤代碼

發生錯誤時,error.code 會填入錯誤類型,error.message 會填入英文說明。任何端點都可能回傳的代碼如下。各端點專屬的代碼(title_limit_reached 等)列於各端點的錯誤表中。在程式中請以 error.code 判斷。

代碼意義
unauthorizedAPI 金鑰缺漏、不正確或已失效(401)
forbidden沒有權限(403)
plan_required需要 Pro 方案以上的操作(403)
team_plan_lost團隊擁有者已不再是 Team 方案,因此團隊成員無法進行寫入(403)
not_found資源不存在,或在可取得範圍之外(404)
method_not_allowed此路徑不能使用的 HTTP 方法(405)
conflict在目前的狀態下無法執行此操作(409)
idempotency_request_in_progress使用相同 Idempotency-Key 的請求仍在處理中(409)
validation_error參數不正確(422)
idempotency_key_required在必須有 Idempotency-Key 標頭的端點上缺少該標頭(422)
idempotency_key_invalidIdempotency-Key 不是 1~255 個可顯示的 ASCII 字元(422)
idempotency_key_reused將相同的 Idempotency-Key 用於內容不同的請求(422)
rate_limited超過速率限制(429)
internal_error發生未預期的錯誤(500)

422 範例

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

帳號

API 金鑰持有者的帳號資訊。可取得方案、Token 餘額、使用量、儲存空間、付款與邀請計畫的狀況。

GET › /me

帳號資訊

取得 API 金鑰持有者的個人資料、方案、各方案的上限,以及所屬團隊。

回應欄位
欄位型別說明
user_unique string 使用者的 ID
nickname string | null 暱稱
email string 登入使用的電子郵件地址
plan string 方案。free / vault / plus / pro / team
limits object 目前方案的上限。null 表示無限制
limits.projects integer | null 可建立的專案數
limits.moviemode_variations_per_title integer | null 每 1 個影片標題的內容數
limits.blogmode_variations_per_title integer | null 每 1 個部落格標題的內容數
limits.carouselmode_variations_per_title integer | null 每 1 個輪播標題的內容數
limits.postmode_variations_per_concept integer | null 每 1 個貼文概念的內容數
limits.team boolean 是否可使用團隊功能
limits.script_duration_max integer 影片腳本的最長長度(秒)
limits.reading_time_max integer 部落格文章的最長閱讀時間(分鐘)
limits.reading_time_max_fulltext integer 朗讀部落格文章全文時的最長閱讀時間(分鐘)
limits.slide_count_max integer 輪播的最大投影片張數
limits.cta_enabled boolean 是否可使用 CTA(引導行動的最後一張投影片等)
limits.thread_enabled boolean 貼文是否可使用串文與附圖貼文
limits.schedule_title_variation_max integer 建立預約時,1 次可指定的標題與內容的數量
limits.schedule_variation_create_max integer 建立預約時,1 次可建立的內容數
language string | null 畫面的顯示語言
timezone string 已設定的時區(IANA 格式。例:Asia/Tokyo)
team object | null 所屬的團隊。不是 Team 方案,或未加入團隊時為 null
team.team_unique string 團隊的 ID
team.role string 在團隊中的角色。owner(擁有者)/ admin(管理員)/ staff(員工)
created_at string 帳號的建立時間
請求範例
curl "https://stepeee.com/public-api/v1/me" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

訂閱

取得目前訂閱方案的狀態、計費期間、預定解約,以及已預約的方案變更。團隊成員會取得團隊擁有者的訂閱內容。

回應欄位
欄位型別說明
plan string 方案。free / vault / plus / pro / team
status string 訂閱的狀態。active(有效)/ past_due(付款逾期中)/ trialing(試用中)/ none(沒有付費方案的訂閱)
managed_by_team boolean 是否透過團隊擁有者的訂閱使用。為 true 時,期間與解約的欄位為擁有者的訂閱值
current_period_start string | null 目前計費期間的開始時間
current_period_end string | null 目前計費期間的結束時間(下次的計費時間)
cancel_at_period_end boolean 是否預定在目前計費期間結束時解約
cancel_at string | null 解約的時間
canceled_at string | null 辦理解約手續的時間
scheduled_change object | null 已預約的方案變更(沒有時為 null)
scheduled_change.plan string 變更後的方案
scheduled_change.effective_at string | null 變更生效的時間
請求範例
curl "https://stepeee.com/public-api/v1/me/subscription" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "plan": "pro",
    "status": "active",
    "managed_by_team": false,
    "current_period_start": "2026-10-01T00:00:00Z",
    "current_period_end": "2026-11-01T00:00:00Z",
    "cancel_at_period_end": false,
    "cancel_at": null,
    "canceled_at": null,
    "scheduled_change": {
      "plan": "plus",
      "effective_at": "2026-11-01T00:00:00Z"
    }
  }
}
GET › /me/tokens

Token 餘額

取得可使用的 Token 餘額。在團隊中,會回傳團隊共用的餘額,以及分配給自己的使用額度。

回應欄位
欄位型別說明
balance integer 餘額
reserved integer 為執行中的處理所保留的量
available integer 目前可使用的量(餘額扣除保留中的量)
wallet string personal(自己的餘額)/ team(團隊共用的餘額)
team_quota object | null 團隊擁有者為自己設定的使用額度。使用個人餘額時與團隊擁有者為 null
team_quota.unlimited boolean 使用額度是否為無限制
team_quota.view_only boolean 是否僅能檢視、無法使用 Token
team_quota.budget integer | null 各期間的上限(null 表示無限制,0 表示僅能檢視)
team_quota.used integer 目前期間內已使用的量
team_quota.available integer | null 目前期間內剩餘的量(無限制時為 null)
team_quota.period string | null 上限的期間。day / week / month(沒有上限時為 null)
team_quota.next_reset_at string | null 使用量重設的時間
auto_purchase.enabled boolean 餘額變少時的自動購買是否啟用
auto_purchase.plan string | null 自動購買的 Token 種類(例:token_100)。停用時為 null
auto_purchase.threshold integer 餘額低於此值時會自動購買
請求範例
curl "https://stepeee.com/public-api/v1/me/tokens" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "balance": 90000,
    "reserved": 1200,
    "available": 88800,
    "wallet": "team",
    "team_quota": {
      "unlimited": false,
      "view_only": false,
      "budget": 10000,
      "used": 2500,
      "available": 7500,
      "period": "week",
      "next_reset_at": "2026-10-26T00:00:00Z"
    },
    "auto_purchase": {
      "enabled": true,
      "plan": "token_100",
      "threshold": 5000
    }
  }
}
GET › /me/token-usage

Token 使用量

依日或依月取得 Token 的使用量與增加量。使用量以每 1 日為單位彙整,前一天的資料約在 UTC 2:45 反映(不含當天的使用量)。因購買或贈送而增加的部分會立即反映。

參數
名稱 位置 型別 必填 預設值 說明
from 查詢 string (YYYY-MM-DD) 選填 — 期間的開始日(UTC)。省略時為 to 的 29 天前
to 查詢 string (YYYY-MM-DD) 選填 — 期間的結束日(UTC,含當天)。省略時為今天。期間最長 366 天
group_by 查詢 string 選填 day 彙整的單位。day(依日)/ month(依月)
回應欄位
欄位型別說明
data[].period string 期間。依日為 YYYY-MM-DD,依月為 YYYY-MM。沒有使用也沒有增加的期間不包含在內
data[].consumed integer 使用量
data[].added integer 增加量(扣除取消退款等的減少後的值)
data[].consumed_by_type object 各使用類型的明細(text / image / video / audio 等)
data[].added_by_type object 各增加類型的明細。purchase(購買)/ bonus(贈送)/ refund(退款)/ referral_revoke(撤銷邀請優惠。為負數)
meta.from string 彙整期間的開始日
meta.to string 彙整期間的結束日
meta.group_by string 彙整的單位
meta.total_consumed integer 期間內使用量的合計
meta.total_added integer 期間內增加量的合計
錯誤
狀態代碼發生的條件
403 forbidden 使用團隊 Token 的員工(團隊的 Token 使用紀錄僅有擁有者與管理員可取得)
422 validation_error 期間超過 366 天、to 早於 from、無法解讀為日期,或 group_by 不是 day / month
請求範例
curl "https://stepeee.com/public-api/v1/me/token-usage?from=2026-10-01&to=2026-10-20&group_by=day" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "period": "2026-10-18",
      "consumed": 450,
      "added": 0,
      "consumed_by_type": { "image": 300, "text": 150 },
      "added_by_type": {}
    },
    {
      "period": "2026-10-20",
      "consumed": 1000,
      "added": 4800,
      "consumed_by_type": { "video": 1000 },
      "added_by_type": { "purchase": 5000, "referral_revoke": -200 }
    }
  ],
  "meta": {
    "from": "2026-10-01",
    "to": "2026-10-20",
    "group_by": "day",
    "total_consumed": 1450,
    "total_added": 4800
  }
}
GET › /me/storage

儲存空間

取得儲存空間的使用量與容量,以及各檔案類型的明細。在團隊中,會回傳團隊共用的儲存空間。

回應欄位
欄位型別說明
used_bytes integer 使用量(位元組)。與 by_type 的合計值相同
capacity_bytes integer | null 容量(位元組)。null 表示無限制,0 表示沒有儲存空間(Free 方案)
by_type[].file_type string | null 檔案類型。material(素材)/ image(圖片)/ video(影片)/ bgm / voice(音訊)/ movie(完成的影片)
by_type[].bytes integer 該類型的使用量(位元組)
by_type[].files integer 該類型的檔案數
請求範例
curl "https://stepeee.com/public-api/v1/me/storage" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "used_bytes": 734003200,
    "capacity_bytes": null,
    "by_type": [
      { "file_type": "image", "bytes": 52428800, "files": 120 },
      { "file_type": "movie", "bytes": 629145600, "files": 8 },
      { "file_type": "voice", "bytes": 52428800, "files": 15 }
    ]
  }
}
GET › /me/payments

付款紀錄

依由新到舊的順序取得方案費用與 Token 購買等付款紀錄。可用於匯入會計系統。

參數
名稱 位置 型別 必填 預設值 說明
status 查詢 string 選填 — 以付款狀態篩選(以逗號分隔)。succeeded / refunded / partially_refunded。省略時為全部
type 查詢 string 選填 — 以付款種類篩選(以逗號分隔)。值與 data[].type 相同
from 查詢 string 選填 — 只回傳建立時間在此時間之後(含)的項目
to 查詢 string 選填 — 只回傳建立時間在此時間之前(含)的項目
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].payment_unique string 付款的 ID
data[].type string 種類。token_first_time(首次購買 Token)/ token_regular(購買 Token)/ subscription_vault、subscription_plus、subscription_pro、subscription_team(各方案的費用)
data[].description string 付款的名稱(英文)
data[].status string 狀態。succeeded(已付款)/ refunded(全額退款)/ partially_refunded(部分退款)
data[].currency string 貨幣(ISO 4217 的小寫)
data[].amount_subtotal integer 未稅金額(最小單位)
data[].tax_amount integer 稅額(最小單位)
data[].amount_total integer 含稅金額(最小單位)
data[].line_items[] object 明細。type(base_plan:方案費用 / storage_addon:追加儲存空間 / extra_member:追加成員)、quantity(數量)、amount(金額)、description(說明。沒有時為 null)
data[].receipt_url string | null 收據的 URL(Stripe)。自發行起經過數日後,可能會無法開啟
data[].invoice_pdf_url string | null 發票 PDF 的 URL(Stripe)。自發行起經過數日後,可能會無法開啟
data[].created_at string 付款時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/me/payments?status=succeeded&per_page=10" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

邀請計畫

取得邀請碼,以及邀請的成果與獎勵的狀況。

回應欄位
欄位型別說明
code string | null 邀請碼(尚未有時為 null)
referral_url string | null 邀請用的 URL(沒有邀請碼時為 null)
is_active boolean 邀請碼是否有效
reward_type string | null 獎勵的領取方式。cash(現金)/ token(Token)。沒有邀請碼時為 null
clicks integer 邀請 URL 被開啟的次數
signups integer 透過邀請註冊的人數
conversions integer 透過邀請訂閱付費方案的人數
earned object 至今已確定的獎勵 {amount(最小單位), currency}
earned_tokens integer 至今已領取的 Token
pending object 等待確定的獎勵 {amount, currency}
available object 可申請領取的獎勵 {amount, currency}
請求範例
curl "https://stepeee.com/public-api/v1/me/referral" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "code": "REFk5m2j8x9ab",
    "referral_url": "https://stepeee.com?ref=REFk5m2j8x9ab",
    "is_active": true,
    "reward_type": "cash",
    "clicks": 12,
    "signups": 4,
    "conversions": 2,
    "earned": { "amount": 1300, "currency": "usd" },
    "earned_tokens": 0,
    "pending": { "amount": 300, "currency": "usd" },
    "available": { "amount": 800, "currency": "usd" }
  }
}

專案

取得專案,以及其中概念與標題的結構。

GET › /projects

專案清單

依由新到舊的順序取得可取得的專案。

參數
名稱 位置 型別 必填 預設值 說明
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].project_unique string 專案的 ID
data[].project_name string 專案名稱
data[].description string | null 專案的說明
data[].access_level string 自己的權限。owner(自己的專案)/ admin(以團隊擁有者、管理員身分擁有全部權限)/ edit(在團隊中被授予編輯權限)
data[].team object | null 團隊專案時為團隊,僅自己的專案時為 null
data[].team.team_unique string 團隊的 ID
data[].is_readonly boolean 是否因方案降級而超過上限,成為唯讀(升級後即可解除)
data[].readonly_since string | null 成為唯讀的時間
data[].created_at string 建立時間
data[].updated_at string 更新時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/projects" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "project_unique": "a1b2c3d4e5",
      "project_name": "Sample Project",
      "description": "Sample project description",
      "access_level": "owner",
      "team": null,
      "is_readonly": false,
      "readonly_since": null,
      "created_at": "2026-01-10T09:00:00Z",
      "updated_at": "2026-10-01T12:00:00Z"
    }
  ],
  "meta": { "total": 1, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}

專案詳情

取得 1 個專案的詳細資訊,以及各模式的概念數、標題數與各進度的內容數。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
回應欄位
欄位型別說明
project_unique string 專案的 ID
project_name string 專案名稱
description string | null 專案的說明
access_level string 自己的權限。owner(自己的專案)/ admin(以團隊擁有者、管理員身分擁有全部權限)/ edit(在團隊中被授予編輯權限)
team object | null 團隊專案時為團隊,僅自己的專案時為 null
team.team_unique string 團隊的 ID
is_readonly boolean 是否因方案降級而超過上限,成為唯讀(升級後即可解除)
readonly_since string | null 成為唯讀的時間
created_at string 建立時間
updated_at string 更新時間
scope string 目標地區。global(未指定)/ region(針對特定國家)
scope_region string | null 目標國家(ISO 3166-1 alpha-2。例:JP)。global 時為 null
counts.{mode}.concepts integer 各模式(moviemode / blogmode / carouselmode / postmode)的概念數
counts.{mode}.titles integer | null 標題數(postmode 沒有標題,因此為 null)
counts.{mode}.contents object 內容數 {total(合計), not_started(尚未開始), in_progress(製作中), complete(完成)}
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "project_unique": "a1b2c3d4e5",
    "project_name": "Sample Project",
    "description": "Sample project description",
    "access_level": "owner",
    "team": null,
    "is_readonly": false,
    "readonly_since": null,
    "created_at": "2026-01-10T09:00:00Z",
    "updated_at": "2026-10-01T12:00:00Z",
    "scope": "region",
    "scope_region": "JP",
    "counts": {
      "moviemode": {
        "concepts": 2,
        "titles": 5,
        "contents": { "total": 8, "not_started": 1, "in_progress": 3, "complete": 4 }
      },
      "blogmode": {
        "concepts": 1,
        "titles": 3,
        "contents": { "total": 3, "not_started": 0, "in_progress": 1, "complete": 2 }
      },
      "carouselmode": {
        "concepts": 0,
        "titles": 0,
        "contents": { "total": 0, "not_started": 0, "in_progress": 0, "complete": 0 }
      },
      "postmode": {
        "concepts": 1,
        "titles": null,
        "contents": { "total": 1, "not_started": 0, "in_progress": 1, "complete": 0 }
      }
    }
  }
}
GET › /projects/{project_unique}/concepts

概念清單

橫跨所有模式,依由新到舊的順序取得專案內的概念。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
mode 查詢 string 選填 — 以模式篩選。可用逗號分隔,同時指定多個 moviemode(影片)、blogmode(部落格)、carouselmode(輪播)、postmode(貼文)。省略時為全部
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].concept_unique string 概念的 ID
data[].mode string moviemode(影片)/ blogmode(部落格)/ carouselmode(輪播)/ postmode(貼文)
data[].concept_name string 概念名稱
data[].title_count integer | null 標題數(postmode 為 null)
data[].content_count integer 內容數
data[].created_at string 建立時間
data[].updated_at string 更新時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts?mode=moviemode,postmode" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "concept_unique": "pC7d2KqLx01m",
      "mode": "postmode",
      "concept_name": "SaaS growth tips",
      "title_count": null,
      "content_count": 1,
      "created_at": "2026-10-02T09:00:00Z",
      "updated_at": "2026-10-02T09:00:00Z"
    },
    {
      "concept_unique": "mC4f9TnB2q",
      "mode": "moviemode",
      "concept_name": "Cat facts",
      "title_count": 3,
      "content_count": 5,
      "created_at": "2026-09-20T03:00:00Z",
      "updated_at": "2026-09-28T03:00:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}
GET › /projects/{project_unique}/concepts/{concept_unique}

概念詳情

取得 1 個概念的詳細資訊。影片、部落格、輪播包含標題清單,貼文(postmode)則包含發文者的人物設定與發文規則。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
concept_unique 路徑 string 必填 — 概念的 ID
回應欄位
欄位型別說明
concept_unique / mode / concept_name / title_count / content_count / created_at / updated_at — 與概念清單相同
description string | null 概念的說明
scope string 目標地區。global(未指定)/ region(針對特定國家)
scope_region string | null 目標國家(ISO 3166-1 alpha-2。例:JP)。global 時為 null
default_template_unique string | null 用於新內容的設定範本(範本清單中的 template_unique)。未設定或為 postmode 時為 null
titles array | null 標題清單(由新到舊)。postmode 為 null
titles[].title_unique string 標題的 ID
titles[].title_name string 標題
titles[].article_type string | null 類型。moviemode 為 standard(一般)/ news(新聞),blogmode 為 standard / news / promotion(商品介紹)。carouselmode 為 null
titles[].content_count integer 該標題的內容數
persona object | null 發文者的人物設定(僅限 postmode。尚未建立時為 null)
persona.persona_unique string 人物設定的 ID
persona.gender string 性別。male / female / undisclosed(不公開)
persona.generation string 世代。10s / 20s / 30s / 40s / 50s / 60s_plus
persona.region string | null 文化圈的國家代碼
persona.keywords object 人物設定的關鍵字。occupation(職業)、industry(產業)、residence(居住地)、workstyle(工作方式)、household(家庭組成)、personality(個性)為字串,interest(興趣)、expertise(專長)為字串陣列。只會包含已設定的項目
persona.description string 人物設定的文字
persona.casual_description string | null 用於日常貼文的人物設定文字(沒有時為 null)
persona.taboos array 貼文中要避免的事項
persona.timezone_mode string 時區的決定方式。auto(由地區決定。沒有地區時由貼文的語言決定)/ specify(指定的時區)
persona.timezone string | null 用於發文排程的時區(IANA 格式)。發文規則尚未建立而無法決定時為 null
rule object | null 發文規則(僅限 postmode。尚未建立時為 null)
rule.rule_unique string 發文規則的 ID
rule.language string 貼文的語言
rule.formality string 說話方式。very_casual(隨性口吻)/ casual(輕鬆)/ normal(一般)/ polite(有禮貌)/ honorific(敬語)
rule.emoji string 表情符號。never(不使用)/ sometimes(偶爾使用)/ often(經常使用)/ always(總是使用)
rule.line_break string 換行的多寡。none(無)/ moderate(適中)/ frequent(較多)
rule.post_type_share object 貼文類型的配比(%)。assertion(主張)/ knowhow(訣竅)/ experience(經驗)/ casual(日常)
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
404 not_found 概念不存在(Concept not found.)
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/concepts/pC7d2KqLx01m" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

內容

橫跨各模式取得影片、部落格、輪播、貼文的內容。詳情的 package 中包含會發布到各 SNS 或網站的內容(本文、圖片、影片、說明文字),因此可將在 Stepeee 製作的內容匯入自己的系統。

GET › /projects/{project_unique}/contents

內容清單

橫跨各模式取得專案內的內容(影片、部落格、輪播、貼文)。可依進度、發布語言、是否已發布等條件篩選。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
mode 查詢 string 選填 — 以模式篩選。可用逗號分隔,同時指定多個 moviemode(影片)、blogmode(部落格)、carouselmode(輪播)、postmode(貼文)。省略時為全部
status 查詢 string 選填 — 以進度篩選。not_started(尚未開始)/ in_progress(製作中)/ complete(完成)
concept_unique 查詢 string 選填 — 只回傳此概念的內容
title_unique 查詢 string 選填 — 只回傳此標題的內容(postmode 沒有標題,因此不包含在內)
language 查詢 string 選填 — 以發布語言篩選(例:ja、en)
published 查詢 string 選填 — true 只回傳已發布的內容,false 只回傳尚未發布的內容
from 查詢 string 選填 — 只回傳建立時間在此時間之後(含)的項目
to 查詢 string 選填 — 只回傳建立時間在此時間之前(含)的項目
sort 查詢 string 選填 -created_at 排序。created_at / -created_at / updated_at / -updated_at(- 表示由新到舊)
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].mode string moviemode(影片)/ blogmode(部落格)/ carouselmode(輪播)/ postmode(貼文)
data[].variation_unique string 內容的 ID
data[].variation_no integer 在標題(postmode 為概念)中的編號
data[].title string 標題(postmode 為概念名稱)
data[].concept object 所屬概念 {concept_unique, concept_name}
data[].title_unique string | null 所屬標題的 ID(postmode 為 null)
data[].language string | null 發布語言(觀眾、讀者看到的語言)。未設定時為 null
data[].status string 進度。not_started(尚未開始)/ in_progress(製作中)/ complete(已設為完成)
data[].progress.step_process integer 已完成的 Step(0~3)
data[].progress.is_complete boolean 是否已設為完成
data[].is_readonly boolean 是否因方案降級而成為唯讀
data[].confirmed_at string | null 將內容標示為已確認的時間(postmode 與尚未確認時為 null)
data[].published_platforms array 已發布(success / partial_success)的發布目的地
data[].created_at string 建立時間
data[].updated_at string 更新時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents?mode=blogmode&status=complete&published=false" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

內容詳情

取得 1 筆內容的詳細資訊。package 中包含實際會發布到各發布目的地的內容(與從 Stepeee 發布時相同)。貼文(postmode)的貼文清單,請以排程取得。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
variation_unique 路徑 string 必填 — 內容的 ID
回應欄位
欄位型別說明
mode / variation_unique / … / updated_at — 與內容清單相同
publish[] object 各發布目的地的發布結果
publish[].platform string 發布目的地。youtube / tiktok / instagram / x / wordpress / webhook
publish[].status string 發布結果。success(已發布)/ failed(失敗)/ scheduled(已在發布目的地預約)/ processing(處理中)/ partial_success(發布成功,但設定縮圖等附帶處理失敗)/ reviewing(發布成功,正等待發布目的地的審核,URL 尚未確定)
publish[].post_url string | null 貼文的 URL(尚未確定時為 null)
publish[].posted_at string | null 發布時間(尚未發布時為 null)
content object 各模式的生成資料。blogmode:body_html(文章本文)/ carouselmode:scenario(投影片的結構。resolved_header、resolved_footer、resolved_texts 為發布語言的文字)/ moviemode:movie_unique、download_url、thumbnail_url(在 Step3 選擇的影片。URL 自發行起 1 小時內有效)/ postmode:posts(post_text、post_type)
package object | null 會發布的內容。postmode 為 null
package.video (moviemode) object | null 完成的影片 {file: {url, expires_at}, thumbnail: {url, expires_at} | null, duration_ms, width, height, size_bytes}。尚未有時為 null
package.youtube.title (moviemode) string | null YouTube 的標題
package.youtube.description (moviemode) string | null YouTube 的說明(包含固定文字)
package.youtube.thumbnail (moviemode) object | null YouTube 的縮圖 {url, expires_at, width, height}。直式影片(Shorts)不設定縮圖,因此為 null
package.tiktok.caption (moviemode) string | null TikTok 的說明文字
package.instagram.caption (moviemode / carouselmode) string | null Instagram 的說明文字(包含固定文字)
package.instagram.cover (moviemode) object | null Instagram 的封面圖片 {url, expires_at, width, height}
package.x.posts (moviemode / blogmode / carouselmode) array X 的貼文內容。2 則以上會依序作為串文發布
package.title (blogmode) string | null 文章標題
package.meta_description (blogmode) string | null meta description
package.body_html (blogmode) string | null 文章本文的 HTML。圖片位於 img 標籤的 src,商品介紹的聯盟行銷代碼與口碑評價也已替換完成。可直接刊登在網站上
package.images (blogmode) array 本文的圖片(依出現順序){url, expires_at, width, height}
package.cover_image (blogmode) object | null 封面圖片 {url, expires_at, width, height}
package.audio (blogmode) object | null 文章的音訊 {url, expires_at, duration_ms}
package.slides[] (carouselmode) object 投影片圖片(依編號順序){no, image: {url, expires_at, width, height}}
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
404 not_found 內容不存在(Content not found.)
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/bmA1b2C3d4E5" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

發文排程

依預定時間的順序,取得貼文(postmode)內容中已預定、已生成與已發布的貼文。也包含自動化的狀況。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
variation_unique 路徑 string 必填 — 內容的 ID
from 查詢 string 選填 — 期間的開始(預定時間)。省略時為從現在起 7 天前(只指定 to 時為 to 的 37 天前)
to 查詢 string 選填 — 期間的結束(預定時間)。省略時為從現在起 30 天後(只指定 from 時為 from 的 37 天後)。期間最長 92 天
回應欄位
欄位型別說明
automation.enabled boolean 自動化是否啟用
automation.is_executing boolean 自動建立貼文的處理是否正在運作(即使停止自動化,只要仍有建立到一半的貼文,就為 true)
automation.week_limit integer | null 自動建立預定的週數上限(null 表示無限制)
automation.week_count integer 至今已建立預定的週數
automation.next_refill_at string | null 下次建立預定的時間(自動化停用時為 null)
automation.timezone string | null 用於發文排程的時區
items[].schedule_unique string 預定的 ID
items[].post_unique string | null 貼文的 ID(尚未建立本文時為 null)
items[].scheduled_at string 預定發布的時間
items[].scheduled_at_local string 預定時間(timezone 的當地時間。YYYY-MM-DDTHH:MM:SS)
items[].timezone string 建立預定時的時區
items[].status string 狀態。pending(等待建立本文)/ generating(建立中)/ generated(已建立,等待發布)/ awaiting_image(等待建立圖片)/ posting(發布中)/ posted(已發布)/ failed(失敗)/ discarded(已取消)
items[].confirm_state string 發布前的確認。none(不確認)/ awaiting(核准前不發布)/ notice(僅通知後就發布)/ confirmed(已核准)
items[].created_via string 建立方式。auto(自動化)/ manual(手動)
items[].post_type string 貼文類型。assertion(主張)/ knowhow(訣竅)/ experience(經驗)/ casual(日常)
items[].text string | null 貼文的本文(尚未建立時為 null)
items[].thread[] object 串文的後續貼文(依順序){text, post_url, posted_at, image}
items[].image object | null 附加的圖片 {url, expires_at}(沒有時為 null)
items[].post_url string | null 貼文的 URL(尚未確定時為 null)
items[].posted_at string | null 發布時間(尚未發布時為 null)
items[].fail_reason string | null 失敗原因。token_expired(X 的連結已失效)/ api_error(X 的錯誤)/ not_found(沒有貼文的對象)/ insufficient_token(Token 不足)/ no_x_account(尚未設定 X 帳號)/ node_ws_timeout(建立本文時逾時)/ unconfirmed(未經核准)
meta.from / meta.to string 已取得的期間
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
404 not_found 不是貼文(postmode)的內容,或內容不存在(Schedule not found.)
422 validation_error 期間超過 92 天、to 早於 from,或無法解讀為日期時間
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/contents/pmV7d2KqLx01/schedule?from=2026-10-20&to=2026-11-20" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

發布結果・連結目的地

取得發布到 SNS、WordPress、Webhook 的結果,以及與專案連結之發布目的地的狀態。可用於偵測連結失效。

GET › /projects/{project_unique}/publications

發布結果清單

橫跨所有模式與發布目的地,依由新到舊的順序取得專案的發布結果。貼文(postmode)包含已發布與發布失敗的貼文(串文的第一則貼文)。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
mode 查詢 string 選填 — 以模式篩選。可用逗號分隔,同時指定多個 moviemode(影片)、blogmode(部落格)、carouselmode(輪播)、postmode(貼文)。省略時為全部
platform 查詢 string 選填 — 以發布目的地篩選(以逗號分隔)。youtube / tiktok / instagram / x / wordpress / webhook
status 查詢 string 選填 — 以發布結果篩選(以逗號分隔)。success / failed / scheduled / processing / partial_success / reviewing
from 查詢 string 選填 — 只回傳發布時間(尚未發布時為記錄時間)在此時間之後(含)的結果
to 查詢 string 選填 — 只回傳發布時間(尚未發布時為記錄時間)在此時間之前(含)的結果
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].publication_unique string 發布結果的 ID
data[].mode string moviemode(影片)/ blogmode(部落格)/ carouselmode(輪播)/ postmode(貼文)
data[].content.variation_unique string 內容的 ID
data[].content.title string | null 標題(postmode 為概念名稱)
data[].platform string 發布目的地。youtube / tiktok / instagram / x / wordpress / webhook
data[].account object | null 發布所用的帳號 {account_unique, name}。已解除連結的帳號,其 name 為 null。postmode 為 null
data[].status string 發布結果。success(已發布)/ failed(失敗)/ scheduled(已在發布目的地預約)/ processing(處理中)/ partial_success(發布成功,但設定縮圖等附帶處理失敗)/ reviewing(發布成功,正等待發布目的地的審核,URL 尚未確定)
data[].post_url string | null 貼文的 URL(尚未確定時為 null)
data[].error_code string | null 失敗原因的代碼(依發布目的地與模式而異)
data[].is_automation boolean 是否由自動化發布
data[].posted_at string | null 發布時間(尚未發布時為 null)
data[].created_at string 建立時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/publications?platform=x,youtube&status=failed" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

連結目的地清單

取得與專案連結的發布目的地(SNS 帳號、WordPress、Webhook)及其狀態。status 變為 expired 或 connection_error 時,需要重新連結。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
回應欄位
欄位型別說明
data[].account_unique string 連結目的地的 ID
data[].platform string 發布目的地。youtube / tiktok / instagram / x / wordpress / webhook
data[].name string 顯示名稱。SNS 為帳號名稱,WordPress 為網站名稱,Webhook 為傳送目的地 URL 的網域(形式為 https://example.com/…,不含路徑)
data[].image_url string | null 帳號圖示圖片的 URL(僅限 SNS)
data[].status string 狀態。active(可使用)/ expired(連結已逾期,需要重新連結)/ connection_error(無法連線到 WordPress)
data[].token_expires_at string | null 連結的有效期限(僅限 SNS)
data[].connected_at string | null 連結的時間
data[].last_used_at string | null 最後用於發布的時間(僅限 SNS)
data[].site_url string | null WordPress 的網站 URL(僅限 WordPress)
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
請求範例
curl "https://stepeee.com/public-api/v1/projects/a1b2c3d4e5/accounts" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "account_unique": "Wh9kQ2mN4pRt",
      "platform": "webhook",
      "name": "https://hooks.example.com/…",
      "image_url": null,
      "status": "active",
      "token_expires_at": null,
      "connected_at": "2026-07-01T00:00:00Z",
      "last_used_at": null,
      "site_url": null
    },
    {
      "account_unique": "Wp3xY5zA7bCd",
      "platform": "wordpress",
      "name": "Example Blog",
      "image_url": null,
      "status": "connection_error",
      "token_expires_at": null,
      "connected_at": "2026-08-01T00:00:00Z",
      "last_used_at": null,
      "site_url": "https://blog.example.com"
    },
    {
      "account_unique": "Yt4aB6cD8eFg",
      "platform": "youtube",
      "name": "Channel B",
      "image_url": "https://yt3.ggpht.com/abc.png",
      "status": "expired",
      "token_expires_at": "2026-10-01T00:00:00Z",
      "connected_at": "2026-09-01T00:00:00Z",
      "last_used_at": "2026-09-30T00:00:00Z",
      "site_url": null
    }
  ]
}

自動化

取得影片、部落格、輪播的自動化執行狀況。貼文自動化(貼文模式)的狀況,請以內容的排程取得。

GET › /automations

自動化執行清單

依由新到舊的順序取得影片、部落格、輪播的自動化執行(已預約、執行中、待確認、已結束)。

參數
名稱 位置 型別 必填 預設值 說明
status 查詢 string 選填 — 以狀態篩選(以逗號分隔)。值與 data[].status 相同
mode 查詢 string 選填 — 以模式篩選(以逗號分隔)。moviemode / blogmode / carouselmode
project_unique 查詢 string 選填 — 只回傳此專案的執行
from 查詢 string 選填 — 只回傳建立時間在此時間之後(含)的項目
to 查詢 string 選填 — 只回傳建立時間在此時間之前(含)的項目
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].auto_unique string 自動化執行的 ID
data[].mode string moviemode / blogmode / carouselmode
data[].project object 專案 {project_unique, project_name}
data[].content.variation_unique string 內容的 ID
data[].content.title string | null 標題(postmode 為概念名稱)
data[].run_no integer 該內容的第幾次執行
data[].status string 狀態。pending(等待執行。reserved_at 為未來時間時為預約)/ executing(執行中)/ waiting_confirmation(待確認內容。確認後會繼續執行)/ completed(完成)/ failed(失敗)/ stopped(停止)/ token_shortage(因 Token 不足而結束)
data[].execution_mode string sequential(1 筆 1 筆執行)/ parallel(同時執行)
data[].phases object 各階段的狀態 {setup, step1, step2, step3}。not_started(尚未開始)/ running(執行中,或停下的階段)/ done(已完成。包含略過者,以及在以 completed 結束的 run 中,被排除在自動化範圍之外的步驟)/ error(失敗)
data[].template.setup_template_name string | null 開始時使用的設定範本名稱
data[].template.automation_template_name string | null 開始時使用的自動化範本名稱
data[].reserved_at string | null 預約的執行時間
data[].executed_at string | null 開始執行的時間
data[].completed_at string | null 結束的時間(狀態為 completed / failed / stopped / token_shortage 時)
data[].created_at string 註冊執行的時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/automations?status=executing,waiting_confirmation" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

自動化執行詳情

取得 1 筆自動化執行的詳細資訊,以及各步驟的進度。可用於確認執行中的進度。

參數
名稱 位置 型別 必填 預設值 說明
auto_unique 路徑 string 必填 — 自動化執行的 ID
回應欄位
欄位型別說明
auto_unique / mode / … / created_at — 與自動化執行清單相同
steps[].key string 步驟的名稱(例:step1_1_text)
steps[].phase string 步驟的階段。setup / step1 / step2 / step3
steps[].status string 步驟的狀態。not_run(未執行、非對象、執行中)/ success(成功)/ error(失敗)/ skipped(略過)
steps[].started_at string | null 執行中步驟開始的時間(結束後為 null)
steps[].finished_at string | null 步驟結束的時間
steps[].duration_sec number | null 所花的秒數(success / error 時)
steps[].error_code string | null 失敗原因。internal_error / automation_record_not_found / automation_stopped_by_admin / insufficient_token(Token 不足)/ token_group_blocked(已達團隊使用額度的上限)/ automation_auth_error(發布目的地的驗證錯誤)/ automation_not_found / automation_conflict / automation_rate_limited(發布目的地的次數限制)/ automation_server_error(發布目的地的錯誤)/ automation_network_error(通訊錯誤)/ automation_step_failed。未記錄原因時為 null
accounts[] object 開始時的發布目的地 {platform, account_unique, name}。Webhook 的 name 為 null
stop_requested boolean 是否已下達停止指示
confirmation.requested_at string | null 進入待確認的時間
confirmation.confirmed_at string | null 確認內容的時間(待確認或尚未確認時為 null)
錯誤
狀態代碼發生的條件
404 not_found 自動化不存在,或在可取得範圍之外(Automation not found.)
請求範例
curl "https://stepeee.com/public-api/v1/automations/aB3dE5fG7h" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

素材・範本

取得 MY素材(圖片、影片、BGM),以及設定與自動化的範本。

GET › /materials

素材清單

依由新到舊的順序取得 MY素材(圖片、影片、BGM)。在團隊中,會回傳團隊共用的素材。僅在專案內使用的圖片與製作途中的檔案不包含在內。

參數
名稱 位置 型別 必填 預設值 說明
kind 查詢 string 選填 — 以素材的種類篩選。image(圖片)/ video(影片)/ bgm
type 查詢 string 選填 — 以素材的用途篩選。值與 data[].type 相同。與 kind 一併指定時,只能指定該種類的用途
category_unique 查詢 string 選填 — 只回傳此分類的素材
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].material_unique string 素材的 ID
data[].kind string 種類。image(圖片)/ video(影片)/ bgm
data[].type string 用途。image_element(元素)/ image_vertical(直式)/ image_horizontal(橫式)/ reference_person(參考圖片:人物)/ reference_background(參考圖片:背景)/ reference_layout(參考圖片:版面)/ reference_cta(參考圖片:CTA)/ reference_pet(參考圖片:寵物)/ reference_product(參考圖片:商品、服務)/ image_rulebook(規則手冊)/ image_promotion(推廣)/ video_vertical(直式影片)/ video_horizontal(橫式影片)/ bgm
data[].category object | null 分類 {category_unique, name}(未分類時為 null)
data[].width / data[].height integer | null 寬度與高度(像素)。BGM 與尚未測量時為 null
data[].duration_ms integer | null 長度(毫秒)。圖片為 null
data[].size_bytes integer 檔案大小(位元組)。參照共用素材時可能為 0
data[].file object 檔案本身 {url, expires_at}
data[].thumbnail object | null 縮圖 {url, expires_at}。BGM、元素,以及縮圖建立中時為 null
data[].created_at string 建立時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/materials?kind=image&type=image_vertical" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

素材詳情

取得 1 筆素材。

參數
名稱 位置 型別 必填 預設值 說明
material_unique 路徑 string 必填 — 素材的 ID
回應欄位
欄位型別說明
material_unique string 素材的 ID
kind string 種類。image(圖片)/ video(影片)/ bgm
type string 用途。image_element(元素)/ image_vertical(直式)/ image_horizontal(橫式)/ reference_person(參考圖片:人物)/ reference_background(參考圖片:背景)/ reference_layout(參考圖片:版面)/ reference_cta(參考圖片:CTA)/ reference_pet(參考圖片:寵物)/ reference_product(參考圖片:商品、服務)/ image_rulebook(規則手冊)/ image_promotion(推廣)/ video_vertical(直式影片)/ video_horizontal(橫式影片)/ bgm
category object | null 分類 {category_unique, name}(未分類時為 null)
width / height integer | null 寬度與高度(像素)。BGM 與尚未測量時為 null
duration_ms integer | null 長度(毫秒)。圖片為 null
size_bytes integer 檔案大小(位元組)。參照共用素材時可能為 0
file object 檔案本身 {url, expires_at}
thumbnail object | null 縮圖 {url, expires_at}。BGM、元素,以及縮圖建立中時為 null
created_at string 建立時間
錯誤
狀態代碼發生的條件
404 not_found 素材不存在,或在可取得範圍之外(Material not found.)
請求範例
curl "https://stepeee.com/public-api/v1/materials/aB3dE5fG7hJ9kL1mN3pQ" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "material_unique": "aB3dE5fG7hJ9kL1mN3pQ",
    "kind": "image",
    "type": "image_vertical",
    "category": { "category_unique": "Xy12Ab34Cd", "name": "Product shots" },
    "width": 768,
    "height": 1344,
    "duration_ms": null,
    "size_bytes": 1234567,
    "file": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
    "thumbnail": { "url": "https://...", "expires_at": "2026-10-21T11:00:00Z" },
    "created_at": "2026-10-01T10:00:00Z"
  }
}
GET › /material-categories

素材分類清單

取得素材的分類,以及各分類的素材數量。

參數
名稱 位置 型別 必填 預設值 說明
kind 查詢 string 選填 — 以素材的種類篩選。image(圖片)/ video(影片)/ bgm
type 查詢 string 選填 — 以素材的用途篩選。值與 data[].type 相同。與 kind 一併指定時,只能指定該種類的用途
回應欄位
欄位型別說明
data[].category_unique string 分類的 ID
data[].name string 分類名稱
data[].kind string 種類。image(圖片)/ video(影片)/ bgm
data[].type string 用途。image_element(元素)/ image_vertical(直式)/ image_horizontal(橫式)/ reference_person(參考圖片:人物)/ reference_background(參考圖片:背景)/ reference_layout(參考圖片:版面)/ reference_cta(參考圖片:CTA)/ reference_pet(參考圖片:寵物)/ reference_product(參考圖片:商品、服務)/ image_rulebook(規則手冊)/ image_promotion(推廣)/ video_vertical(直式影片)/ video_horizontal(橫式影片)/ bgm
data[].is_system boolean 是否為 Stepeee 自動建立的分類
data[].material_count integer 分類的素材數
錯誤
狀態代碼發生的條件
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/material-categories?kind=image" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "category_unique": "Bg12Ab34Cd",
      "name": "Lo-fi",
      "kind": "bgm",
      "type": "bgm",
      "is_system": false,
      "material_count": 3
    },
    {
      "category_unique": "Xy12Ab34Cd",
      "name": "Product shots",
      "kind": "image",
      "type": "image_vertical",
      "is_system": false,
      "material_count": 12
    }
  ]
}
GET › /templates

範本清單

依更新時間由新到舊取得設定範本與自動化範本。在團隊中,會回傳團隊共用的範本。

參數
名稱 位置 型別 必填 預設值 說明
mode 查詢 string 選填 — 以模式篩選。moviemode / blogmode / carouselmode / postmode
kind 查詢 string 選填 — 以範本的種類篩選。setup / automation
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].template_unique string 範本的 ID
data[].kind string 種類。setup(彙整製作設定的設定範本)/ automation(決定自動化要執行哪些步驟的自動化範本)
data[].mode string moviemode(影片)/ blogmode(部落格)/ carouselmode(輪播)/ postmode(貼文)
data[].name string 範本名稱
data[].created_at string 建立時間
data[].updated_at string 更新時間
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/templates?kind=setup&mode=moviemode" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "template_unique": "Ab12Cd34Ef",
      "kind": "automation",
      "mode": "carouselmode",
      "name": "Morning carousel",
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-10-05T00:00:00Z"
    },
    {
      "template_unique": "Gh56Ij78Kl",
      "kind": "setup",
      "mode": "moviemode",
      "name": "60-second explainer",
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-10-01T00:00:00Z"
    }
  ],
  "meta": { "total": 2, "current_page": 1, "per_page": 20, "last_page": 1 }
}

標題・內容

為影片、部落格、輪播的概念新增標題,並刪除內容。Pro 方案以上可使用。

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

新增標題

一次為影片、部落格、輪播的概念新增多個標題,並為每個標題建立第一筆內容(與在畫面上手動登錄標題時的處理相同)。同一概念中已有相同名稱的標題,以及在同一請求中第 2 次之後出現的名稱,不會建立,而是放入 skipped。概念的標題最多 100 筆,若新增後會超過 100 筆,則不會建立任何一筆(不建立的同名標題不計入)。因方案的內容數上限而無法建立時,只會建立標題,並將 variation_unique 設為 null。無法設定部落格的推廣與聯盟行銷,會以標準文章建立。在團隊中,所建立之標題與內容的擁有者為團隊擁有者。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
concept_unique 路徑 string 必填 — 概念的 ID(專案中的影片、部落格、輪播概念)
titles 本文 string[] 必填 — 要新增的標題。1~50 筆。每筆去除前後空白後須為 1~500 個字元(只有空白、只有「0」、中間含有換行者不可使用)
language 本文 string 必填 — 要建立之內容的發布語言(ja、en、fr 等語言代碼)
setup_template_unique 本文 string | null 選填 — 要套用之設定範本的 ID(GET /templates 的 template_unique。kind 為 setup,且與概念為相同模式)。省略時使用概念的預設範本(未設定時為標準設定)
Idempotency-Key 標頭 string 選填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
created[] object 已建立的標題(依傳送順序)
created[].title_unique string 標題的 ID
created[].title_name string 標題名稱(已去除前後空白)
created[].variation_unique string | null 所建立之第一筆內容的 ID。因方案的內容數上限而無法建立時為 null
skipped[] object 未建立的標題(依傳送順序)
skipped[].title_name string 標題名稱(已去除前後空白)
skipped[].reason string 未建立的原因。duplicate(同一概念中已有相同名稱的標題,或在同一請求中第 2 次之後出現)
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
403 readonly 專案因方案降級而成為唯讀
404 not_found 專案不存在或在可取得範圍之外,或概念不在該專案內
409 title_limit_reached 新增後概念的標題會超過 100 筆(不會建立任何一筆)。details 中包含 limit(上限)與 total_after_add(新增後的筆數)
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 validation_error 參數不正確
422 mode_not_supported 貼文(貼文模式)或相片的概念
422 template_not_found setup_template_unique 的範本不存在(包含屬於其他模式者)
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
請求範例
curl -X POST "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/concepts/Cx2Yz4Wv6Ut8/titles" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "titles": ["Easy breakfast for beginners", "Meal prep in 5 minutes", "Easy breakfast for beginners"],
  "language": "en",
  "setup_template_unique": "Gh56Ij78Kl"
}'
import requests

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

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

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "created": [
      { "title_unique": "q8Wm2LzR0pXa", "title_name": "Easy breakfast for beginners", "variation_unique": "Hn4kT7sY1cVb" },
      { "title_unique": "Zr5uP9eK3wQd", "title_name": "Meal prep in 5 minutes", "variation_unique": "Jm8oB2fN6xLe" }
    ],
    "skipped": [
      { "title_name": "Easy breakfast for beginners", "reason": "duplicate" }
    ]
  }
}
DELETE › /projects/{project_unique}/contents/{variation_unique}

刪除內容

刪除影片、部落格、輪播的內容(與在畫面上刪除內容時的處理相同)。已刪除的內容會立即從清單與詳情中消失,超過 delete_at(3 天後)後,會連同已生成的圖片、音訊與影片一併完全刪除。同一標題中排在後面的內容,編號會各往前遞補 1。自動化正在執行或已預約的內容無法刪除,請先停止自動化再刪除。標題中僅剩的最後 1 筆,以及貼文(貼文模式)的內容,皆無法刪除。

參數
名稱 位置 型別 必填 預設值 說明
project_unique 路徑 string 必填 — 專案的 ID
variation_unique 路徑 string 必填 — 內容的 ID
回應欄位
欄位型別說明
variation_unique string 已刪除內容的 ID
mode string moviemode(影片)/ blogmode(部落格)/ carouselmode(輪播)
delete_at string 完全刪除的時間
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
403 readonly 內容或專案因方案降級而成為唯讀
404 not_found 專案不存在或在可取得範圍之外、內容不在該專案內,或已刪除
409 automation_running 自動化正在執行或已預約(有尚未結束的自動化)
409 last_variation 標題中僅剩的最後 1 筆
422 mode_not_supported 貼文(貼文模式)的內容
請求範例
curl -X DELETE "https://stepeee.com/public-api/v1/projects/Pq7Rs9Tu1V/contents/Hn4kT7sY1cVb" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "variation_unique": "Hn4kT7sY1cVb",
    "mode": "blogmode",
    "delete_at": "2026-10-24T12:00:00Z"
  }
}

自動化操作

開始、變更預約與停止影片、部落格、輪播的自動化,並核准待確認的自動化。可操作的範圍與以 GET /automations 取得的自動化相同。停止不論方案皆可使用,其他操作需要 Pro 方案以上。

POST › /automations

開始自動化

以自動化範本的設定,開始內容(影片、部落格、輪播)的自動化。指定 reserved_at 時為預約,省略時則立即執行。對象請全部使用同一專案、同一模式的內容。只要有 1 筆內容無法開始,就不會註冊任何項目,並回傳哪些內容因何種原因無法開始。已建立的步驟會略過,從第一個尚未建立的步驟開始執行,自動化範本中設為略過的步驟則不會執行。尚未完成設定的內容,會在開始時確定設定。執行自動化會消耗 Token。開始時不會確認餘額,執行中若不足,則會以 token_shortage 結束。在需要確認內容的設定下,會在中途停在 waiting_confirmation,請以 POST /automations/{auto_unique}/confirm 核准。貼文(貼文模式)的自動發布,是在畫面上依各內容開啟、關閉的另一套機制,無法以此端點開始。

參數
名稱 位置 型別 必填 預設值 說明
variation_uniques 本文 string[] 必填 — 要自動化之內容的 variation_unique。1~50 筆,不可重複
automation_template_unique 本文 string 必填 — 自動化範本的 ID(GET /templates?kind=automation 的 template_unique。須與內容為相同模式)
reserved_at 本文 string 選填 — 執行的時間(未來的時間)。請以含時差的 ISO 8601 指定,未含時差者視為 UTC。省略時會立即執行
Idempotency-Key 標頭 string 必填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。為避免重複開始而為必填。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
data[].auto_unique string 自動化執行的 ID
data[].mode string moviemode / blogmode / carouselmode
data[].project object 專案 {project_unique, project_name}
data[].content.variation_unique string 內容的 ID
data[].content.title string | null 標題(postmode 為概念名稱)
data[].run_no integer 該內容的第幾次執行
data[].status string 狀態。pending(等待執行。reserved_at 為未來時間時為預約)/ executing(執行中)/ waiting_confirmation(待確認內容。確認後會繼續執行)/ completed(完成)/ failed(失敗)/ stopped(停止)/ token_shortage(因 Token 不足而結束)
data[].execution_mode string sequential(1 筆 1 筆執行)/ parallel(同時執行)
data[].phases object 各階段的狀態 {setup, step1, step2, step3}。not_started(尚未開始)/ running(執行中,或停下的階段)/ done(已完成。包含略過者,以及在以 completed 結束的 run 中,被排除在自動化範圍之外的步驟)/ error(失敗)
data[].template.setup_template_name string | null 開始時使用的設定範本名稱
data[].template.automation_template_name string | null 開始時使用的自動化範本名稱
data[].reserved_at string | null 預約的執行時間
data[].executed_at string | null 開始執行的時間
data[].completed_at string | null 結束的時間(狀態為 completed / failed / stopped / token_shortage 時)
data[].created_at string 註冊執行的時間
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
404 content_not_found 有不在可取得範圍內的內容所對應的 variation_unique(包含受理後已預約刪除者。不會註冊任何項目)。details.variation_uniques 中會列出相符者
404 automation_template_not_found 自動化範本不存在
409 contents_not_automatable 有無法開始的內容(不會註冊任何項目)。details.contents 為 {variation_unique, reason} 的陣列。reason 為 automation_active(有尚未結束的自動化)/ content_complete(已完成)/ content_readonly(因方案降級而成為唯讀)/ layout_template_required(輪播,且專案中 1 個版面範本都沒有)
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 validation_error 參數不正確(0 筆或 51 筆以上、重複、reserved_at 為過去時間等)
422 mode_not_supported 包含貼文(貼文模式)的內容。details.variation_uniques 中會列出相符者
422 mixed_modes 混有不同模式的內容
422 mixed_projects 混有不同專案的內容
422 automation_template_mode_mismatch 自動化範本的模式與內容的模式不同
422 idempotency_key_required 缺少 Idempotency-Key 標頭
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
503 automation_dispatch_failed 立即執行的啟動失敗。已註冊的自動化會變為 failed。以相同的 Idempotency-Key 重送時,會重新註冊並開始
請求範例
curl -X POST "https://stepeee.com/public-api/v1/automations" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "variation_uniques": ["Ab3dEf6hIj9k", "Lm2nOp5qRs8t"],
  "automation_template_unique": "Tm7pL2xQ9z",
  "reserved_at": "2030-01-02T12:04:05+09:00"
}'
import requests

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

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

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

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

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

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

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

變更預約時間

變更等待執行(status 為 pending)之自動化的執行時間。已開始執行或已結束者無法變更。

參數
名稱 位置 型別 必填 預設值 說明
auto_unique 路徑 string 必填 — 自動化執行的 ID
reserved_at 本文 string 必填 — 新的執行時間(未來的時間)。請以含時差的 ISO 8601 指定,未含時差者視為 UTC
回應欄位
欄位型別說明
auto_unique string 自動化執行的 ID
mode string moviemode / blogmode / carouselmode
project object 專案 {project_unique, project_name}
content.variation_unique string 內容的 ID
content.title string | null 標題(postmode 為概念名稱)
run_no integer 該內容的第幾次執行
status string 狀態。pending(等待執行。reserved_at 為未來時間時為預約)/ executing(執行中)/ waiting_confirmation(待確認內容。確認後會繼續執行)/ completed(完成)/ failed(失敗)/ stopped(停止)/ token_shortage(因 Token 不足而結束)
execution_mode string sequential(1 筆 1 筆執行)/ parallel(同時執行)
phases object 各階段的狀態 {setup, step1, step2, step3}。not_started(尚未開始)/ running(執行中,或停下的階段)/ done(已完成。包含略過者,以及在以 completed 結束的 run 中,被排除在自動化範圍之外的步驟)/ error(失敗)
template.setup_template_name string | null 開始時使用的設定範本名稱
template.automation_template_name string | null 開始時使用的自動化範本名稱
reserved_at string | null 預約的執行時間
executed_at string | null 開始執行的時間
completed_at string | null 結束的時間(狀態為 completed / failed / stopped / token_shortage 時)
created_at string 註冊執行的時間
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
404 not_found 自動化不存在,或在可取得範圍之外(Automation not found.)
409 automation_not_pending 不是等待執行(pending)的狀態(已開始執行或已結束)
422 validation_error reserved_at 缺漏、無法解讀為日期時間,或為過去時間
請求範例
curl -X PATCH "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
  "reserved_at": "2031-05-06T07:08:09+09:00"
}'
import requests

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

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

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

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

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

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

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

停止自動化

與在畫面上停止時的操作相同。不論方案皆可使用(即使變更方案後仍可停止)。等待執行(包含已預約)與待確認的項目會立即變為 stopped。執行中的項目會送出停止請求,回應時仍為 executing,並在執行中步驟的分段處變為 stopped(請以 GET /automations/{auto_unique} 確認)。已結束的項目不會做任何處理,直接回傳目前的狀態。

參數
名稱 位置 型別 必填 預設值 說明
auto_unique 路徑 string 必填 — 自動化執行的 ID
回應欄位
欄位型別說明
auto_unique string 自動化執行的 ID
mode string moviemode / blogmode / carouselmode
project object 專案 {project_unique, project_name}
content.variation_unique string 內容的 ID
content.title string | null 標題(postmode 為概念名稱)
run_no integer 該內容的第幾次執行
status string 狀態。pending(等待執行。reserved_at 為未來時間時為預約)/ executing(執行中)/ waiting_confirmation(待確認內容。確認後會繼續執行)/ completed(完成)/ failed(失敗)/ stopped(停止)/ token_shortage(因 Token 不足而結束)
execution_mode string sequential(1 筆 1 筆執行)/ parallel(同時執行)
phases object 各階段的狀態 {setup, step1, step2, step3}。not_started(尚未開始)/ running(執行中,或停下的階段)/ done(已完成。包含略過者,以及在以 completed 結束的 run 中,被排除在自動化範圍之外的步驟)/ error(失敗)
template.setup_template_name string | null 開始時使用的設定範本名稱
template.automation_template_name string | null 開始時使用的自動化範本名稱
reserved_at string | null 預約的執行時間
executed_at string | null 開始執行的時間
completed_at string | null 結束的時間(狀態為 completed / failed / stopped / token_shortage 時)
created_at string 註冊執行的時間
錯誤
狀態代碼發生的條件
404 not_found 自動化不存在,或在可取得範圍之外(Automation not found.)
請求範例
curl -X POST "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/stop" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

核准待確認的自動化

針對停在內容待確認(status 為 waiting_confirmation)的自動化,將內容標示為已確認,並執行後續步驟(建立 SNS 用的文章、發布等)。與在畫面上確認內容時的操作相同。成功後,自動化會回到 pending,並立即開始執行。

參數
名稱 位置 型別 必填 預設值 說明
auto_unique 路徑 string 必填 — 自動化執行的 ID
Idempotency-Key 標頭 string 選填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
auto_unique string 自動化執行的 ID
mode string moviemode / blogmode / carouselmode
project object 專案 {project_unique, project_name}
content.variation_unique string 內容的 ID
content.title string | null 標題(postmode 為概念名稱)
run_no integer 該內容的第幾次執行
status string 狀態。pending(等待執行。reserved_at 為未來時間時為預約)/ executing(執行中)/ waiting_confirmation(待確認內容。確認後會繼續執行)/ completed(完成)/ failed(失敗)/ stopped(停止)/ token_shortage(因 Token 不足而結束)
execution_mode string sequential(1 筆 1 筆執行)/ parallel(同時執行)
phases object 各階段的狀態 {setup, step1, step2, step3}。not_started(尚未開始)/ running(執行中,或停下的階段)/ done(已完成。包含略過者,以及在以 completed 結束的 run 中,被排除在自動化範圍之外的步驟)/ error(失敗)
template.setup_template_name string | null 開始時使用的設定範本名稱
template.automation_template_name string | null 開始時使用的自動化範本名稱
reserved_at string | null 預約的執行時間
executed_at string | null 開始執行的時間
completed_at string | null 結束的時間(狀態為 completed / failed / stopped / token_shortage 時)
created_at string 註冊執行的時間
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
404 not_found 自動化不存在,或在可取得範圍之外(Automation not found.)
409 automation_not_waiting_confirmation 不是待確認(waiting_confirmation)的狀態
409 content_readonly 內容因方案降級而成為唯讀
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
503 automation_dispatch_failed 後續執行的啟動失敗。自動化會變為 failed(內容仍維持已確認狀態,因此若要繼續,請重新開始新的自動化)
請求範例
curl -X POST "https://stepeee.com/public-api/v1/automations/Qw3eRt6yUi/confirm" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "auto_unique": "Qw3eRt6yUi",
    "mode": "carouselmode",
    "project": { "project_unique": "Pj8kL3mN2b", "project_name": "My Project" },
    "content": { "variation_unique": "Ab3dEf6hIj9k", "title": "My carousel title" },
    "run_no": 1,
    "status": "pending",
    "execution_mode": "parallel",
    "phases": { "setup": "done", "step1": "done", "step2": "done", "step3": "running" },
    "template": { "setup_template_name": null, "automation_template_name": "Weekly carousel" },
    "reserved_at": null,
    "executed_at": "2026-10-21T09:00:00Z",
    "completed_at": null,
    "created_at": "2026-10-21T09:00:00Z"
  }
}

貼文確認

針對貼文(貼文模式)自動化中,將發布前確認設為必須或任意的內容,進行貼文的核准、立即發布、變更時間與取消。對象與畫面上的待確認清單及確認郵件連結所指的貼文相同,並依相同的規則運作。清單不論方案皆可使用,操作需要 Pro 方案以上。

GET › /post-confirms

待確認貼文清單

取得已寄出確認郵件的貼文中,預定時間之前(upcoming)與已逾期(expired)的貼文,並依預定時間由近到遠排列。upcoming 為待核准(awaiting。未核准就不會發布)與僅通知(notice。會直接發布)的貼文。expired 為未經核准而超過預定時間、未能發布的貼文,僅在預定時間起 30 天內回傳。串文會將第一則貼文視為 1 筆回傳,第 2 則之後會放入 thread。不論方案皆可使用。

參數
名稱 位置 型別 必填 預設值 說明
state 查詢 string 選填 — 以 upcoming(預定時間之前)或 expired(已逾期)篩選。省略時為兩者
project_unique 查詢 string 選填 — 只回傳此專案的貼文
page 查詢 integer 選填 1 要取得的頁數(從 1 開始)
per_page 查詢 integer 選填 20 每頁的筆數(1~100)
回應欄位
欄位型別說明
data[].schedule_unique string 貼文預定的 ID。用於操作的路徑
data[].state string | null upcoming(預定時間之前)/ expired(已逾期)。因核准、變更時間等而不再屬於確認對象的貼文為 null(僅限操作的回應)
data[].confirm_state string awaiting(待核准。核准前不會發布)/ notice(僅通知。會直接發布)/ confirmed(已核准)/ none(不確認)
data[].confirm_mode string 內容的確認設定。required(核准前不發布)/ optional(即使不核准也會發布)/ none(不確認)
data[].can_approve boolean 是否可核准(upcoming 且為 awaiting 時為 true)
data[].can_post_now boolean 是否可立即發布(expired 時為 true)
data[].can_reschedule boolean 是否可變更時間(expired 時為 true)
data[].scheduled_at string 預定發布的時間
data[].scheduled_at_local string 預定時間(timezone 的當地時間。YYYY-MM-DDTHH:MM:SS)
data[].timezone string 建立預定時的時區
data[].deadline_at string | null 可操作的期限。upcoming 為預定時間(超過後變為 expired),expired 為預定時間後 30 天(超過後會從清單中消失,無法操作)。state 為 null 時為 null
data[].project object 專案 {project_unique, project_name}
data[].concept object 概念 {concept_unique, concept_name}
data[].variation_unique string 內容的 ID
data[].post_unique string 貼文的 ID(與發文排程中的 items[].post_unique 相同)
data[].post_type string 貼文類型。assertion(主張)/ knowhow(訣竅)/ experience(經驗)/ casual(日常)
data[].text string 貼文的本文(串文的第一則貼文)
data[].thread[] object 串文第 2 則之後的貼文 {text, image}(依順序。不是串文時為空陣列)
data[].image object | null 附加的圖片 {url, expires_at}(簽章 URL。1 小時後失效)。沒有時為 null
meta.total integer 符合條件的總筆數
meta.current_page integer 目前的頁數
meta.per_page integer 每 1 頁的筆數
meta.last_page integer 最後一頁
錯誤
狀態代碼發生的條件
404 not_found 專案不存在,或在可取得範圍之外(Project not found.)
422 validation_error 參數不正確
請求範例
curl "https://stepeee.com/public-api/v1/post-confirms?state=upcoming" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

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

核准貼文

核准待核准(upcoming 且 confirm_state 為 awaiting)的貼文。已核准的貼文會在預定時間發布。對已超過預定時間的貼文,請使用立即發布或變更時間。

參數
名稱 位置 型別 必填 預設值 說明
schedule_unique 路徑 string 必填 — 貼文預定的 ID(GET /post-confirms 的 schedule_unique)
Idempotency-Key 標頭 string 選填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
schedule_unique / state / … / image — 與待確認貼文清單中的 1 筆相同(操作後的狀態)
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
404 post_schedule_not_found 未出現在 GET /post-confirms 的貼文(不存在、在可取得範圍之外、不屬於確認對象,或已核准)
409 confirm_expired 已超過預定時間(請使用立即發布或變更時間)
409 confirm_not_pending 不是待核准的狀態(僅通知 notice 的貼文等)
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
請求範例
curl -X POST "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/approve" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90"
import requests

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

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

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

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

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

立即發布已逾期的貼文

將已逾期(expired)的貼文改為從現在起 1 分鐘後的預定時間,並設為已核准(即將發布)。串文的第 2 則之後也會順延相同的時間。僅可用於已逾期的貼文。

參數
名稱 位置 型別 必填 預設值 說明
schedule_unique 路徑 string 必填 — 貼文預定的 ID(GET /post-confirms 的 schedule_unique)
allow_close_slot 本文 boolean 選填 false 即使與同一內容的其他預約之間隔短於最小間隔(90 分鐘),仍要執行時請設為 true
Idempotency-Key 標頭 string 選填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
schedule_unique / state / … / image — 與待確認貼文清單中的 1 筆相同(操作後的狀態)
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
403 resource_readonly 內容因方案降級而成為唯讀
404 post_schedule_not_found 未出現在 GET /post-confirms 的貼文(不存在、在可取得範圍之外、不屬於確認對象,或已核准)
409 confirm_not_expired 尚未逾期(預定時間之前請使用核准)
409 schedule_close_to_other_slot allow_close_slot 為 false,且與同一內容的其他預約之間隔會短於 90 分鐘。details 中包含 min_gap_minutes(最小間隔的分鐘數)、timezone 與 conflicts(相近預約 {scheduled_at_local, minutes_apart} 的陣列)
409 schedule_locked 正在發布或已發布,或在預定時間前後 2 分鐘內與貼文處理重疊
409 schedule_processing 與貼文處理同時被操作,因此無法變更
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 validation_error allow_close_slot 不是 true / false
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
請求範例
curl -X POST "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9/post-now" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "allow_close_slot": true
}'
import requests

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

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

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

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

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

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

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

變更已逾期貼文的時間

變更已逾期(expired)貼文的預定時間,並設為已核准(會在指定的時間發布)。串文的第 2 則之後也會順延相同的時間。僅有已逾期的貼文可以變更時間。

參數
名稱 位置 型別 必填 預設值 說明
schedule_unique 路徑 string 必填 — 貼文預定的 ID(GET /post-confirms 的 schedule_unique)
scheduled_at 本文 string 必填 — 新的預定時間(未來的時間)。請以含時差的 ISO 8601 指定(2026-10-21T09:30:00+09:00、2026-10-21T00:30:00Z 等。秒可省略,秒以下的部分會捨去)。會換算為貼文 timezone 的時間後儲存
allow_close_slot 本文 boolean 選填 false 即使與同一內容的其他預約之間隔短於最小間隔(90 分鐘),仍要執行時請設為 true
回應欄位
欄位型別說明
schedule_unique / state / … / image — 與待確認貼文清單中的 1 筆相同(操作後的狀態)
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
403 resource_readonly 內容因方案降級而成為唯讀
404 post_schedule_not_found 未出現在 GET /post-confirms 的貼文(不存在、在可取得範圍之外、不屬於確認對象,或已核准)
409 confirm_not_expired 尚未逾期(預定時間之前請使用核准)
409 schedule_close_to_other_slot allow_close_slot 為 false,且與同一內容的其他預約之間隔會短於 90 分鐘。details 中包含 min_gap_minutes(最小間隔的分鐘數)、timezone 與 conflicts(相近預約 {scheduled_at_local, minutes_apart} 的陣列)
409 schedule_locked 正在發布或已發布,或在預定時間前後 2 分鐘內與貼文處理重疊
409 schedule_processing 與貼文處理同時被操作,因此無法變更
422 confirm_reschedule_past scheduled_at 為目前時間或更早
422 validation_error scheduled_at 缺漏、沒有時差、無法解讀為日期時間,或 allow_close_slot 不是 true / false
請求範例
curl -X PATCH "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduled_at": "2026-10-22T09:30:00-05:00",
  "allow_close_slot": false
}'
import requests

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

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

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

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

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

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

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

取消貼文

取消貼文(無論在預定時間之前或已逾期皆可)。會一併刪除貼文、串文的第 2 則之後與預約。無法復原。

參數
名稱 位置 型別 必填 預設值 說明
schedule_unique 路徑 string 必填 — 貼文預定的 ID(GET /post-confirms 的 schedule_unique)
回應欄位
欄位型別說明
schedule_unique string 已取消之貼文預定的 ID
deleted boolean 固定為 true
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
403 resource_readonly 內容因方案降級而成為唯讀
404 post_schedule_not_found 未出現在 GET /post-confirms 的貼文(不存在、在可取得範圍之外、不屬於確認對象,或已核准)
409 post_posting_locked 正在發布中(包含串文的第 2 則之後),無法取消
請求範例
curl -X DELETE "https://stepeee.com/public-api/v1/post-schedules/aB3dE5fG7hJ9" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "schedule_unique": "aB3dE5fG7hJ9",
    "deleted": true
  }
}

Webhook

將自動化與貼文的事件以 JSON 傳送到已註冊的 URL。適用於不想反覆呼叫 API,就想得知完成、失敗與待確認的情況。註冊與測試傳送需要 Pro 方案以上,清單與刪除不論方案皆可使用。

GET › /webhooks

通知端點清單

依註冊順序取得已註冊的通知端點(最多 5 個。沒有分頁)。不包含簽章用的密鑰。不論方案皆可使用。

回應欄位
欄位型別說明
data[].webhook_unique string 通知端點的 ID
data[].url string 傳送目的地的 URL
data[].events string[] 要接收的事件名稱
data[].description string | null 備註
data[].is_active boolean 目前是否處於傳送事件的狀態。持有者為 Pro 方案以上(團隊成員則為團隊擁有者是 Team 方案)時為 true。為 false 期間發生的事件不會傳送
data[].last_delivery_at string | null 最近一次嘗試傳送的時間(不含測試傳送)
data[].last_delivery_status string | null 最近一次傳送的結果。succeeded(成功)/ failed(失敗)。尚未傳送時為 null
data[].last_response_status integer | null 最近一次傳送收到的 HTTP 狀態(沒有回應時為 null)
data[].last_error string | null 最近一次傳送失敗的原因。值與測試傳送的 error 相同
data[].created_at string 建立時間
請求範例
curl "https://stepeee.com/public-api/v1/webhooks" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": [
    {
      "webhook_unique": "Xk3pQ9vLm2Ta",
      "url": "https://example.com/hooks/stepeee",
      "events": ["automation.completed", "post.published"],
      "description": "production hook",
      "is_active": true,
      "last_delivery_at": "2026-10-21T12:01:00Z",
      "last_delivery_status": "failed",
      "last_response_status": 503,
      "last_error": "non_2xx_response",
      "created_at": "2026-10-20T09:00:00Z"
    }
  ]
}
POST › /webhooks

註冊通知端點

註冊通知端點。回應中的 secret(簽章用的密鑰)僅會在此回應中回傳,之後無法再顯示。若遺失,請刪除通知端點後重新註冊。最多可註冊 5 個。註冊之前發生的事件不會傳送。

參數
名稱 位置 型別 必填 預設值 說明
url 本文 string 必填 — 傳送目的地的 URL(僅限 https,連接埠僅限 443(可省略),2048 個字元以內)。含有使用者名稱、密碼的 URL 無法註冊。解析為內部、保留位址(私有 IP、迴路、連結本機、localhost 等)的 URL,以及無法解析名稱的 URL,皆無法註冊
events 本文 string[] 必填 — 要接收的事件名稱(從事件清單中選擇 1 個以上,不可重複)
description 本文 string | null 選填 — 備註(100 個字元以內)
Idempotency-Key 標頭 string 選填 — 每次操作各自產生的唯一字串(1~255 個可顯示的 ASCII 字元)。以相同的金鑰重送相同的內容時,會直接回傳最初的回應(請參閱共通規格的 Idempotency-Key)
回應欄位
欄位型別說明
webhook_unique string 通知端點的 ID
url string 傳送目的地的 URL
events string[] 要接收的事件名稱
description string | null 備註
is_active boolean 目前是否處於傳送事件的狀態。持有者為 Pro 方案以上(團隊成員則為團隊擁有者是 Team 方案)時為 true。為 false 期間發生的事件不會傳送
last_delivery_at string | null 最近一次嘗試傳送的時間(不含測試傳送)
last_delivery_status string | null 最近一次傳送的結果。succeeded(成功)/ failed(失敗)。尚未傳送時為 null
last_response_status integer | null 最近一次傳送收到的 HTTP 狀態(沒有回應時為 null)
last_error string | null 最近一次傳送失敗的原因。值與測試傳送的 error 相同
created_at string 建立時間
secret string 簽章用的密鑰(以 whsec_ 開頭)。僅在此回應中回傳
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
409 webhook_limit_reached 已註冊 5 個
409 idempotency_request_in_progress 使用相同 Idempotency-Key 的請求仍在處理中
422 validation_error 輸入不正確(非 https 的 URL、443 以外的連接埠、含有使用者名稱或密碼的 URL、解析為內部位址或無法解析名稱的 URL、未知的事件名稱、事件名稱重複等)
422 idempotency_key_invalid Idempotency-Key 不是 1~255 個可顯示的 ASCII 字元
422 idempotency_key_reused 將相同的 Idempotency-Key 用於內容不同的請求
請求範例
curl -X POST "https://stepeee.com/public-api/v1/webhooks" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f0c2d8e-7a41-4c1b-9d3e-2b8f6a1c4e90" \
  -d '{
  "url": "https://example.com/hooks/stepeee",
  "events": ["automation.completed", "post.published"],
  "description": "production hook"
}'
import requests

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

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

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "webhook_unique": "Xk3pQ9vLm2Ta",
    "url": "https://example.com/hooks/stepeee",
    "events": ["automation.completed", "post.published"],
    "description": "production hook",
    "is_active": true,
    "last_delivery_at": null,
    "last_delivery_status": null,
    "last_response_status": null,
    "last_error": null,
    "created_at": "2026-10-21T12:00:00Z",
    "secret": "whsec_5f0c2a9e8b7d4c3a1f6e9d8c7b6a5f4e3d2c1b0a9f8e7d6c"
  }
}
DELETE › /webhooks/{webhook_unique}

刪除通知端點

刪除通知端點。尚未傳送的事件與等待重試的事件也不會傳送。不論方案皆可使用。

參數
名稱 位置 型別 必填 預設值 說明
webhook_unique 路徑 string 必填 — 通知端點的 ID
回應欄位
欄位型別說明
webhook_unique string 已刪除之通知端點的 ID
deleted boolean 固定為 true
錯誤
狀態代碼發生的條件
404 not_found 通知端點不存在,或屬於其他使用者
請求範例
curl -X DELETE "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "webhook_unique": "Xk3pQ9vLm2Ta",
    "deleted": true
  }
}
POST › /webhooks/{webhook_unique}/test

測試傳送

當場傳送 1 次 webhook.test 事件,並回傳結果。傳送時使用與正式環境相同的簽章、標頭與傳送目的地檢查,因此可用於確認接收端的簽章驗證。不會重試,也不會記錄到 last_delivery_at 等欄位。

參數
名稱 位置 型別 必填 預設值 說明
webhook_unique 路徑 string 必填 — 通知端點的 ID
回應欄位
欄位型別說明
delivered boolean 是否收到 2xx 的回應
response_status integer | null 收到的 HTTP 狀態(沒有回應時為 null)
error string | null 失敗原因。url_blocked(不是 https、443 以外的連接埠、含有使用者名稱與密碼,或在傳送前一刻解析為內部位址、無法解析名稱)/ timeout(5 秒內沒有回應)/ connection_failed(連線、TLS 失敗)/ non_2xx_response(2xx 以外的回應。重新導向也視為失敗,不會跟隨)。成功時為 null
錯誤
狀態代碼發生的條件
403 plan_required API 金鑰持有者低於 Pro 方案
403 team_plan_lost 為團隊成員,且團隊擁有者不再是 Team 方案
404 not_found 通知端點不存在,或屬於其他使用者
請求範例
curl -X POST "https://stepeee.com/public-api/v1/webhooks/Xk3pQ9vLm2Ta/test" \
  -H "Authorization: Bearer sk_xxxxxxxxxxxxxxxx"
import requests

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

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

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

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

echo $response;
回應範例
{
  "data": {
    "delivered": false,
    "response_status": 500,
    "error": "non_2xx_response"
  }
}

事件

當註冊到通知端點的事件發生時,會向已註冊的 URL 進行 POST。傳送的僅限通知端點持有者在該時間點可取得之專案的事件。事件每 1 分鐘確認一次,因此送達可能需要數分鐘。註冊通知端點之前的事件,以及持有者低於 Pro 方案期間(團隊成員則為團隊擁有者不是 Team 方案期間)的事件,不會傳送。

事件意義
automation.waiting_confirmation自動化(影片、部落格、輪播)停在內容待確認
automation.completed自動化已執行到最後並完成
automation.failed自動化以失敗(failed)、停止(stopped)、Token 不足(token_shortage)結束
post.published已發布到 SNS(影片、部落格、輪播的發布結果變為 success,或貼文(貼文模式)已發布到 X)。手動發布與自動化發布的貼文皆為對象
post.failed貼文發布失敗(影片、部落格、輪播的發布結果變為 failed、partial_success,或貼文(貼文模式)因發布或建立本文失敗而被略過)
post.confirm_required貼文(貼文模式)的待核准貼文出現在 GET /post-confirms(核准前不會發布)
webhook.test測試傳送(POST /webhooks/{webhook_unique}/test)。無法作為註冊到通知端點的事件使用

傳送的本文

本文為 {id, type, created_at, data} 的 JSON(UTF-8)。id 為事件的 ID(以 evt_ 開頭),type 為事件名稱,created_at 為記錄事件的時間。重送同一事件時,本文相同,只有簽章中的 t 會改變。data 的形式依事件而異,如下所示。

事件data 的形式
automation.*與 GET /automations 的 data[] 中的 1 筆形式相同。status 在 automation.waiting_confirmation 時為 waiting_confirmation,在 automation.completed 時為 completed,在 automation.failed 時為 failed / stopped / token_shortage
post.published
post.failed
影片、部落格、輪播:在 GET /projects/{project_unique}/publications 的 data[] 中的 1 筆加上 project 的形式。post.failed 的 status 為 failed 或 partial_success,error_code 會填入與發布結果相同的失敗代碼。貼文(貼文模式):在相同形式上加上 schedule_unique。publication_unique 為貼文的 ID(建立本文失敗的預定為 null),content.title 為概念名稱,account 為 null,error_code 為 token_expired / api_error / not_found / insufficient_token / no_x_account / node_ws_timeout。可用 is_automation 區分是否為自動化發布的貼文
post.confirm_required與 GET /post-confirms 的 data[] 中的 1 筆形式相同,為記錄事件當時的值。僅通知(notice)的貼文不會傳送。image 的簽章 URL 在記錄後 1 小時失效,因此若延遲送達,請以 GET /post-confirms 重新取得。同一預定的貼文被重新建立時,會以新的 post_unique 再次送達
webhook.test{"webhook_unique": "…"}

本文範例

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

傳送的標頭

標頭說明
Content-Type: application/json本文的格式
Stepeee-Signature: t=1792584000,v1=5257a869e7ecebeda32affa62cdca3fa51cad7e77a0e56ff536d0ce8e108d8bd簽章。t 為傳送的時間(UNIX 秒),v1 為簽章(HMAC-SHA256 的 16 進位)。驗證方法請參閱下方的簽章驗證
Stepeee-Event-Id: evt_Q2x8Lr0aZk9MvB3pT7cYw1Nd事件的 ID(與本文的 id 相同)。重送時也不會改變,因此可用於排除重複
Stepeee-Event-Type: automation.failed事件名稱(與本文的 type 相同)
User-Agent: Stepeee-Webhooks/1.0傳送來源

簽章驗證

為了確認收到的本文確實由 Stepeee 傳送且未被竄改,請依下列步驟驗證簽章。

  1. 將 Stepeee-Signature 標頭以「,」分隔,取出 t= 的值(UNIX 秒)與 v1= 的值(16 進位 64 個字元)。
  2. 將收到的本文以位元組序列直接使用(不要讀取 JSON 後重新組成),建立由 t 的值、「.」與本文串接而成的字串。
  3. 以註冊時收到的 secret(包含 whsec_ 的整個值)作為金鑰,計算 HMAC-SHA256,並轉為小寫的 16 進位。
  4. 使用不會因內容不同而造成耗時差異的比較方式(Python 的 hmac.compare_digest、PHP 的 hash_equals 等),比對計算出的值與 v1。若不一致,請回傳 400 等,並且不進行處理。
  5. 為了防止舊請求被重送,建議在 t 與目前時間相差 5 分鐘以上時予以拒絕。
  6. 以本文的 id 排除已處理過的事件。

驗證的程式碼範例

import hmac, hashlib, time

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

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

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

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

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

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

成功的條件與重試

若在 5 秒內回傳 2xx,即視為已送達。不會讀取回應的本文,也不會跟隨重新導向。2xx 以外的回應、逾時與連線失敗會重試,包含第一次傳送在內最多傳送 8 次。下次傳送前的間隔為 1 分鐘 → 5 分鐘 → 30 分鐘 → 2 小時 → 4 小時 → 6 小時 → 10 小時,若 8 次都失敗,該事件就不會再傳送。傳送時若持有者低於 Pro 方案(團隊成員則為團隊擁有者不是 Team 方案),該事件不會傳送。傳送時若持有者已無法存取該專案(已離開團隊、權限被移除或專案已刪除),也不會傳送。

由於會重複傳送同一事件直到收到 2xx 為止,同一事件可能會送達 2 次以上。請以 Stepeee-Event-Id(本文的 id)排除重複。不保證送達的順序。繁重的處理請在回傳 2xx 之後再進行。

傳送目的地的條件

傳送目的地僅限 https 的 URL,連接埠僅限 443。含有使用者名稱、密碼的 URL 也無法註冊。解析為內部、保留位址(私有 IP、迴路、連結本機、localhost 等)的 URL,以及無法解析名稱的 URL,皆無法註冊。傳送前一刻也會解析名稱進行確認,若解析為內部位址,則不會傳送,並以 url_blocked 視為失敗。