Skip to main content
GET
/
api
/
common
/
query-async-task-result
Querying Async Task Results
curl --request GET \
  --url https://www.ailabapi.com/api/common/query-async-task-result \
  --header 'ailabapi-api-key: <api-key>'
{
  "request_id": "",
  "log_id": "",
  "error_detail": {
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_status": 0
}

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Query Parameters

task_id
string

The task_id returned by the asynchronous API.

Response

200 - application/json

Success

request_id
string
required

Request ID for debugging.

log_id
string
required

Log ID for debugging.

error_detail
object
required
task_status
enum<integer>
required

Task status.

  • 0: queued.
  • 1: processing.
  • 2: completed.
Available options:
0,
1,
2
data
object

Result payload. Available when task_status is 2. Structure depends on the async API.