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” – http://www.telerik.com/download/fiddler

…or a web browser extension like “Postman” – https://www.getpostman.com

If you prefer to use command line, use “cURL” – http://curl.haxx.se/

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}

https://api.mblox.com/xms/v1/{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
1

Sign up

Get Free Credits
2

Get Free Credits

Send a Message
3

Send a Message

Brands Trust Us

Viber
Uber
L'Oreal
Salon iQ
Intec