Get Tasks by Status
GET/ai/embeddings
Retrieve tasks for the user that are either queued
, processing
, failed
, success
or partial_success
based on the query string. Defaults to queued
and processing
.
Request
Query Parameters
status string[]
List of task statuses i.e. status=queued&status=processing
Responses
200: Successful Response
- application/json
422: Validation Error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ai/embeddings' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": [
{
"user_id": "string",
"task_id": "string",
"task_name": "string",
"status": "queued",
"created_at": "2024-07-29T15:51:28.071Z",
"finished_at": "2024-07-29T15:51:28.071Z",
"bucket": "string"
}
]
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}