Skip to main content
GET
Get task

Authorizations

Authorization
string
header
required

API Key created in the DreamTo console, sent as Authorization: Bearer <API Key>.

Query Parameters

taskId
string
required

Task ID: data.taskId returned by createTask.

Example:

"4b9e2d7a0c1f48e6a3d5b7c9e1f20a84"

Response

200 - application/json

Always HTTP 200. With code 200, data is the task (whether the task succeeded is data.state); any other code is an error with data null.

Response of recordInfo; always HTTP 200.

code
integer<int64>
required

Result code:

  • 200: found (whether the task succeeded is data.state)
  • 401: missing or invalid API Key
  • 405: wrong HTTP method
  • 422: taskId is missing, unknown, belongs to another account or has expired (msg is recordInfo is null)
  • 429: too many requests
  • 500: server error; retry later
msg
string
required

Message: success, or the English reason of an error.

data
object
required

The task; null on error.