WhatsApp API for Developers: Send Your First Message on the Cloud API

By Alva Chew 7 min read Updated November 26, 2026

The WhatsApp API for developers is Meta’s Cloud API: you create a Meta app, connect a WhatsApp account, get an access token and send messages with an HTTPS POST to Meta’s Graph API. Incoming messages and delivery statuses come back to your server through webhooks. If you would rather not build and host that yourself, AeroChat connects your number through Meta’s signup flow and gives you an AI agent, a team inbox, outbound webhooks and an API on top.

What the Cloud API is

The WhatsApp Business Platform lets a business message customers from software instead of a phone. Meta hosts the API, so there is no server of your own to run for WhatsApp itself. You call Meta’s Graph API to send, and Meta calls your webhook to deliver what customers send.

A business can build on the Cloud API directly for its own use, or work through a solution provider that has already built the inbox, automation and billing around it. See WhatsApp solution providers and WhatsApp Business app vs API for that choice.

Step by step: your first message

  1. Register as a Meta developer. Use a Facebook or managed Meta account and complete developer registration.
  2. Create a Meta app. In the App Dashboard, create an app with the “Connect with customers through WhatsApp” use case and attach your business portfolio.
  3. Open API Setup. Connect the app to a messaging account and note the test business phone number ID. You use that ID in every send call.
  4. Get a token. The dashboard gives you a temporary access token for a first test. Meta warns that it expires quickly. For real work, create a system user in Business Settings, assign it your app and your WhatsApp account, and generate a token with the business_management, whatsapp_business_messaging and whatsapp_business_management permissions.
  5. Send a template. Your first message to a person must be a template, because no customer service window is open yet. When the person replies, a 24-hour window opens and you can send free-form messages.
  6. Set up a webhook. Subscribe to the messages field so replies and delivery statuses reach your server. Details are in our WhatsApp webhooks guide.
  7. Add your real number. Register a business phone number you own to replace the test number. See the number rules in virtual numbers and landlines on WhatsApp.

Source: Meta, Cloud API get started, checked 26 November 2026.

The send-message request

A text message is a POST to the messages endpoint of your business phone number ID. Meta’s example uses Graph API version v23.0.

POST https://graph.facebook.com/v23.0/{phone_number_id}/messages
Authorization: Bearer {system_user_access_token}
Content-Type: application/json

{
  "messaging_product": "whatsapp",
  "recipient_type": "individual",
  "to": "{customer_phone_number}",
  "type": "text",
  "text": { "body": "Your order has shipped." }
}

Text only goes out inside an open 24-hour window. Outside it, you send an approved template by name instead. See WhatsApp message templates and template approval.

Rules every developer runs into

Rule What Meta says
Throughput Up to 80 messages a second per business phone number by default, with upgrades available.
Opt-in You must get the customer’s opt-in before sending templates.
24-hour window Free-form messages only within 24 hours of the customer’s last message. Templates outside it.
Messaging limits Business-initiated messages to unique customers per rolling 24 hours, set per business portfolio, from 250 for new portfolios.
Phone numbers Two registered numbers for a new portfolio, 20 after business verification.
Customer IDs Webhooks include a business-scoped user ID, and the phone number field may be missing, so identify customers by that ID.
Transport Sending and webhooks run over HTTPS protected by TLS.

Source: Meta, Cloud API overview, phone numbers and webhooks documentation, checked 26 November 2026. Limits are explained in WhatsApp messaging limits, and error codes in WhatsApp API errors.

What you still have to build

Sending a message is the easy part. A working WhatsApp service for a business also needs an inbox where the team can read and answer chats, logic that answers the common questions, a way to look up orders, bookings or accounts in your other systems, template management, opt-in records, and handling for every status and error Meta sends back. That is where most of the build time goes.

Do it with AeroChat instead

AeroChat connects your WhatsApp number through Meta’s own signup flow, so the app, tokens and webhook to Meta are already in place. On top of that:

  • An AI agent that acts. It answers from your products and policies and does the work in your systems: checks an order in Shopify or WooCommerce, books a slot in Google Calendar, sends a payment link through Airwallex.
  • Workflows in your own words. You describe a workflow and AeroChat builds it with Skills, including the calls to any system with a public API. No code needed. Workflows via Skills are on every plan.
  • Outbound webhooks. AeroChat posts events such as each message, a new or updated contact, a chat passed to your team and a chat resolved to your own HTTPS endpoint, signed with HMAC-SHA256 so you can check they came from AeroChat.
  • An API. Send a customer message to the AeroChat engine and get its answer back, and read contacts and conversation transcripts. The full API is on Advanced and above. See pricing.
  • Automation tools you already use. Zapier, Make and n8n connect to the same events.
  • The WhatsApp features Meta keeps adding. Forms, buttons and lists, tap-to-pay, the catalog and usernames are handled for you. The full list is on WhatsApp features and in our guide to agentic WhatsApp.

Customer: Hi, can you check order 4471? It was supposed to arrive yesterday.

No Airwallex account yet? Open one through AeroChat’s Airwallex partner link.

AeroChat: Order 4471 left the warehouse Tuesday and is out for delivery today with UPS, tracking 1Z84X. It should reach you by 7 pm.

Customer: Great, thanks.

AeroChat: You’re welcome. I’ll message you here when it’s delivered.

What happens in your systems: AeroChat finds the order by the customer’s number in your store, reads the tracking, and sends a conversation.message event to your webhook so your own systems keep a copy.

Copy this into AeroChat

When a customer asks where their order is on WhatsApp, follow these steps.

  1. Find the order by their phone number, or ask for the order number if there is no match.
  2. Tell them the status, the courier and the tracking number.
  3. If it is late by more than 3 days (example), offer a replacement or a refund.
  4. Send each step to our webhook so our order system logs the chat.

Reply in the customer’s language.

Have a setup that is not covered here, such as your own backend or an unusual system? It is likely possible. Start a trial and describe it as a workflow.

Questions

Is the WhatsApp Cloud API free for developers?

Meta does not charge for access to the API. It charges per delivered template message by category and country, and service replies are free up to 1,000 a month per business phone number, then charged. See WhatsApp API pricing.

Do I need a business verification to start?

No. You can build and send from a new portfolio. Verification raises your messaging limit to 2,000 and your phone numbers from 2 to 20. See Meta business verification.

Which token should I use in production?

A system user access token from Business Settings, with the WhatsApp messaging and management permissions. The temporary token in the dashboard expires quickly.

Can I use the API and the WhatsApp Business app on the same number?

Yes, with coexistence through a provider that supports it. Chats stay in sync between the phone and the API. See WhatsApp coexistence.

Can I write code against AeroChat instead of Meta?

Yes. Use AeroChat’s outbound webhooks and API, or connect your AI assistant to the AeroChat MCP and describe the workflow. See connect AeroChat to Claude.

Skip the plumbing and ship the workflow

Connect your number, describe what should happen in each chat, and point AeroChat’s webhooks at your own systems.

Start your 7-day free trial. No credit card needed.

On Shopify? Install AeroChat from the Shopify App Store.

Related workflows: order tracking, CRM updates from WhatsApp and support tickets. Related guides: WhatsApp Business API and what the WhatsApp Business API is.