列出任务
按创建时间倒序列出当前账号的任务,可按任务类型、状态和幂等键筛选。还有更多结果时,响应头 X-Next-Cursor 返回下一页游标。
认证
API Key:X-API-Key: <API Key> 或 Authorization: Bearer <API Key>。
示例中的凭证为占位值,请替换后在服务器端运行。
代码示例
curl -X GET 'https://shixux.com/api/v1/jobs' \ -H 'X-API-Key: yb_xxx_yyy'[ { "id": "example", "type": "tts", "status": "queued", "reserved_credits": 1, "actual_credits": 1, "error_code": "example", "error_message": "example", "created_at": "2026-10-06T10:00:00Z", "started_at": "2026-10-06T10:00:00Z", "finished_at": "2026-10-06T10:00:00Z" }]limit?Limit每页返回的任务数,1–100,默认 20。
默认
20type?string按任务类型筛选,多个类型用英文逗号分隔:tts、video、image、voice_design、audio_composition。
status?string按任务状态筛选,多个状态用英文逗号分隔。
cursor?string分页游标,取自上一页响应头 X-Next-Cursor。
idempotency_key?string按提交时使用的 Idempotency-Key 查找任务。
请求成功
application/json- response
[index: integer]?