Customer.io

Overview

This guide explains how to connect the Miatel SMS API to the Customer.io platform using webhooks. This way, you can send SMS messages directly from Customer.io campaigns, using dynamic customer data.

Before You Start

To complete the setup successfully, make sure you have:

  • An active Miatel account with access to the SMS API (username and password)

  • A Customer.io workspace with access to Journeys and the Webhook action

  • Customer.io IP addresses whitelisted in Miatel platform, so that requests are not blocked

Setting up a Webhook in Customer.io

  1. In a Journey, drag the Send and Receive Data block

  1. Click Add Request

  1. Fill in the fields:

  • Method: GET

  • Request URL:

https://sms-hub.miatel.com:4849/sendsms?username=example_username&password=example_password&from=YourBrand&to={{customer.phone_number}}&text={{customer.message | url_encode}}&comment={{campaign.name | url_encode}}

In the Sending behavior section, select Send automatically so that the message is sent immediately.

Explanation of parameters

Parameter
Description

username / password

Your Miatel API credentials

to

Recipient phone number in E.164 format

text

Message text

comment

Additional comment (e.g., campaign name).

Testing

  1. In Customer.io, open the created webhook and click Send test.

  2. Make sure the response includes code 202 Accepted. This means Miatel Platform successfully accepted the message for delivery ✨

Last updated

Was this helpful?