Skip to content

On-Premises API

Also called: WhatsApp On-Premises API · On-Prem API · WhatsApp Business API client · self-hosted WhatsApp API

The self-hosted, Docker-based WhatsApp Business API client that businesses ran on their own servers; Meta sunset it on 23 October 2025.

Reviewed

What is the WhatsApp On-Premises API?

The On-Premises API (often "on-prem") was the original form of the WhatsApp Business API: a client that Meta shipped as Docker images, which a business or its Business Solution Provider (BSP) ran on its own servers. The stack combined a web container exposing a local REST API, one or more core app containers that held the connection to WhatsApp, and a MySQL or PostgreSQL database for messages, contacts and keys. Your application called endpoints such as /v1/users/login and /v1/messages on that local host, and the client forwarded traffic to WhatsApp.

Self-hosting gave control — data at rest stayed in your environment — at a real cost. Teams provisioned servers, applied each client release before it expired, sized "multiconnect" shards for throughput, handled failover, backed up databases and kept certificates valid. Template messages also used an older format with a namespace and the hsm heritage, a detail that still confuses people reading old samples.

Meta launched the Cloud API — the same platform, hosted by Meta and reached through the Graph API — and opened it to all businesses in 2022. It then wound the On-Premises API down: new On-Premises registrations ended on 1 July 2024, and the client was sunset on 23 October 2025, after which it no longer sends messages. Today the Cloud API is the only supported way to use the API directly, so this page is history: useful for maintaining old documentation, auditing legacy systems and understanding why some integrations look the way they do.

Key takeaways

  • The On-Premises API was the self-hosted WhatsApp Business API client: Docker containers plus a database that a business ran itself.
  • New On-Premises registrations ended on 1 July 2024, and Meta sunset the client on 23 October 2025; it no longer sends messages.
  • Every business now uses the Meta-hosted Cloud API, reached through the Graph API rather than a local /v1 endpoint.
  • Numbers, WABAs, display names and templates carried over in a migration; the hosting, endpoints and payload formats changed.
  • Old tutorials using /v1/messages, /v1/users/login or template namespaces describe On-Premises and should not be followed today.

See InfiQ pricing

Interactive stop

Follow the self-hosted client from launch to sunset

6 / 6

Oct 2026NowEvent 6 of 6

Cloud API only

Every direct integration and partner platform runs on the Meta-hosted Cloud API.

Scrub from the self-hosted era to today: when the Cloud API opened to everyone, when new On-Premises registrations stopped and the day the client was switched off for good.

Event 6 of 6: Oct 2026 — Cloud API only (now). Every direct integration and partner platform runs on the Meta-hosted Cloud API.

How does InfiQ help with the WhatsApp On-Premises API?

InfiQ runs on Meta's Cloud API, the platform that replaced the on-premises client, so there are no servers or containers for you to run.

WhatsApp Business API on InfiQ

How does the WhatsApp On-Premises API work?

  1. Run the containers and database

    Teams deployed Meta's web and core app images with Docker or Kubernetes, connected them to MySQL or PostgreSQL, and mounted storage for media.

  2. Register the number on the local client

    The client was activated with a certificate tied to the approved display name and a verification code, then administered through its own admin user.

  3. Log in and send via the local /v1 API

    Apps exchanged admin credentials at /v1/users/login for a bearer token and posted messages to /v1/messages on the self-hosted host.

  4. Scale and upgrade it yourself

    Throughput depended on how many shards you ran, and every client release had to be applied before the old one stopped working.

  5. Move to the Cloud API

    Migration exported an encrypted backup from the On-Premises client and passed it to the Cloud API's /register call, keeping the number on the same WABA; numbers can otherwise be registered with the standard verification flow.

Common mistakes with the WhatsApp On-Premises API

  • Following an old tutorial

    Samples with /v1/users/login, a local host name or a template namespace are On-Premises. Rewrite them against the Cloud API: POST /{PHONE_NUMBER_ID}/messages with messaging_product set to whatsapp.

  • Leaving the old stack running

    A sunset client still holds message data, media and credentials. Export what your retention policy requires, then delete the database and containers.

  • Believing self-hosting was required for data residency

    The Cloud API offers local storage for data at rest in supported countries, including India, enabled per number with the Settings API (storage_configuration) before registration. Check whether it meets your policy.

  • Comparing old and new throughput numbers

    On-Premises throughput depended on your shards. Cloud API throughput is set per number by Meta: up to 80 messages per second by default, with automatic upgrades for eligible numbers.

The WhatsApp On-Premises API in code

POST https://{ONPREM_HOST}/v1/messages
Authorization: Bearer {ONPREM_ADMIN_TOKEN}
Content-Type: application/json
{
"to": "919812345678",
"type": "text",
"text": { "body": "Your shipment is out for delivery" }
}

The local, self-hosted endpoint. Since the 23 October 2025 sunset, nothing answers it.

Why does the WhatsApp On-Premises API matter?

Legacy On-Premises code still exists in repositories, integration guides and vendor runbooks, and copying it today produces requests to a local host that does not exist. Knowing what changed helps a developer translate an old /v1/messages call into a Cloud API call, helps an operations team decommission servers and databases that are now useless (and may still hold message data that falls under retention rules), and helps a business answer a vendor who still offers "on-premises hosting" as a feature.

The WhatsApp On-Premises API: key facts and limits

Delivery model
Self-hosted Docker containers + MySQL/PostgreSQL
Local endpoints
/v1/users/login, /v1/messages, /v1/settings
New registrations ended
1 July 2024
Sunset
23 October 2025; the client no longer sends messages
Supported today
Cloud API only (graph.facebook.com)
What carried over in migration
Number, WABA, display name, templates

Example: A Bengaluru logistics firm decommissions its last on-prem cluster

A Bengaluru logistics company ran the On-Premises client on three virtual machines in its own data centre from 2019, sending dispatch updates through a local /v1/messages endpoint. It moved its numbers to the Cloud API in early 2025 but left the old cluster running "just in case". In 2026 an audit finds the cluster's PostgreSQL database still holds years of message logs and customer phone numbers. With the client sunset on 23 October 2025 the servers have no function, so the team exports what its retention policy requires, deletes the rest, removes the containers and rotates the credentials that the old admin user used — and updates its developer wiki so new hires stop copying the /v1 samples.

— A Bengaluru logistics firm decommissions its last on-prem cluster

Best practices for the WhatsApp On-Premises API

  • Search your codebase for "/v1/messages" and "namespace" to find leftover On-Premises code.
  • When a vendor offers on-premises WhatsApp hosting today, ask what API it actually calls.
  • Keep a short note in your runbooks with the sunset date so nobody tries to restore the old cluster.

On-Premises API FAQs

Is the WhatsApp On-Premises API still available?+
No. Meta stopped new On-Premises registrations on 1 July 2024 and sunset the client on 23 October 2025; it no longer sends messages. All businesses now use the Cloud API.
What is the difference between the On-Premises API and the Cloud API?+
Who hosts it. The On-Premises client ran on your own servers with your own database and a local /v1 API; the Cloud API is hosted and upgraded by Meta and reached through graph.facebook.com.
Did migrating to the Cloud API change my number or templates?+
No. Migration kept the phone number, WhatsApp Business Account, display name and approved templates. What changed was the endpoint, the authentication and some payload fields.
Can I keep message data in India without self-hosting?+
Yes, within limits. The Cloud API supports local storage of data at rest in India when you enable it on the number with data_localization_region IN before registering. Content may still be processed outside India for up to 60 minutes, so describe it precisely in your policies.

Talk to InfiQ

From definition to your first message

InfiQ is an official Meta Business Partner. Start a 7-day free trial — no card needed — and see this running on your own number.