跳轉到主要內容
GET
/
v2
/
job
/
{id}
/
streaming
任務 - 串流推送
curl --request GET \
  --url https://api.chainstream.io/v2/job/{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" }
}
}