Templates · Messaging

Twilio Messaging API collection template

Send SMS, list messages and start calls with the Twilio REST API.

What's inside

Send an SMS, read the messages of your account, start a phone call and check the account with Twilio. Trial accounts can send only to verified numbers.

5 requests in 2 folders · Base URL https://api.twilio.com/2010-04-01 · Basic auth

Set it up

  1. Open Twilio Messaging API in Requestarium (or in the app: Import, Start from a template) and import it. You get the collection and a "Twilio Messaging API" environment.
  2. Copy the Account SID and Auth Token from the Twilio Console, and buy or use a trial phone number for From.
  3. Fill in the environment, pick it in the environment menu and send the first request.

Environment variables

VariableWhat it is
twilioAccountSidAccount SID, AC…
twilioAuthTokensecretAuth Token.
fromNumberYour Twilio number in E.164, like +15005550006.
toNumberWhere to send, in E.164.
messageSidFilled by "Send an SMS".

Requests

Messages

  • POST
    Send an SMS /Accounts/{{twilioAccountSid}}/Messages.json

    Sends a text and saves its sid.

  • GET
    Fetch a message /Accounts/{{twilioAccountSid}}/Messages/{{messageSid}}.json

    Delivery status of the message.

  • GET
    List messages /Accounts/{{twilioAccountSid}}/Messages.json

    Recent messages of the account.

Voice and account

  • POST
    Start a call /Accounts/{{twilioAccountSid}}/Calls.json

    Calls the number and plays Twilio's demo TwiML.

  • GET
    Fetch the account /Accounts/{{twilioAccountSid}}.json

    Account status; a quick way to check the credentials.