Skip to main content

Get an embedding task's status

GET 
/ai/embeddings/:task_id

Check the status of a current embedding task. Will be one of the following:

  • queued - Task is waiting to be picked up by a worker
  • processing - The embedding task is running
  • success - Task completed successfully and the bucket is embedded
  • failure - Task failed and no files were embedded successfully
  • partial_success - Some files were embedded successfully, but at least one failed

Request

Path Parameters

    task_id Task Idrequired

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/ai/embeddings/:task_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"task_name": "string",
"status": "queued",
"created_at": "string",
"finished_at": "string"
}
}