Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const canaryDeployResponse = await client.ai.assistants.canaryDeploys.retrieve('assistant_id');
console.log(canaryDeployResponse.assistant_id);{
"assistant_id": "<string>",
"versions": [
{
"version_id": "<string>",
"percentage": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Endpoint to get a canary deploy configuration for an assistant.
Retrieves the current canary deploy configuration with all version IDs and their traffic percentages for the specified assistant.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const canaryDeployResponse = await client.ai.assistants.canaryDeploys.retrieve('assistant_id');
console.log(canaryDeployResponse.assistant_id);{
"assistant_id": "<string>",
"versions": [
{
"version_id": "<string>",
"percentage": 123
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Was this page helpful?