Skip to main content
GET
/
ai
/
embeddings
/
buckets
/
{bucket_name}
JavaScript
import Telnyx from 'telnyx';

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

const bucket = await client.ai.embeddings.buckets.retrieve('bucket_name');

console.log(bucket.data);
{
  "data": [
    {
      "filename": "<string>",
      "status": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "last_embedded_at": "2023-11-07T05:31:56Z",
      "error_reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

bucket_name
string
required

Response

Successful Response

data
EmbeddingsBucketFiles · object[]
required