Back to Blog
API

Laravel WhatsApp API: Build an Inbox for Your Company

November 2026 8 min read WasapFlow Bridge Team

A customer inbox is more than a chat window: it must turn WhatsApp events into reliable, searchable work your team can act on. With the Laravel WhatsApp API, your company can build that workflow into its own CRM or internal system instead of adapting operations to a separate inbox product.

Start with the work your team needs to complete

Before writing a migration or designing a conversation list, map the jobs the inbox must support. A sales team may need to qualify enquiries and hand them to an account owner; a service team may need to track open cases, priority and resolution. If the inbox is being built for one company, you can design around those actual processes rather than adding generic controls your staff will never use.

Write down the key states a conversation can have, who is allowed to change them, and what information must be visible at a glance. Keep WhatsApp’s message history distinct from your company’s operational status: “message received” is an event, while “assigned to Maya” or “waiting for a replacement part” is your application’s workflow.

Also decide what should happen when a customer writes again after a conversation was marked complete. Reopening a case, notifying its previous owner or creating a new ticket are business choices. Defining them early makes the interface and event-processing rules much easier to implement.

Laravel WhatsApp API architecture: separate events from the inbox

A maintainable design separates the connection to WhatsApp from the interface your staff use. Your Laravel application owns the contacts, conversation records, assignments, internal notes, permissions and inbox pages. The WhatsApp API connection carries messages and account events between Meta and your application.

A typical flow looks like this: Meta sends an event to your configured webhook through the API provider; Laravel accepts and queues it; a worker processes it into your message and conversation records; then the interface displays the updated state. For outgoing messages, an authorised user action creates a record in your system and a Laravel job sends the message through the API. Store the result and update the interface according to the response and later delivery-status events.

This separation helps prevent a slow provider request or a burst of incoming events from blocking the page a staff member is using. It also gives you a clear place to handle retries, record failures and monitor whether events are being processed. Keep API credentials on the server, and never expose them in browser code.

Build a durable event pipeline with Laravel queues

  • Accept quickly: Make the webhook route do minimal work before acknowledging a valid event. Save enough information to process it and hand processing to a queue instead of doing database updates and interface work in the request itself.
  • Handle repeats safely: Webhook delivery can be retried, so design message and status processing to be idempotent. Use a provider event or message identifier where available to avoid creating duplicate records when the same event arrives more than once.
  • Expect events out of order: A delivery update may arrive after another status has already been recorded. Preserve the event history where useful and apply state changes according to clear rules instead of assuming every event arrives in sequence.
  • Keep failures visible: Log processing errors with useful identifiers, monitor jobs that exhaust retries, and provide an operational way to review and reprocess a failed event. Avoid logging message content or credentials unless your security policy specifically permits it.
  • Verify the sender: Configure the signed webhook verification process described in your provider’s documentation. Treat webhook input as untrusted until it has been verified, and keep verification details out of public client-side code.

Example: why idempotency matters

Suppose a customer sends one delivery question, but the same webhook event reaches your application twice after a temporary timeout. Without duplicate protection, the inbox may show two messages, create two support cases and send two notifications to the assigned agent. If your message table records a unique provider message identifier, the second processing attempt can safely recognise the existing message while still allowing any unfinished downstream work to complete.

Design the data model for conversation work

A practical starting point is to separate conversations, messages and assignments rather than placing everything in one table. A conversation represents the ongoing customer interaction; a message represents an individual inbound or outbound item; an assignment represents who is responsible for the work. Depending on your workflow, you may also need internal notes, tags, case links and an audit trail of status changes.

Store identifiers that let you connect your local records to the WhatsApp account, contact and message identifiers supplied by the API. Preserve timestamps and message direction, and keep delivery status separate from your own case status. That distinction allows a conversation to remain “open” for your team even when its latest message has been delivered, read or otherwise updated.

For the first release, prioritise a searchable conversation list, a clear message timeline, assignment, an internal status and a reliable send action. Add filters and reporting after you have observed how staff use the inbox. If customers are served in several languages or time zones, make timestamps, search and notification behaviour work for your actual operating regions—not only your development team.

Make sending safe, clear and policy-aware

The send box should make it obvious which WhatsApp number and customer the agent is responding to. Prevent accidental double submissions, show when a send request is pending, and display failures in a way that gives staff a useful next action. Keep an audit record of who sent a message and when, especially if your system supports multiple teams or sensitive customer workflows.

Your application should also account for WhatsApp’s messaging rules. In particular, distinguish replies in an active customer-service conversation from business-initiated messages that require an approved template under Meta’s policies. Give agents context about whether a reply is available or whether they need to use an appropriate template; do not treat a successful API request as permission to message a customer for any purpose.

These details matter across markets. A company serving customers in India, Brazil, Indonesia, Nigeria, the UAE or Germany may have different support hours, languages and internal escalation paths, but it still needs a consistent record of consent, message history and team responsibility. Build those business rules into your application and follow Meta’s WhatsApp policies for every connected business.

Connect Laravel through WasapFlow Bridge

WasapFlow Bridge is a bridge for your own software, not an inbox or chat dashboard. Incoming messages, delivery statuses, template events and account events are delivered through signed webhooks to your system; your Laravel application sends outgoing messages by calling the REST API. Your team keeps ownership of the interface, records and workflow, and your company connects its number through Meta Embedded Signup.

You do not need to become a Meta Tech Provider or complete Meta App Review to use Bridge, but each business still connects through Meta Embedded Signup and must follow Meta’s WhatsApp policies. Add a “Connect WhatsApp” button inside your own system: your server calls <code>POST /bridge/v1/connect/session</code> and opens the returned <code>connect_url</code>. The WasapFlow portal does not connect numbers for you. Coexistence mode can let a number continue working in the WhatsApp Business app on the phone while your system sends and receives on that same number.

The partner account is free. Bridge costs $10 USD per month per slot, with up to three active WABAs in a slot; one connected WABA therefore uses a $10 monthly slot, and a small flat card-processing fee applies per invoice. A card must be saved before the first WABA connects, and the first $10 charge occurs when it connects. Meta bills its own WhatsApp message charges directly to each WABA’s payment method; WasapFlow does not charge per message.

Bridge uses a plain REST API and has no SDK. Create a free account, give the documentation link to your AI coding tool, set your webhook URL, then add a “Connect WhatsApp” button in your Laravel system and connect the first number. Review the [Bridge docs](https://partner.wasapflow.com/bridge/docs), [pricing](https://partner.wasapflow.com/bridge/pricing) and [sign-up page](https://partner.wasapflow.com/bridge/partner/register).

Build it with your own AI

No SDK to install. Paste this into Claude, ChatGPT, Cursor or Codex inside your project — it reads our docs and builds the WhatsApp integration in your stack.

Read the WasapFlow Bridge API reference at:
https://raw.githubusercontent.com/kobaranteguh/api/main/README.md

Read the whole document first, then integrate WasapFlow Bridge into my system: an API client using my partner key from an environment variable, a "Connect WhatsApp" button using Meta Embedded Signup (my server calls POST /bridge/v1/connect/session and opens the returned connect_url — never put the partner key in a URL), a signed webhook endpoint for incoming messages, and sending text, media and template messages.

My stack: [e.g. Laravel / Node.js / Python / WordPress]
Share this article: WhatsApp LinkedIn X Facebook

Offer WhatsApp in your own system — without becoming a Meta Tech Provider

Free partner account. $10/month for every 3 WhatsApp numbers, charged only when you connect your first one.