Skip to main content
POST
/
ai
/
assistants
/
{assistant_id}
/
tags
JavaScript
import Telnyx from 'telnyx';

const client = new Telnyx({
  apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});

const response = await client.ai.assistants.tags.add('assistant_id', { tag: 'tag' });

console.log(response.tags);
{
  "tags": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

assistant_id
string
required

Body

application/json
tag
string
required

Response

Successful Response

tags
string[]
required