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
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).
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidpublication_id*stringFormat
uuidstatus?string|nulltask?string|nullcursor?string|nulllimit?integerDefault
25Request fulfilled, document follows
application/json- response
next_cursor?string|nulltasks*array<>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" } ]}