cURL
curl --request GET \ --url https://api.mountsea.ai/xai/tasks \ --header 'Authorization: Bearer <token>'
{ "taskId": "<string>", "status": "pending", "result": {}, "errorMessage": "<string>", "errorCode": 123, "finishedAt": "2023-11-07T05:31:56Z", "createdAt": "2023-11-07T05:31:56Z", "traceId": "<string>" }
根据 taskId 查询任务执行状态和结果,支持轮询
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
任务ID
任务 ID
任务状态
pending
ready
assigned
processing
completed
failed
cancelled
timeout
任务结果(直接透传协议层返回,类型根据任务类型不同而变化)
错误信息
错误代码
完成时间
创建时间
追踪 ID