Using the REST API - Mblox

Using the REST API

Using the REST API

REST API - Sending your first message

How to Set up using the REST API

There are many ways to make API calls to our SMS REST API.  Here are some popular methods:

Use a free HTTP request GUI:

like “Fiddler” –

…or a web browser extension like “Postman” –

If you prefer to use command line, use “cURL” –

Send a message

Now you’re ready to submit a message to the “batches” endpoint:

HTTP method – Set the HTTP method to “POST

Host and endpoint – Set the host and endpoint, with your service username in place of {service_username}{service_username}/batches

Header – In the header, enter your authentication token and set the content type to JSON:

Authorization: Bearer {authentication_token}
Content-Type: application/json

Body – Enter the following JSON body, where {your_phone_number} is the recipient phone number, including the country code:

{“from”: “Mblox”,
“to”: [“{your phone number}”],
“body”: “Hi this is my first message using Mblox’s SMS REST API” }

Submit the request.

Get Started Today!

Sign Up

Sign up

Get Free Credits

Get Free Credits

Send a Message

Send a Message

Brands Trust Us

Salon iQ