You can send SMS from Mapsly using Send SMS action. However, if you want to send SMS using your RingCentral account, you can use the Invoke URL action.
To configure it, you need to add Invoke URL action:
In the Invoke URL fill in the following:
Action Name
Method: POST
Content Type: POST FORM
Target URL: https://platform.ringcentral.com/restapi/oauth/token (or https://platform.devtest.ringcentral.com/restapi/oauth/token if you are using the sandbox)
Header parameter: Authorization: Basic {YOUR_AUTHORIZATION_TOKEN}
Form parameter: grant_type with value equal to urn:ietf:params:oauth:grant-type:jwt-bearer
Form parameter: assertion with value equal to {YOUR_JWT_TOKEN}
Obtaining Authorization token
You can obtain the Authorization token by creating a quick SMS app in RingCentral using this link.
After you create the app, you will see it on this page, and it will look like this:
Inside that app, you will see the Client ID and Client Secret:
Copy the Client ID and Client Secret in order generate a base64 authorization key. You can use some online tools like:
Obtaining JWT token
In order to obtain the JWT token, you need to open the following page:
There, you need to click the "Create JWT" button to create your JWT token.
Once created, use this JWT token as the assertion parameter in the Invoke URL that we configured before.
Sending SMS
Once the Invoke URL action to refresh the access token is configured, you may proceed with creating the final Invoke URL that will send the actual SMS. This Invoke URL action needs to be placed right after the previous Invoke URL.
In the Invoke URL fill in the following:
Action Name
Method: POST
Content Type: JSON
Target URL: https://platform.ringcentral.com/restapi/v1.0/account/~/extension/~/sms (or https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/sms if you are using the sandbox)
Header parameter: Authorization: Bearer {{ lastAction.response.access_token }}
Body (replace the from and to phone numbers, as well as the SMS text):
{
"from": {
"phoneNumber": "+123456789"
},
"to": [
{
"phoneNumber": "{{ record.Phone | replace({' ': '', '(': '', ')': '', '-': ''}) }}"
}
],
"text": "Sample text"
}
If you have any questions or need help with configuring your RingCentral SMS automation, contact Mapsly support team 24/7 by chat or email at [email protected]. We'll be happy to help.