List Tasks
Authenticate using API Key in request header
In: header
Query Parameters
This specifies a limit on the number of objects to return, ranging between 1 and 100.
50
1 <= value <= 100
Array with the task IDs, formatted as a CSV array.
Specifies sorting behavior. The two options are asc
and desc
to sort ascending and descending respectively, with default sort being ascending. Paging works in both directions.
"asc"
"asc" | "desc"
A cursor to use in pagination. startingAfter
is a task ID that defines your place in the list. For example, if you make a list request and receive 50 objects, ending with tsk_2c9AXIj48cUYJtCuv1gsQtHGDzK
, your subsequent call can include startingAfter=tsk_2c9AXIj48cUYJtCuv1gsQtHGDzK
to fetch the next page of the list.
A cursor to use in pagination. endingBefore
is a task ID that defines your place in the list. For example, if you make a list request and receive 50 objects, starting with tsk_2c9AXIj48cUYJtCuv1gsQtHGDzK
, your subsequent call can include endingBefore=tsk_2c9AXIj48cUYJtCuv1gsQtHGDzK
to fetch the previous page of the list.
Array with the task statuses, formatted as a CSV array.
"running" | "completed" | "failed"
Response Body
curl -X GET "https://api.bem.ai/v1-alpha/tasks?limit=50&taskIDs=string&sortOrder=asc&startingAfter=string&endingBefore=string&status=running"
{
"totalCount": 0,
"tasks": [
{
"taskID": "string",
"createdAt": "2019-08-24T14:15:22Z",
"type": "transformation",
"status": "running"
}
]
}