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

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

const response = await client.ai.assistants.sendSMS('assistant_id', { from: 'from', text: 'text', to: 'to' });

console.log(response.conversation_id);
{
  "conversation_id": "<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
from
string
required
to
string
required
text
string
required
conversation_metadata
Conversation Metadata · object
should_create_conversation
boolean

Response

Successful Response

conversation_id
string