Skip to main content
GET
/
ai
/
embeddings
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: 'My API Key',
});

const embeddings = await client.ai.embeddings.list();

console.log(embeddings.data);
{
  "data": [
    {
      "user_id": "<string>",
      "task_id": "<string>",
      "task_name": "<string>",
      "status": "queued",
      "created_at": "2023-11-07T05:31:56Z",
      "finished_at": "2023-11-07T05:31:56Z",
      "bucket": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

status
string[]

List of task statuses i.e. status=queued&status=processing List of task statuses i.e. status=queued&status=processing

Response

Successful Response

data
BackgroundTasksQueryResponse · object[]
required