# 带货视频立即发布

- API 版本：1.10.0
- 最后更新：2026-09-29
- 服务地址：`https://api.ailingtu.com`
- 网页文档：[带货视频立即发布](/openapi/submit-post)
- 完整接口约束：[JSON Schema](/openapi/operations/submitCreatorPost.json)
- 接口发现：[接口索引](/openapi/operations/index.json)

## POST /v1/creator/post/submit

接口标识：`submitCreatorPost`

通过已有发布任务的 postId，立即提交带货视频发布。

鉴权：请求头 `x-api-key: <YOUR_API_KEY>`；密钥仅保存在服务端。

成功判断：HTTP 2xx 且响应 code=0；异步任务还需查询最终状态。

### 请求参数

| 字段 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| `postId` | body | string | 是 | 发布任务 ID，可从创建发布任务的返回结果或发布记录中获取；请以字符串传递 |

请求格式：`application/json`

### 请求示例

```json
{
  "postId": "2098014809185456128"
}
```

### 成功响应

```json
{
  "code": 0,
  "message": "success",
  "data": null,
  "timestamp": 1790640000000
}
```

### 响应字段

以下列出主要层级；完整结构、联合类型及校验规则以接口 JSON Schema 为准。必填指字段所在对象中的约束。

| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| `code` | integer | 是 | 固定值：0 |
| `data` | null | 是 | — |
| `message` | string | 是 | — |
| `timestamp` | integer | 否 | 响应时间戳，单位毫秒。 |

### 接入说明与限制

- 此接口会触发实际发布，请确认 postId 对应的发布任务。
- 提交成功返回 code=0、data=null；请查询发布记录确认最终状态。

### 错误处理

| HTTP | 说明 |
|---|---|
| 400 | 请求参数或请求体无效，请修正后重试。 |
| 401 | API 密钥缺失或无效，请检查 x-api-key。 |
| 403 | API 密钥没有此接口的调用权限。 |
| 429 | 请求过于频繁，请采用指数退避重试。 |
| 500 | 服务端发生错误；对于暂时性故障采用指数退避重试。 |

业务 code 非零时也应按失败处理。不要对参数、权限或授权错误盲目重试。创建发布或生成任务超时后先查询原任务，避免重复创建。

### 相关接口

- [创建发布任务](/openapi/create-post) · [Markdown](/openapi/operations/createCreatorPost.md)
- [查询发布记录](/openapi/post-records) · [Markdown](/openapi/operations/listCreatorPosts.md)
