Operations 1
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/telnyx:telnyx-whatsapp-messaging-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Telnyx Whatsapp messaging API
version: 2.0.0
contact:
email: support@telnyx.com
x-endpoint-cost: light
x-refined-note:
- x-latency-category differs across the merged source definitions and was not carried
description: 'Operations tagged Whatsapp messaging across 2 of this provider''s published API definitions: telnyx-openapi.json, telnyx-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.telnyx.com/v2
description: Version 2.0.0 of the Telnyx API
security:
- bearerAuth: []
tags:
- name: Whatsapp messaging
description: Send Whatsapp messages
paths:
/messages/whatsapp:
post:
tags:
- Whatsapp messaging
summary: Send a Whatsapp message
description: Sends a WhatsApp message using a Telnyx WhatsApp-enabled number. The message body, interactive elements, media, location, and reaction content are specified in the `whatsapp_message` field. Delivery progress and final disposition are reported asynchronously through messaging webhooks.
operationId: SendWhatsappMessage
requestBody:
description: Whatsapp message body
content:
application/json:
schema:
$ref: '#/components/schemas/WhatsappMessage'
required: true
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/WhatsappResponse'
4XX:
$ref: '#/components/responses/messaging_GenericErrorResponse_0b38e7044b'
servers:
- url: https://api.telnyx.com/v2
description: Version 2.0.0 of the Telnyx API
components:
schemas:
WhatsappMedia:
type: object
properties:
link:
type: string
description: media URL
format: url
example: http://example.com/media.jpg
caption:
type: string
description: media caption
filename:
type: string
description: file name with extension
voice:
type: boolean
description: true if voice message
RCSToItem:
type: object
properties:
phone_number:
type: string
example: '+13125551234'
status:
type: string
example: queued
carrier:
type: string
example: Verizon Wireless
line_type:
type: string
example: Wireless
WhatsappLocation:
type: object
properties:
latitude:
type: string
longitude:
type: string
name:
type: string
address:
type: string
WhatsappMessage:
required:
- from
- to
- whatsapp_message
type: object
properties:
from:
type: string
description: Phone number in +E.164 format associated with Whatsapp account
example: '+13125551234'
to:
type: string
description: Phone number in +E.164 format
example: '+13125551234'
whatsapp_message:
$ref: '#/components/schemas/WhatsappMessageContent'
type:
type: string
description: Message type - must be set to "WHATSAPP"
example: WHATSAPP
enum:
- WHATSAPP
webhook_url:
description: The URL where webhooks related to this message will be sent.
type: string
format: url
messaging_profile_id:
description: Messaging profile ID - required if the 'from' number is not SMS-enabled
type: string
format: uuid
RCSTo:
type: array
items:
$ref: '#/components/schemas/RCSToItem'
WhatsappReaction:
type: object
properties:
message_id:
type: string
emoji:
type: string
messaging_Errors_0b38e7044b:
properties:
errors:
type: array
items:
$ref: '#/components/schemas/messaging_Error_0b38e7044b'
WhatsappContact:
type: object
properties:
addresses:
type: array
items:
type: object
properties:
street:
type: string
city:
type: string
state:
type: string
zip:
type: string
country:
type: string
country_code:
type: string
type:
type: string
birthday:
type: string
emails:
type: array
items:
type: object
properties:
email:
type: string
type:
type: string
name:
type: string
org:
type: object
properties:
company:
type: string
department:
type: string
title:
type: string
phones:
type: array
items:
type: object
properties:
phone:
type: string
x-format: E+164
type:
type: string
wa_id:
type: string
urls:
type: array
items:
type: object
properties:
url:
type: string
format: url
type:
type: string
WhatsappMessageContent:
type: object
properties:
audio:
$ref: '#/components/schemas/WhatsappMedia'
document:
$ref: '#/components/schemas/WhatsappMedia'
image:
$ref: '#/components/schemas/WhatsappMedia'
sticker:
$ref: '#/components/schemas/WhatsappMedia'
video:
$ref: '#/components/schemas/WhatsappMedia'
interactive:
$ref: '#/components/schemas/WhatsappInteractive'
location:
$ref: '#/components/schemas/WhatsappLocation'
contacts:
type: array
items:
$ref: '#/components/schemas/WhatsappContact'
reaction:
$ref: '#/components/schemas/WhatsappReaction'
biz_opaque_callback_data:
type: string
description: custom data to return with status update
type:
type: string
enum:
- audio
- document
- image
- sticker
- video
- interactive
- location
- template
- reaction
- contacts
- text
text:
type: object
description: Text message content. Can only be sent within a 24-hour customer service window.
properties:
body:
type: string
description: The text message body.
example: Hello from Telnyx!
preview_url:
type: boolean
description: Whether to show a URL preview in the message.
default: false
required:
- body
template:
type: object
description: Template message object. Provide either template_id or name + language to identify the template.
properties:
template_id:
type: string
description: Telnyx template ID (the id field from template list/get responses). When provided, name and language are resolved automatically.
example: 019cd44b-3a1c-781b-956e-bd33e9fd2ac6
name:
type: string
description: Template name as registered with Meta. Required unless template_id is provided.
example: order_confirmation
language:
type: object
description: Template language. Required unless template_id is provided.
properties:
policy:
type: string
example: deterministic
code:
type: string
description: Language code (e.g. en_US)
example: en_US
required:
- code
components:
type: array
description: Template parameter values for header, body, and button components.
items:
type: object
properties:
type:
type: string
enum:
- header
- body
- button
sub_type:
type: string
enum:
- quick_reply
- url
index:
type: integer
description: Button index (required for button components)
parameters:
type: array
items:
type: object
properties:
type:
type: string
enum:
- text
- image
- video
- document
- currency
- date_time
text:
type: string
WhatsappInteractive:
type: object
properties:
type:
type: string
enum:
- cta_url
- list
- carousel
- button
- location_request_message
action:
type: object
properties:
name:
type: string
button:
type: string
buttons:
type: array
items:
type: object
properties:
type:
type: string
enum:
- reply
reply:
type: object
properties:
title:
type: string
description: button label, 20 character maximum
id:
type: string
description: unique identifier for each button, 256 character maximum
catalog_id:
type: string
product_retailer_id:
type: string
sections:
type: array
items:
type: object
properties:
product_items:
type: array
items:
type: object
properties:
product_retailer_id:
type: string
rows:
type: array
items:
type: object
properties:
id:
type: string
description: arbitrary string identifying the row, 200 character maximum
title:
type: string
description: row title, 24 character maximum
description:
type: string
description: row description, 72 character maximum
title:
type: string
description: section title, 24 character maximum
mode:
type: string
parameters:
type: object
properties:
display_text:
type: string
description: button label text, 20 character maximum
url:
type: string
format: url
description: button URL to load when tapped by the user
cards:
type: array
items:
type: object
properties:
card_index:
type: integer
description: unique index for each card (0-9)
type:
type: string
enum:
- cta_url
header:
type: object
properties:
type:
type: string
enum:
- image
- video
image:
$ref: '#/components/schemas/WhatsappMedia'
video:
$ref: '#/components/schemas/WhatsappMedia'
body:
type: object
properties:
text:
type: string
description: 160 character maximum, up to 2 line breaks
action:
type: object
properties:
product_retailer_id:
type: string
description: the unique retailer ID of the product
catalog_id:
type: string
description: the unique ID of the catalog
body:
type: object
properties:
text:
type: string
description: body text, 1024 character maximum
footer:
type: object
properties:
text:
type: string
description: footer text, 60 character maximum
header:
type: object
properties:
document:
$ref: '#/components/schemas/WhatsappMedia'
image:
$ref: '#/components/schemas/WhatsappMedia'
video:
$ref: '#/components/schemas/WhatsappMedia'
text:
type: string
description: header text, 60 character maximum
sub_text:
type: string
WhatsappResponse:
type: object
properties:
data:
type: object
properties:
record_type:
type: string
example: message
direction:
type: string
example: outbound
id:
type: string
description: message ID
example: 4031938e-60e4-4235-a8dd-0b1c55a23e7a
type:
type: string
example: WHATSAPP
organization_id:
type: string
example: 9f61d8e1-7687-4d6d-9cae-9ff682985983
messaging_profile_id:
type: string
example: 4001781e-626f-4a41-a914-b1b682150f94
from:
type: object
properties:
phone_number:
type: string
description: Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code).
x-format: address
status:
type: string
enum:
- received
- delivered
carrier:
type: string
description: The carrier of the sender.
line_type:
type: string
description: The line-type of the sender.
enum:
- Wireline
- Wireless
- VoWiFi
- VoIP
- Pre-Paid Wireless
- ''
to:
$ref: '#/components/schemas/RCSTo'
body:
$ref: '#/components/schemas/WhatsappMessageContent'
encoding:
type: string
example: utf-8
received_at:
type: string
format: date-time
wait_seconds:
type:
- number
- 'null'
format: float
description: Seconds the message is queued due to rate limiting before being sent to the carrier. Represents the maximum wait across all applicable rate limits (account, carrier, campaign). 0.0 = no queuing delay.
example: 0.5
messaging_Error_0b38e7044b:
required:
- code
- title
properties:
code:
type: string
x-format: integer
title:
type: string
detail:
type: string
source:
type: object
properties:
pointer:
description: JSON pointer (RFC6901) to the offending entity.
type: string
format: json-pointer
parameter:
description: Indicates which query parameter caused the error.
type: string
meta:
type: object
messaging_Errors:
properties:
errors:
items:
$ref: '#/components/schemas/messaging_Error'
type: array
messaging_Error:
properties:
code:
type: string
x-format: integer
detail:
type: string
meta:
type: object
source:
properties:
parameter:
description: Indicates which query parameter caused the error.
type: string
pointer:
description: JSON pointer (RFC6901) to the offending entity.
format: json-pointer
type: string
type: object
title:
type: string
required:
- code
- title
responses:
messaging_GenericErrorResponse_0b38e7044b:
description: Unexpected error
content:
application/json:
schema:
$ref: '#/components/schemas/messaging_Errors_0b38e7044b'
example:
errors:
- code: string
title: string
detail: string
source:
pointer: /data/attributes/phone_number
parameter: string
messaging_GenericErrorResponse:
content:
application/json:
schema:
$ref: '#/components/schemas/messaging_Errors'
description: Unexpected error
securitySchemes:
BearerAuth:
type: http
scheme: bearer
bearerFormat: API key
description: 'Telnyx API key supplied as `Authorization: Bearer <token>`. In production, auth may be validated by the API gateway and forwarded via Telnyx auth headers.'
Payment:
type: apiKey
in: header
name: Authorization
description: 'Machine Payment Protocol credential used on paid retries, sent as `Authorization: Payment ...`. Obtained by paying a challenge returned in the `WWW-Authenticate` header of a 402 response. This is not a Telnyx API key; initial challenge requests use standard bearer authentication instead.'
agent-memory_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
bearerAuth:
type: http
scheme: bearer
branded-calling_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
collections_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Collections and results are automatically scoped to the authenticated user's organization.
number-reputation_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Generate one at https://portal.telnyx.com/#/app/api-keys.
oauthClientAuth:
type: oauth2
flows:
clientCredentials:
tokenUrl: https://api.telnyx.com/v2/oauth/token
scopes:
admin: Administrative access to Telnyx resources
authorizationCode:
authorizationUrl: https://api.telnyx.com/v2/oauth/authorize
tokenUrl: https://api.telnyx.com/v2/oauth/token
refreshUrl: https://api.telnyx.com/v2/oauth/token
scopes:
admin: Administrative access to Telnyx resources
description: OAuth 2.0 authentication for Telnyx API and MCP integrations
outbound-voice-profiles_bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
pronunciation-dicts_bearerAuth:
type: http
scheme: bearer
description: Telnyx API v2 key. Obtain from https://portal.telnyx.com
rcs-registration_bearerAuth:
type: http
scheme: bearer
bearerFormat: API key
stored-payment-transactions_bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
transcriptions-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key. Results are automatically scoped to the authenticated user's organization.
web-search_bearerAuth:
type: http
scheme: bearer
description: Telnyx API key
x-refined-from:
- telnyx-openapi.json
- telnyx-openapi.yml
x-service-info:
categories:
- communication
- developer-tools
docs:
apiReference: https://developers.telnyx.com
homepage: https://telnyx.com
llms: https://telnyx.com/llms.txt