WhatsApp Business API

Messaging, voice calls, and AI conversations on one Telnyx number. Reach 3.3 billion WhatsApp users with templates, session messaging, and an AI Assistant that answers voice calls and replies on chat.

WhatsApp Business API
WHY TELNYX

Build WhatsApp experiences easily

  • WhatsApp AI

    AI on every conversation

    A Telnyx AI Assistant answers WhatsApp voice calls and replies to WhatsApp messages, on the same number, with no glue code between voice, messaging, and AI. One assistant, every WhatsApp interaction.

  • WhatsApp Product Image

    One number, every channel

    PSTN, SMS, WhatsApp messaging, and WhatsApp calls on a single Telnyx number. One API and one bill. WhatsApp is an add-on to the number you already run, not a new vendor.

  • Global_Numbers

    Global reach, local presence

    Local numbers in 130+ countries with telephony POPs worldwide. Meet customers where they are, on the channel they already use. 90%+ open rates on WhatsApp.

FEATURES

Everything you need for WhatsApp Business

Everything your business needs to send, receive, and manage WhatsApp messages and calls, on one platform.

  • AI Assistant on WhatsApp

    A Telnyx AI Assistant answers inbound WhatsApp voice calls, places outbound ones, and replies to WhatsApp messages. No glue code between voice, messaging, and AI. Same assistant, same number, same memory.

  • Two-way messaging

    Send approved templates (authentication, utility, marketing, service) and run free-form conversations during the 24-hour customer window. Handle real-time support, order updates, and appointment reminders.

  • Embedded signup

    Start onboarding from Mission Control. Complete Meta business verification and link your WhatsApp Business Account without switching tools.

  • Template management

    Create and manage message templates for authentication, utility, marketing, and service use cases. Submit for Meta approval directly from the portal.

  • Inbound calls

    Any WhatsApp user can call your Telnyx number from inside the app. Routes to your existing SIP, Voice API, or TeXML connection, no additional setup.

  • Outbound calls

    Initiate calls to any WhatsApp number via the Telnyx API using a WhatsApp SIP domain. Same dial mechanics across SIP, Voice API, and TeXML.

  • Bring Your Own Number (BYON)

    Import your existing WhatsApp number to Telnyx and keep the number you already have. Route inbound WhatsApp voice calls to any SIP Connection in your account from the Mission Control dropdown.

  • Coexistence

    Run the WhatsApp Business App and the Telnyx API on the same number. Staff keep chatting in the app while templates, automations, and AI replies flow through the API. Chat history syncs on request.

HOW IT WORKS

From zero to live in three steps.

  1. 1

    Connect your WABA

    In Mission Control, navigate to WhatsApp, then Connect. Select your WhatsApp Business Account through Meta's embedded signup. No separate Meta console needed.

  2. 2

    Verify your number

    Pick an active Telnyx number. Meta sends a verification code to confirm ownership. Enter it. The same number works for SMS, voice, and WhatsApp.

  3. 3

    Start messaging and assign an AI Assistant

    Create and submit your first message template. Toggle WhatsApp Calling on. Assign the number to a Telnyx AI Assistant for voice calls and messaging. You are live.

WHATSAPP MESSAGING API

Send your first WhatsApp message with embedded sign up

Start conversations with pre-approved templates, or reply inside the 24-hour session window with free-form text. Same endpoint for both.

Send template cURL

curl -X POST https://api.telnyx.com/v2/messages/whatsapp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "+15551234567",
    "to": "+15557654321",
    "whatsapp_message": {
      "type": "template",
      "template": {
        "name": "order_confirmation",
        "language": {
          "policy": "deterministic",
          "code": "en_US"
        },
        "components": [
          {
            "type": "body",
            "parameters": [
              {"type": "text", "text": "John"},
              {"type": "text", "text": "ORD-12345"}
            ]
          }
        ]
      }
    }
  }'

Send template Python

from telnyx import Telnyx
client = Telnyx(api_key="YOUR_API_KEY")

client.messages.send_whatsapp(
    from_="+15551234567",
    to="+15557654321",
    whatsapp_message={
        "type": "template",
        "template": {
            "name": "order_confirmation",
            "language": {"policy": "deterministic", "code": "en_US"},
            "components": [
                {
                    "type": "body",
                    "parameters": [
                        {"type": "text", "text": "John"},
                        {"type": "text", "text": "ORD-12345"}
                    ]
                }
            ]
        }
    }
)

Send template Node.js

import Telnyx from 'telnyx';
const client = new Telnyx({apiKey: 'YOUR_API_KEY'});

const message = await client.messages.sendWhatsapp({
  from: '+15551234567',
  to: '+15557654321',
  whatsapp_message: {
    type: 'template',
    template: {
      name: 'order_confirmation',
      language: { policy: 'deterministic', code: 'en_US' },
      components: [
        {
          type: 'body',
          parameters: [
            { type: 'text', text: 'John' },
            { type: 'text', text: 'ORD-12345' }
          ]
        }
      ]
    }
  }
});

Send text cURL (session)

curl -X POST https://api.telnyx.com/v2/messages/whatsapp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "+15551234567",
    "to": "+15557654321",
    "whatsapp_message": {
      "type": "text",
      "text": {
        "body": "Hi! Your order ORD-12345 has shipped and will arrive tomorrow.",
        "preview_url": false
      }
    }
  }'
VIDEO

See it in action

Build a WhatsApp restaurant booking agent with AI in Python. The same Telnyx AI Assistant answers WhatsApp voice calls and replies to WhatsApp messages on one number.

Telnyx Agent Skills

Build faster with AI

Telnyx Agent Skills provides pre-built tools for AI coding agents like Claude Code, Cursor, and Windsurf to integrate with the Telnyx WhatsApp API in minutes. Add WhatsApp messaging, voice, and AI to your application without building from scratch.

PRICING

See our WhatsApp pricing

Starting at $0.004 per message. AI Assistant voice calls at $0.05/min. Inference from $0.135 per 1M input tokens. Pay as you go, no subscription.

Starting at:

$0.004

Per message
RESOURCES

Get started quickly

Docs and guides for WhatsApp messaging, calling, and AI on one Telnyx number.

  • Article

    WhatsApp Quickstart

    Send your first WhatsApp message in minutes: embedded signup, templates, and webhooks.

  • Article

    WhatsApp AI Assistant conversations

    Connect a Telnyx AI Assistant to handle WhatsApp voice calls and message replies on one number.

  • Article

    Enabling WhatsApp Business calling

    Turn on WhatsApp calling for your Telnyx number in Mission Control.

TELNYX PRODUCT PORTFOLIO

Build with the Telnyx platform

Sign up and start building

FAQ

A Telnyx AI Assistant answers WhatsApp voice calls and replies to WhatsApp messages on the same number. Connect the assistant in Mission Control, and it handles conversations across voice and text.