渠道管理/内容发布
发布流程详情
接口说明:根据 flowId 获取发布 flow 聚合信息
GET
/
api
/
v2
/
channels
/
publish
/
flows
/
{flowId}
发布流程详情
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/publish/flows/{flowId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"flowId": "string",
"tasks": [
{
"id": "string",
"accountId": "string",
"platform": "douyin",
"status": -1,
"publishTime": "2026-07-02T12:00:00.000Z",
"platformWorkId": "string",
"workLink": "string",
"linkStatus": "pending",
"linkError": "string",
"linkMeta": {},
"errorMsg": "string"
}
]
}
}授权
需要从 AiToEarn 获取 API Key。点击前往「API Key 获取教程」。
路径参数
发布 Flow ID
响应
200 - application/json
请求已被服务处理。业务是否成功以响应体 code === 0 为准。
业务状态码。0 表示成功,非 0 表示业务错误。
响应消息。
Hide child attributes
Hide child attributes
发布 Flow ID
发布任务列表
Hide child attributes
Hide child attributes
发布任务 ID
账号 ID
平台
可用选项:
douyin, xhs, wxSph, KWAI, youtube, wxGzh, bilibili, twitter, tiktok, facebook, instagram, threads, pinterest, linkedin, google_business 发布状态
可用选项:
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 发布时间
平台作品 ID
作品链接
作品链接状态
可用选项:
pending, ready, failed 作品链接获取错误
作品链接扩展信息
错误信息
请求 ID。
错误响应时间戳,Unix 毫秒。
⌘I
发布流程详情
curl --request GET \
--url https://aitoearn.cn/api/v2/channels/publish/flows/{flowId} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://aitoearn.cn/api/v2/channels/publish/flows/{flowId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"code": 0,
"message": "请求成功",
"data": {
"flowId": "string",
"tasks": [
{
"id": "string",
"accountId": "string",
"platform": "douyin",
"status": -1,
"publishTime": "2026-07-02T12:00:00.000Z",
"platformWorkId": "string",
"workLink": "string",
"linkStatus": "pending",
"linkError": "string",
"linkMeta": {},
"errorMsg": "string"
}
]
}
}
