You can send a message via the Roezan API in Ontraport automations and this guide will show you how.
Sending An SMS/MMS Message Via API Request
Ontraport automations allow the use of HTTP webhooks which is how we'll have to connect the two platforms.
API Overview
For an overview of Roezan's publicly exposed API methods, visit this link for documentation: https://developer.roezan.com/docs/
Sending A Message Via Ontraport Automation Webhooks
Open an Ontraport automation that you want to integrate.
Add a Webhook step
Go to the Advanced tab and select "Webhook"
Select the Webhook step and focus on the left sidebar that is open
Webhook URL
Specify the Webhook URL. This is going to be composed of two parts:
The base API URL: https://app.roezan.com/api
The Endpoint subpath: /integrations/message/send
The end result (destination URL) like this:
https://app.roezan.com/api/integrations/message/send
Webhook Method
Select the HTTP POST method that corresponds with the action you're taking (e.g. POST, GET, DELETE).
Webhook Headers
Authorization:
Name: x-api-key
Value: (Your API Key from your profile)
Content-Type: application/json
Request
If you are sending data in the request you'll put that in the "Add the data to send" section.
You'll find examples under the Roezan API documentation under the "Request" section
Here's an example of sending a message to a Contact
Note: You can add any Ontraport "merge fields" to customize things in the request.
See that "[First Name]"? That will use the Contact's first name from Ontraport in that message. Simply select the "merging" arrow at the top left of this section to see your options
Description
Lastly, give your Webhook a description so that you can know what is happening at that step in your automation
Testing
One last piece of advice: TEST! Create your automation, add yourself to it and ensure that you receive the text messages appropriately!
As with anything semi-technical, there can be mistakes, and fixing them before you send a big batch of contacts through the automation can save you a lot of time, heartache, and lost profits!