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>"
}
]
}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.
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>"
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
List of task statuses i.e. status=queued&status=processing
List of task statuses i.e. status=queued&status=processing
Successful Response
Show child attributes
Status of an embeddings task.
queued, processing, success, failure, partial_success Was this page helpful?