import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
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"
}
}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: 'My API Key',
});
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"
}
}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)
Was this page helpful?