Syndai Docs

List an app's background tasks

Use a key with only read scopes. Your customer_id is in the reply to Get the calling API key.

GET
/api/v1/external/coding/customers/{customer_id}/apps/{publication_id}/tasks

One app's background task runs, newest first: task, status (queued, running, cancel_requested, succeeded, failed, canceled, unknown), when it started and ended, a failure's error code, and for an owner or admin what it cost (USD) and which app member started it (null for anyone else). Never a run's input or result. status filters by running (not finished), succeeded, failed or canceled; task by name. Send next_cursor back as ?cursor= (?limit= 1..100, default 25).

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

customer_id*string
Formatuuid
publication_id*string
Formatuuid

Query Parameters

status?string|null
task?string|null
cursor?string|null
limit?integer
Default25

Response Body

Request fulfilled, document follows

application/json
  1. response
next_cursor?string|null
tasks*array<>
Example Request
curl -X GET 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/tasks'
Example Response
{  "next_cursor": "string",  "tasks": [    {      "cost_usd": 0,      "created_at": "2019-08-24T14:15:22Z",      "ended_at": "2019-08-24T14:15:22Z",      "error_code": "string",      "member": {        "id": "string",        "name": "string"      },      "operation_id": "string",      "status": "string",      "task": "string"    }  ]}
Was this page helpful?