How to use Twilio on REST client like Postman

2.1k Views Asked by At

Now I am at Stack Overflow as I could not get a simple answer elsewhere for my problem.

I need to send multiple messages with Twilio using Postman. I need to know the script and procedure how to do it. I would prefer JSON(application/json) under body>raw. And I would request if a screencast can be added to it.

Thanks in advance.

1

There are 1 best solutions below

2
On
  1. Open Postman, new tab for a new request
  2. Select POST from the request type drop-down
  3. Enter request URL

https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages

(replace ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX with YOUR_TWILIO_ACCOUNT_SID)

  1. Click on Authorization tab (it's under the request type drop-down) and then for the type select Basic Auth and you will see two fields Username and Password

  2. Enter YOUR_TWILIO_ACCOUNT_SID for Username and YOUR_TWILIO_AUTH_TOKEN for Password

  3. Next, click on the Body tab and make sure form-data is selected from the radio buttons. Here you need to enter Key Value pairs like in the picture below (but replace with your values, From must be your Twilio number):

enter image description here

  1. Of course, click on the blue Send button