Skip to main content

Generate RCS deeplink

GET 
/messages/rcs/deeplinks/:agent_id

Generate a deeplink URL that can be used to start an RCS conversation with a specific agent.

Request

Path Parameters

    agent_id stringrequired

    RCS agent ID

Query Parameters

    phone_number string

    Phone number in E164 format (URL encoded)

    Example: %2B18445550001
    body string

    Pre-filled message body (URL encoded)

    Example: hello%20world

Responses

200: Successful response with deeplink URL

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/messages/rcs/deeplinks/:agent_id' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": {
"url": "sms:+18445550001?service_id=my_agent_id%40rbm.goog&body=hello%20world"
}
}