跳转到主要内容
GET
/
jobs
/
{id}
/
streaming
任务 - 流式更新
curl --request GET \
  --url https://api-dex.chainstream.io/jobs/{id}/streaming \
  --header 'Authorization: Bearer <token>'
{
  "id": 1,
  "data": {
    "id": "5rKfmXQyMhz7F2zRE6SpWWx3YkSxtA4gFqZD8CwGRYMx5YLTB8NhbiM9xEHG9jruiWdUyUz7Fpz8jmB8SKcjsLqe",
    "status": "completed",
    "result": {
      "success": true,
      "data": {
        "message": "Job completed successfully"
      }
    }
  }
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

id
string
必填

任务标识符

示例:

"12345"

响应

200 - application/json

SSE流建立成功

id
number
必填

流式任务ID

示例:

1

data
object
必填

流式数据

示例:
{
"id": "5rKfmXQyMhz7F2zRE6SpWWx3YkSxtA4gFqZD8CwGRYMx5YLTB8NhbiM9xEHG9jruiWdUyUz7Fpz8jmB8SKcjsLqe",
"status": "completed",
"result": {
"success": true,
"data": { "message": "Job completed successfully" }
}
}