Webhooks are powerful ways to trigger an action programmatically in other applications. A Webhook is nothing but an API call made by a system to some other system. Most of the modern SMS service providers supports an API which can be called to trigger an SMS using their services. Blueshift’s webhook capabilities for SMS allows you to connect such SMS service provider and trigger SMS messages from Blueshift’s campaign journey.
Our integration allows you to send personalized, promotional, as well as transactional SMS to your customer.
It is important that all your customer phone numbers are saved in the E.164 standard.
Note: You must first set up a webhook so that Blueshift can receive messaging events for analytics and tracking.
Before you begin
Before you can set up integration with Blueshift, you must have your provider's webhook URL handy.
Set up integration
To use the SMS service provider of your choice to send messages, simply add your provider's webhook URL to the adapter you create in Blueshift.
To set up integration, complete the following steps:
- Sign in to the Blueshift app, and click Apps in the left navigation menu.
- Go to All Apps, search for, and select SMS via Webhook.
- You can also go to SMS Apps and select SMS via Webhook.
- Click Configure to view all the configured adapters.
- Click +ADAPTER to add an adapter.
- Add a Name for the adapter. If you have multiple adapters, the adapter name helps you to identify the integration.
- Provide the following details for integration:
Field Description Webhook URL Specify the webhook URL for the provider. Auth Header Specify the authentication header for the provider. Auth Token Specify the authentication token for the provider.
Click Save to add the adapter.
Here is an example of the message sent to the webhook when you use this adapter in a campaign SMS trigger.
Note: The message might also contain the txnid field if the campaign is an Event Triggered or a Segment Triggered campaign.
"message": "This is a webhook test",
- Create an SMS template for your messages.
- In your campaign journey, add an SMS trigger. On the SMS tab of the trigger, go to Send Settings and specify SMS via Webhook as the App and select the adapter that you just created.
- Send events data to Blueshift for analytics and tracking.
If you are using a webhook to send campaign messages to your SMS provider, you can send event data back to Blueshift by using the following URLs.
- If you are in the EU region, use the hostname api.eu.getblueshift.com instead of api.getblueshift.com.
- Ensure that you use the correct field names when you send event data to Blueshift.
- The event field can have the following values: delivered and bounce.
- If the campaign message contains the field txnid, you must include the field journey_uuid in the event data that you send to Blueshift.
|Short field name||Long field name|
POST campaign delivery events data to the following URL:
POST subscribe or unsubscribe events to the following URL:
For more information, see Unsubscribes for SMS.