Check out our upcoming events and meetups! View events ā
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const rcsAgentResponse = await client.messaging.rcs.agents.retrieve('id');
console.log(rcsAgentResponse.data);{
"data": {
"agent_id": "TestAgent",
"user_id": "2ecf295b-36c6-4d43-ad05-71eb1e560518",
"profile_id": "4001932a-b8a3-42fc-9389-021be6388909",
"webhook_url": "http://example.com",
"webhook_failover_url": "http://example.com",
"agent_name": "Test Agent",
"enabled": true,
"created_at": "2024-01-01T12:00:00.000Z",
"updated_at": "2024-01-01T12:00:00.000Z"
}
}Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const rcsAgentResponse = await client.messaging.rcs.agents.retrieve('id');
console.log(rcsAgentResponse.data);{
"data": {
"agent_id": "TestAgent",
"user_id": "2ecf295b-36c6-4d43-ad05-71eb1e560518",
"profile_id": "4001932a-b8a3-42fc-9389-021be6388909",
"webhook_url": "http://example.com",
"webhook_failover_url": "http://example.com",
"agent_name": "Test Agent",
"enabled": true,
"created_at": "2024-01-01T12:00:00.000Z",
"updated_at": "2024-01-01T12:00:00.000Z"
}
}