Generate RCS Deeplink
Use this endpoint to generate an RCS deeplink using Channel Manager API.
Example
Find the description for all variables used in each code snippet below:
| Key | Description |
|---|---|
VONAGE_API_KEY | Your Vonage API key (see it on |
VONAGE_API_SECRET | Your Vonage API secret (also available on |
CHANNEL_MANAGER_RCS_AGENT_SENDER_ID | A unique sender identifier for the RCS Agent on the Vonage platform. |
COUNTRY_CODE | The two digit country code for the number. For example: |
Prerequisites
If you do not have an application you can create one. Make sure you also configure your webhooks.
Write the code
Add the following to generate-rcs-deeplink.sh:
Copy
curl -X POST https://api.nexmo.com/v1/channel-manager/rcs/deeplink/generate \
-u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d $'{
"sender_id": "'${CHANNEL_MANAGER_RCS_AGENT_SENDER_ID}'",
"country": "'${COUNTRY_CODE}'"
}'Run your code
Save this file to your machine and run it:
bash generate-rcs-deeplink.sh