Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Telnyx Messages API is one of 168 APIs that Telnyx publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Messages. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 10 operations across 9 paths, and defines 13 schemas. It is described by OpenAPI 3.1.0, at version 2.0.0.

Requests are made against a single base URL, https://api.telnyx.com/v2.

10 operations 9 paths 13 schemas 1 DELETE2 GET7 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
2.0.0
Base URL
https://api.telnyx.com/v2
Authentication
HTTP Bearer, HTTP Bearer, OAuth 2.0, HTTP Bearer, HTTP Bearer, HTTP Bearer
Resource Areas
1

Authentication & Security 6

Telnyx Messages API declares 6 security schemes for authenticating requests. It accepts HTTP bearer tokens (bearerAuth). It accepts HTTP bearer tokens (branded-calling_bearerAuth). It supports OAuth 2.0 (oauthClientAuth) using the authorizationCode and clientCredentials flows, exposing 1 scope. It accepts HTTP bearer tokens (JWT) (outbound-voice-profiles_bearerAuth). It accepts HTTP bearer tokens (pronunciation-dicts_bearerAuth). It accepts HTTP bearer tokens (JWT) (stored-payment-transactions_bearerAuth). By default, every request must be authenticated.

  • branded-calling_bearerAuth — API key passed as a Bearer token in the Authorization header
  • oauthClientAuth — OAuth 2.0 authentication for Telnyx API and MCP integrations
  • pronunciation-dicts_bearerAuth — Telnyx API v2 key. Obtain from https://portal.telnyx.com

Paths & Operations 10

Across 9 paths, the API surfaces 10 operations — 1 DELETE, 2 GET, 7 POST. Each is listed below with its method, path, parameters, and response codes.

Messages 10

Messages

POST
/messages
Send a message
SendMessage body → 2004XX
POST
/messages/alphanumeric_sender_id
Send a message using an alphanumeric sender ID
SendAlphanumericSenderIdMessage body → 200400401422
GET
/messages/group/{message_id}
Retrieve group MMS messages
GetGroupMmsMessages 1 param → 200401404
POST
/messages/group_mms
Send a group MMS message
CreateGroupMmsMessage body → 2004XX
POST
/messages/long_code
Send a long code message
CreateLongCodeMessage body → 2004XX
POST
/messages/number_pool
Send a message using number pool
CreateNumberPoolMessage body → 2004XX
POST
/messages/schedule
Schedule a message
ScheduleMessage body → 2004XX
POST
/messages/short_code
Send a short code message
CreateShortCodeMessage body → 2004XX
DELETE
/messages/{id}
Cancel a scheduled message
CancelMessage 1 param → 2004034044XX
GET
/messages/{id}
Retrieve a message
GetMessage 1 param → 2004XX

Schemas 13

The contract defines 13 schemas that model the data the API accepts and returns. The most detailed are OutboundMessagePayload (29 properties), OutboundMessagePayloadCancelled (28 properties), InboundMessagePayload (27 properties), CreateMessageRequest (13 properties). Each schema is shown below with its type and property counts.

OutboundMessagePayload
object
29 properties
CreateShortCodeMessageRequest
object
11 properties 2 required
OutboundMessagePayloadCancelled
object
28 properties
CreateGroupMMSMessageRequest
object
8 properties 2 required
CreateScheduledMessageRequest
object
12 properties 1 required
CreateNumberPoolMessageRequest
object
11 properties 2 required
ToNumber
string
Receiving address (+E.164 formatted phone number or short code).
OutboundMessageResponse
object
1 property
CreateMessageRequest
object
13 properties 1 required
InboundMessagePayload
object
27 properties
messaging_Errors
object
1 property
CreateLongCodeMessageRequest
object
11 properties 2 required
messaging_Error
object
5 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

telnyx-messages-api-openapi.yml Raw ↑

Other APIs Telnyx publishes across the network.

Telnyx Access Tokens API
Telnyx Addresses API
Telnyx Advanced Number Orders API
Telnyx Assistants API
Telnyx Audio API
Telnyx Audit Logs API
Telnyx Authentication Providers API
Telnyx AutoRechargePreferences API
Telnyx Billing API
Telnyx Billing Groups API
Telnyx Brands API
Telnyx Bucket SSL Certificate API