Check out our upcoming events and meetups! View events ā
Generate a deeplink URL that can be used to start an RCS conversation with a specific agent.
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.messages.rcs.generateDeeplink('agent_id');
console.log(response.data);{
"data": {
"url": "sms:+18445550001?service_id=my_agent_id%40rbm.goog&body=hello%20world"
}
}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.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
RCS agent ID
Phone number in E164 format (URL encoded)
Pre-filled message body (URL encoded)
Successful response with deeplink URL
Show child attributes
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 response = await client.messages.rcs.generateDeeplink('agent_id');
console.log(response.data);{
"data": {
"url": "sms:+18445550001?service_id=my_agent_id%40rbm.goog&body=hello%20world"
}
}