#WhatsApp On-Premises API (deprecated)

Number of APIs: 75

WhatsApp On-Premises API is deprecated. Please use WhatsApp Cloud API, hosted by Meta, instead.

See our On-Premises API Sunset document for a complete deprecation timeline and links to documents that can help you migrate from On-Premises API to Cloud API, if you are already using On-Premises API.

About the API

WhatsApp helps more than 2 billion people connect and share with the people they care about. Currently, WhatsApp offers the following products:

  1. Consumer App
  2. Small Business App
  3. Business API

Unlike the consumer app and small business app, On-Premises API is not an app, but a programming language interface that allows you to connect at scale. This collection contains common queries, sample responses, and links to supporting documentation for the On-Premises API .

If you use anything other than the official On-Premises API or other official WhatsApp tools, we reserve the right to limit or remove your access to WhatsApp as this violates our policies. Please do not use any non-WhatsApp authorized third-party tools to communicate on WhatsApp. See Unauthorized use of automated or bulk messaging on WhatsApp for more information.

To use On-Premises API, businesses must complete a series of requirements, including, but not limited to:

Supporting Products

The following products support the implementation of the On-Premises API:

Using the API

There are two methods to use the API:

Method Description
Using a Solution Partner One of our third-party Solution Partners hosts the On-Premises API client. Then, businesses can use the API through their chosen partner.
Direct Integration Businesses directly install the API client on their servers.

Currently, this implementation is not available for new customers.
  1. API Reference-Metrics And Statistics - Get App Stats Prometheus Format GET {{URL}}/v1/stats/app?format=prometheus

  2. Guides-Send Messages-Sending Message Templates - Sending Message Templates POST {{URL}}/v1/messages

  3. Guides-Send Messages-Sending Text Messages - Sending Text Messages POST {{URL}}/v1/messages

  4. Guides-Send Messages-Sending Media Messages - Sending Media Messages POST {{URL}}/v1/messages

  5. Guides-Send Messages-Sending Contact and Location Messages - Sending Contacts and Location Messages POST {{URL}}/v1/messages

  6. Guides-Send Messages-Sending Media Message Templates - Sending Media Message Templates POST {{URL}}/v1/messages

  7. Guides-Send Messages-Sending Interactive Message Templates - Sending Interactive Message Templates POST {{URL}}/v1/messages

  8. API Reference-Users - Get User GET {{URL}}/v1/users/{{UserUsername}}

  9. API Reference-Users - Create User POST {{URL}}/v1/users

  10. API Reference-Users - Update User PUT {{URL}}/v1/users/{{UserUsername}}