Integration · API & Webhooks

API and webhooks for WhatsApp Business

If your system is built in-house, or your platform is not among our ready-made integrations, the trtWhats REST API and webhooks give you the same capabilities programmatically. You send messages and manage contacts from your application, and receive everything that happens on WhatsApp as real-time events at an address you choose.

Available from the growth plan

What syncs

  • Send templates and free-form messages

    Send approved templates with their variables to any opted-in number, and free-form text or media inside an open 24-hour window.

  • Receive messages and statuses by webhook

    Every event reaches you as a signed HTTP request: inbound message, delivered, read, send failure, template status change, conversation opened or closed.

  • Manage contacts and tags

    Create and update contacts, record opt-in, and add tags you can reuse to segment campaigns.

  • Control conversations and the inbox

    Assign a conversation to an agent or team, add an internal note, change its status or close it from your system, so order state and conversation state stay in step.

  • Trigger AI flows programmatically

    Start a specific flow (appointment confirmation, satisfaction survey, collections) for a contact with data from your system, then receive the outcome when the flow completes.

  • Access keys and a test environment

    Multiple API keys with scoped permissions, and a test environment that only sends to allow-listed numbers, so you can build without touching real messages.

Setup steps

  1. 1

    Create an API key in settings

    From your trtWhats account settings, generate a new key and choose the permissions it needs (send, read, contacts, conversations).

  2. 2

    Register your webhook address

    Enter the HTTPS URL that will receive events and select the events to subscribe to. You are given a shared secret to verify the signature on each request.

  3. 3

    Send a first test message

    Use the test environment to send an approved template to your team's number, and check that delivery and read events arrive at your address.

  4. 4

    Handle errors and retries

    Add retry logic for failed sends and respect your number's messaging limits, which Meta sets according to its quality rating.

  5. 5

    Go to production

    Switch to the production key, enable subscriptions on the live address, and watch the event log in the trtWhats dashboard during the first days.

Questions about this integration

We run on top of Meta's official API and add the shared inbox, template management, contacts and consent, AI flows and invoicing. You work with one interface instead of building those layers yourself.

trtWhats

Let's build your next growth channel.

  • Free 20-minute consultation with a WhatsApp specialist
  • Number live in 24–72 hours once documents are ready
  • Official Meta API with opt-in messaging and approved templates

Get a callback on WhatsApp

WhatsApp number