import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const scheduledEventResponse = await client.ai.assistants.scheduledEvents.retrieve('event_id', {
assistant_id: 'assistant_id',
});
console.log(scheduledEventResponse);{
"telnyx_conversation_channel": "phone_call",
"telnyx_end_user_target": "<string>",
"telnyx_agent_target": "<string>",
"scheduled_at_fixed_datetime": "2023-11-07T05:31:56Z",
"assistant_id": "<string>",
"retry_count": 0,
"retry_attempts": 123,
"scheduled_event_id": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "pending",
"conversation_metadata": {},
"errors": [
"<string>"
]
}Retrieve a scheduled event by event ID
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const scheduledEventResponse = await client.ai.assistants.scheduledEvents.retrieve('event_id', {
assistant_id: 'assistant_id',
});
console.log(scheduledEventResponse);{
"telnyx_conversation_channel": "phone_call",
"telnyx_end_user_target": "<string>",
"telnyx_agent_target": "<string>",
"scheduled_at_fixed_datetime": "2023-11-07T05:31:56Z",
"assistant_id": "<string>",
"retry_count": 0,
"retry_attempts": 123,
"scheduled_event_id": "<string>",
"conversation_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"status": "pending",
"conversation_metadata": {},
"errors": [
"<string>"
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Union type for different scheduled event response types
phone_call, sms_chat pending, in_progress, completed, failed Was this page helpful?