跳转到主要内容
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"
      }
    }
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

任务标识符

Example:

"12345"

Response

200 - application/json

SSE流建立成功

id
number
required

流式任务ID

Example:

1

data
object
required

流式数据

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