API
READ
WRITE
连接方式
确认 API 密钥
您可以通过右上角菜单 > 设置 > 账户 > API 密钥 查看。
添加到请求头
将您获取的 API 密钥以 Bearer 格式添加到 Authorization 请求头中。
向基础 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": { ... } } }
状态码
| 状态 | 含义 |
|---|---|
| 401 | API 密钥缺失、无效或已失效 |
| 403 | 没有执行此操作的权限(例如:使用 Pro 套餐以下账户的 API 密钥调用需要 Pro 套餐及以上的操作,或团队成员(staff)获取团队的 Token 使用记录等) |
| 404 | 资源不存在(包括无访问权限的情况) |
| 405 | 此路径不支持该 HTTP 方法 |
| 409 | 在当前状态下无法执行此操作(例如:删除正在运行自动化的内容,或正在处理使用相同 Idempotency-Key 的请求等)。请通过 error.code 判断原因 |
| 422 | 参数无效,或内容无法受理。当为 validation_error 时,error.details 中会包含各参数的原因 |
| 429 | 超出速率限制 |
| 500 | 发生了意外错误 |
| 503 | 无法开始处理(例如自动化开始执行失败等)。请稍后重试 |
通用规范
可获取和操作的范围
可获取和操作的范围与 API 密钥所有者在界面上能看到的范围相同。除自己的项目外,在 Team 套餐中,团队的所有者和管理员可获取和操作团队的所有项目,团队成员(staff)可获取和操作被授予权限的项目。范围之外的资源与不存在时一样,返回 404。
已删除的数据
已删除的项目、概念、标题、内容和素材,包括在彻底删除之前的保留期间,均不会返回。删除标题或概念时,其下的内容也不会返回。
分页
列表通过 page(从 1 开始)和 per_page(1〜100,默认 20)指定获取范围。meta 中包含总件数(total)、当前页(current_page)、1 页的件数(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 密钥每 1 分钟最多 120 个请求(写入除此之外还有下方的写入速率限制)。可通过响应头 X-RateLimit-Limit(上限)和 X-RateLimit-Remaining(剩余)确认。超出后返回 429,Retry-After 中包含可重试之前的秒数。
写入的速率限制
写入(GET 以外的方法)除每 1 分钟 120 个请求的额度外,每个 API 密钥每 1 分钟最多 30 个请求。超出后返回 429 rate_limited,Retry-After 中包含可重试之前的秒数。写入响应头中的 X-RateLimit-Limit 和 X-RateLimit-Remaining,是这 2 个额度中剩余较少一方的值。
错误代码
发生错误时,error.code 中包含错误种类,error.message 中包含英文说明。任何端点都可能返回的代码如下。端点特有的代码(title_limit_reached 等)列在各端点的错误表中。程序中请通过 error.code 判断。
| 代码 | 含义 |
|---|---|
unauthorized | API 密钥缺失、无效或已失效(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_invalid | Idempotency-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 -
订阅
GET /me/subscription -
Token 余额
GET /me/tokens -
Token 使用量
GET /me/token-usage -
存储空间
GET /me/storage -
支付记录
GET /me/payments -
推荐计划
GET /me/referral
账户信息
获取 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 | 是否可以在帖子中使用串文(thread)和带图片的帖子 |
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"
}
}
订阅
获取当前签约套餐的状态、计费周期、预定的解约以及已预约的套餐变更。团队成员返回的是团队所有者的签约内容。
| 字段 | 类型 | 说明 |
|---|---|---|
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"
}
}
}
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
}
}
}
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
}
}
存储空间
获取存储空间的使用量和容量,以及按文件种类划分的明细。在团队中,返回团队共享的存储空间。
| 字段 | 类型 | 说明 |
|---|---|---|
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 }
]
}
}
支付记录
按从新到旧的顺序获取套餐费用和 Token 购买等支付记录。可用于导入会计系统。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
status |
查询 | string | 可选 | — | 按支付状态筛选(用逗号分隔)。succeeded / refunded / partially_refunded。省略时为全部 |
type |
查询 | string | 可选 | — | 按支付种类筛选(用逗号分隔)。值与 data[].type 相同 |
from |
查询 | string | 可选 | — | 仅返回创建时间在此时刻及之后的项 |
to |
查询 | string | 可选 | — | 仅返回创建时间在此时刻及之前的项 |
page |
查询 | integer | 可选 | 1 |
要获取的页(从 1 开始) |
per_page |
查询 | integer | 可选 | 20 |
1 页的件数(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 }
}
推荐计划
获取推荐码,以及推荐成绩和奖励的情况。
| 字段 | 类型 | 说明 |
|---|---|---|
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 -
项目详情
GET /projects/{project_unique} -
概念列表
GET /projects/{project_unique}/concepts -
概念详情
GET /projects/{project_unique}/concepts/{concept_unique}
项目列表
按从新到旧的顺序获取可访问的项目。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
page |
查询 | integer | 可选 | 1 |
要获取的页(从 1 开始) |
per_page |
查询 | integer | 可选 | 20 |
1 页的件数(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 }
}
项目详情
获取 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 }
}
}
}
}
概念列表
跨所有模式,按从新到旧的顺序获取项目内的概念。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
project_unique |
路径 | string | 必填 | — | 项目的 ID |
mode |
查询 | string | 可选 | — | 按模式筛选。可用逗号分隔指定多个:moviemode(视频)、blogmode(博客)、carouselmode(轮播图)、postmode(帖子)。省略时为全部 |
page |
查询 | integer | 可选 | 1 |
要获取的页(从 1 开始) |
per_page |
查询 | integer | 可选 | 20 |
1 页的件数(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 }
}
概念详情
获取 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 -
内容详情
GET /projects/{project_unique}/contents/{variation_unique} -
发布计划
GET /projects/{project_unique}/contents/{variation_unique}/schedule
内容列表
跨类型获取项目内的内容(视频、博客、轮播图、帖子)。可按进度、发布语言、是否已发布等筛选。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
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 页的件数(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 }
}
内容详情
获取 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 | 元描述 |
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"] }
}
}
}
发布计划
按计划时间的顺序获取帖子(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 发布的结果,以及项目已关联的发布平台的状态。可用于检测关联失效。
发布结果列表
跨所有模式和发布平台,按从新到旧的顺序获取项目的发布结果。帖子(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 页的件数(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 }
}
关联平台列表
获取项目已关联的发布平台(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
}
]
}
自动化
获取视频、博客、轮播图自动化的运行状况。帖子的自动化(发帖模式)的情况,通过内容的计划获取。
自动化运行列表
按从新到旧的顺序获取视频、博客、轮播图自动化的运行(已预约・运行中・等待确认・已结束)。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
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 页的件数(1〜100) |
| 字段 | 类型 | 说明 |
|---|---|---|
data[].auto_unique |
string | 自动化运行的 ID |
data[].mode |
string | moviemode / blogmode / carouselmode |
data[].project |
object | 项目 {project_unique, project_name} |
data[].content.variation_unique |
string | 内容的 ID |
data[].content.title |
string | null | 标题(postmode 为概念名称) |
data[].run_no |
integer | 该内容的第几次运行 |
data[].status |
string | 状态。pending(等待运行。reserved_at 在未来时为已预约)/ executing(运行中)/ waiting_confirmation(等待确认内容。确认后继续运行)/ completed(已完成)/ failed(失败)/ stopped(已停止)/ token_shortage(因 Token 不足而结束) |
data[].execution_mode |
string | sequential(每次 1 个依次运行)/ parallel(同时运行) |
data[].phases |
object | 各阶段的状态 {setup, step1, step2, step3}。not_started(未开始)/ running(运行中,或停下来的阶段)/ done(已完成。包含跳过的步骤,以及在 completed 的 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 | 结束的时间(status 为 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 }
}
自动化运行详情
获取 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 -
素材详情
GET /materials/{material_unique} -
素材分类列表
GET /material-categories -
模板列表
GET /templates
素材列表
按从新到旧的顺序获取 MY素材(图片、视频、BGM)。在团队中,返回团队共享的素材。不包含仅在项目内使用的图片和生成过程中的文件。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
kind |
查询 | string | 可选 | — | 按素材的种类筛选。image(图片)/ video(视频)/ bgm |
type |
查询 | string | 可选 | — | 按素材的用途筛选。值与 data[].type 相同。与 kind 同时指定时,只能指定该种类下的用途 |
category_unique |
查询 | string | 可选 | — | 仅返回该分类的素材 |
page |
查询 | integer | 可选 | 1 |
要获取的页(从 1 开始) |
per_page |
查询 | integer | 可选 | 20 |
1 页的件数(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 }
}
素材详情
获取 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"
}
}
素材分类列表
获取素材的分类,以及各分类的素材数。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
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
}
]
}
模板列表
按更新时间从新到旧的顺序获取设置模板和自动化模板。在团队中,返回团队共享的模板。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
mode |
查询 | string | 可选 | — | 按模式筛选。moviemode / blogmode / carouselmode / postmode |
kind |
查询 | string | 可选 | — | 按模板的种类筛选。setup / automation |
page |
查询 | integer | 可选 | 1 |
要获取的页(从 1 开始) |
per_page |
查询 | integer | 可选 | 20 |
1 页的件数(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 -
删除内容
DELETE /projects/{project_unique}/contents/{variation_unique}
添加标题
为视频、博客、轮播图的概念批量添加标题,并为每个标题创建 1 个最初的内容(与在界面上手动登记标题时的处理相同)。同一概念中已有同名标题的,以及在同一请求中第 2 次及以后出现的名称,不会创建,而是放入 skipped。每个概念最多 100 个标题,添加后若超过 100 个,则 1 个也不会创建(因同名而不创建的不计入)。因套餐的内容数上限而无法创建时,只创建标题,并将 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 个(1 个也不创建)。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_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 -
更改预约时间
PATCH /automations/{auto_unique} -
停止自动化
POST /automations/{auto_unique}/stop -
批准等待确认的自动化
POST /automations/{auto_unique}/confirm
开始自动化
按自动化模板的设置,开始内容(视频、博客、轮播图)的自动化。指定 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 个依次运行)/ 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 | 结束的时间(status 为 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"
}
]
}
更改预约时间
更改等待运行(status 为 pending)的自动化的运行时间。已开始运行或已结束的无法更改。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
auto_unique |
路径 | string | 必填 | — | 自动化运行的 ID |
reserved_at |
正文 | string | 必填 | — | 新的运行时间(未来的时间)。以带时差的 ISO 8601 指定,不带时差的按 UTC 处理 |
| 字段 | 类型 | 说明 |
|---|---|---|
auto_unique |
string | 自动化运行的 ID |
mode |
string | moviemode / blogmode / carouselmode |
project |
object | 项目 {project_unique, project_name} |
content.variation_unique |
string | 内容的 ID |
content.title |
string | null | 标题(postmode 为概念名称) |
run_no |
integer | 该内容的第几次运行 |
status |
string | 状态。pending(等待运行。reserved_at 在未来时为已预约)/ executing(运行中)/ waiting_confirmation(等待确认内容。确认后继续运行)/ completed(已完成)/ failed(失败)/ stopped(已停止)/ token_shortage(因 Token 不足而结束) |
execution_mode |
string | sequential(每次 1 个依次运行)/ parallel(同时运行) |
phases |
object | 各阶段的状态 {setup, step1, step2, step3}。not_started(未开始)/ running(运行中,或停下来的阶段)/ done(已完成。包含跳过的步骤,以及在 completed 的 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 | 结束的时间(status 为 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"
}
}
停止自动化
与界面上的停止是相同的操作。不受套餐限制(更换套餐后也可以停止)。等待运行(包括已预约)和等待确认的,会立即变为 stopped。运行中的会提交停止请求,响应时仍为 executing,在运行中步骤的间隙变为 stopped(请通过 GET /automations/{auto_unique} 确认)。已结束的不做任何处理,原样返回当前状态。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
auto_unique |
路径 | string | 必填 | — | 自动化运行的 ID |
| 字段 | 类型 | 说明 |
|---|---|---|
auto_unique |
string | 自动化运行的 ID |
mode |
string | moviemode / blogmode / carouselmode |
project |
object | 项目 {project_unique, project_name} |
content.variation_unique |
string | 内容的 ID |
content.title |
string | null | 标题(postmode 为概念名称) |
run_no |
integer | 该内容的第几次运行 |
status |
string | 状态。pending(等待运行。reserved_at 在未来时为已预约)/ executing(运行中)/ waiting_confirmation(等待确认内容。确认后继续运行)/ completed(已完成)/ failed(失败)/ stopped(已停止)/ token_shortage(因 Token 不足而结束) |
execution_mode |
string | sequential(每次 1 个依次运行)/ parallel(同时运行) |
phases |
object | 各阶段的状态 {setup, step1, step2, step3}。not_started(未开始)/ running(运行中,或停下来的阶段)/ done(已完成。包含跳过的步骤,以及在 completed 的 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 | 结束的时间(status 为 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"
}
}
批准等待确认的自动化
对于停在等待确认内容(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 个依次运行)/ 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 | 结束的时间(status 为 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 -
批准帖子
POST /post-schedules/{schedule_unique}/approve -
立即发布已过期的帖子
POST /post-schedules/{schedule_unique}/post-now -
更改已过期帖子的时间
PATCH /post-schedules/{schedule_unique} -
取消帖子
DELETE /post-schedules/{schedule_unique}
等待确认的帖子列表
在已发送确认邮件的帖子中,按计划时间由近到远的顺序,获取计划时间之前(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 页的件数(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 }
}
批准帖子
批准等待批准(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
}
}
立即发布已过期的帖子
将已过期(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
}
}
更改已过期帖子的时间
更改已过期(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
}
}
取消帖子
取消帖子(无论在计划时间之前还是已过期)。会一并删除帖子、串文第 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 -
登记通知目标
POST /webhooks -
删除通知目标
DELETE /webhooks/{webhook_unique} -
测试发送
POST /webhooks/{webhook_unique}/test
通知目标列表
按登记顺序获取已登记的通知目标(最多 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"
}
]
}
登记通知目标
登记通知目标。响应中的 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"
}
}
删除通知目标
删除通知目标。尚未发送的事件和等待重试的事件也不会再发送。不受套餐限制。
| 名称 | 位置 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|---|
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
}
}
测试发送
当场发送 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.publishedpost.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 发送且未被篡改,请按以下步骤验证签名。
- 将 Stepeee-Signature 请求头按「,」分隔,取出 t= 的值(UNIX 秒)和 v1= 的值(16 进制 64 个字符)。
- 直接使用收到的正文的字节序列(不要解析 JSON 后重新生成),拼接 t 的值、「.」和正文,生成字符串。
- 以登记时收到的 secret(包含 whsec_ 的整体)为密钥计算 HMAC-SHA256,并转换为小写 16 进制。
- 使用耗时不随内容变化的比较方法(Python 的 hmac.compare_digest、PHP 的 hash_equals 等),将计算出的值与 v1 进行比较。不一致时返回 400 等,且不进行处理。
- 为防止旧请求被重放,建议在 t 与当前时间相差 5 分钟以上时拒绝该请求。
- 通过正文的 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 视为失败。