Skip to main content
GET
/
messages
/
rcs
/
deeplinks
/
{agent_id}
JavaScript
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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

RCS agent ID

Query Parameters

phone_number
string

Phone number in E164 format (URL encoded)

body
string

Pre-filled message body (URL encoded)

Response

Successful response with deeplink URL

data
object
required