SMS Setup with POSTMAN

This article gives an overview of how you can get started with Telnyx SMS product

Shubam avatar
Written by Shubam
Updated this week

Make sure you've configured your account, such as purchasing a number, creating a messaging profile, and associating that messaging profile with that number.

More details for sending SMS using POSTMAN here and for specific error codes here.

POSTMAN is a RESTful HTTP client and can be downloaded from here: https://www.postman.com/downloads/

Breaking Line

Sending SMS Via API v1

At this stage, you are ready to send SMS.

  1. In "Headers", set your "x-profile-secret" to the secret under your Messaging Profile.

  2. In the "Body", you can paste in the following:

{
"from": "+1[your messaging-enabled number]",
"to": "+1[intended recipient]",
"body": "Hello World"
}


Video demo showing sending SMS via Postman using API v1

Yay! You have sent your first SMS using API V1.

Breaking Line

Sending SMS Via API V2

Open up, Postman. "POST" to "https://api.telnyx.com/v2/messages"

Now you need to generate API V2 secret Key

For using API V2 to send out SMS, you need to generate V2 key here in the API Keys Section

API keys section on the mission control portal.
  • Click on create API key on top

Create API key tab.
  • This will be the new API v2 key that will be used while sending SMS

API keys options section.
  • In the Postman "Headers", set your "Authorization" to the API v2 secret key and the Key should be preceded with "Bearer".

Authorization button.
  • In the "Body", you can paste in the following:

{
"from": "+1[your messaging-enabled number]",
"to": "+1[intended recipient]",
"text": "Hello World"
}

Video demo showing sending SMS via Postman using API V2

Kudos! now you know how to send SMS using API V2

Breaking Line
Did this answer your question?