WhatsApp Cloud API [brew]

Number of APIs: 30

Welcome to the WhatsApp Business Platform Cloud API from Meta.

Individual developers and Business Service Providers (BSPs) can now send and receive messages using a cloud-hosted version of the WhatsApp Business Platform API. Compared to the previous solutions, Cloud API is simpler to use and is a more cost-effective way for businesses to use WhatsApp.

Whether you’re a business or a BSP, Cloud API provides great benefits when compared to WhatsApp On-Premises API.

So let's get started!

Installation

Quick Installation

Use the Run in Qodex button below or at the top right corner of the documentation to import this collection into your local Qodex app.

Run in QodexClick to fork WhatsApp Cloud API into your workspace.

Environment

This collection includes pre-configured environments. To use the pre-configured environment for Cloud API, select Cloud API from the environment drop down list box at the top right corner of Qodex. This automatically populates the correct environment variables listed in the table below.

To run requests in the Get Started guide using a custom environment, you need to set the listed variables in the following table to values in your custom environment:

NameDescription
VersionLatest Graph API version. For example: v15.0
User-Access-TokenYour user access token after signing up at developers.facebook.com.
WABA-IDYour WhatsApp Business Account (WABA) ID.
Phone-Number-IDID for the phone number connected to the WhatsApp Business API. You can get this with a Get Phone Number ID request.
Business-IDYour Business' ID. Once you have your Phone-Number-ID, make a Get Business Profile request to get your Business' ID.
Recipient-Phone-NumberPhone number that you want to send a WhatsApp message to.
Media-IDID for the media to send a media message or media template message to your customers.
Media-URLURL for the media to download media content.
Upload-IDSession ID for uploading data (images) to Meta using Resumable Upload API.

Changelog

For information relating to what has changed in the WhatsApp Business Platform, see WhatsApp Business Platform Changelog.

What's New for Cloud API

This section covers new features and updates for WhatsApp Business Platform Cloud API Qodex collection.

December 13th 2022

The following features are now available on the Cloud API, hosted by Meta, with no upgrades necessary:

Improved Media Link Caching For Media message sends using links, the Cloud API now supports HTTP Caching Protocol. This allows businesses to set their preferred caching options and communicate them with the Cloud API by setting relevant HTTP Headers. To learn more about media link caching, see Media HTTP Caching.

Reduction for Webhook Retry Policy Cloud API calls the businesses Webhook to notify the business of message deliveries, reads, and replies. If the Webhook is down for any reason Cloud API previously retried notifying the Webhook for up to 30 days. Going forward we have reduced this number to 7 days. For more information, see our developer documentation.

New media endpoint that checks ownership permissions Introducing a new optional media endpoint parameter for verifying media ownership on a phone number level, which allows for differentiation for types of media owned by a specific phone number. For more information, see API Reference>>Media:

  • Retrieve Media URL
  • Delete Media

November 3rd 2022

Messages Per Second

Cloud API now supports up to 500 (up from 350) messages per second (MPS) of combined text and media messages, by request. For more information, see Throughput for details.

If you already have 350 MPS it will be increased to 500 MPS automatically. If you already requested 350 MPS but the process has not been completed, you will receive 500 MPS upon completion.

Document Captions

Cloud API now supports captions on documents sent to and received from customers. For more information, see Media Object.

Error Codes We have updated our error codes documentation to be more actionable. There have been some changes to existing error codes in Graph API v15.0 and above. Some error titles also have been updated. For more information, see Error Codes.

October 6th 2022

Graph API v15 update

WhatsApp Cloud API has been updated for Graph API version 15.0. The Version environment variable for environment Cloud API [Cloud API] has been automatically updated to v15.0.

Embedded Signup

Embedded Signup now supports mobile web browsers. The user interface will automatically optimize for a mobile experience when it detects that the viewer is using a mobile web browser.

Callback Override

You can now use different callback URLs for each of your WhatsApp Business Accounts without having to create a unique app for each WhatsApp Business Account. See Overriding the Callback URL for details.

Message Templates

Text parameters (messages.parameters.text) for message templates that only use a body component (messages.type:body) can now total up to 32,768 characters. For more information, see Parameters object.

Messages Per Second

Cloud API now supports up to 350 (up from 250) messages per second (MPS) of combined text and media messages, by request. For more information, see Throughput for details.

If you already have 250 MPS it will be increased to 350 MPS automatically. If you already requested 250 MPS but the process has not been completed, you will receive 350 MPS upon completion.

September 22nd 2022 - Reaction Messages and Business Profile

The September 22nd 2022 release contains the following features:

Reactions

You can now send and receive reactions on messages. Additionally, we have also added Webhook support for reaction messages.

The new API request has been added to API Reference>>Messages>>Send Reply with Reaction Message.

Business Profile

The about field on business profiles is now supported. For more information, see Business Profiles.

August 25th 2022 - Products and Services and Animated Sticker support

The August 25th 2022 release contains the following features:

Products and Services

Two new Product and Services API requests have been added to API Reference>>Messages:

  • Send Single Product Message
  • Send Multi-Product Message

Additionally, there are two new Product related Webhooks:

  • Received Product Enquiry Message
  • Received Order Messages

For overview information, see Sell Product and Services.

Animated Stickers

You can now include animated stickers in outbound, business-initiated messages and receive Webhooks describing those messages the same way you would if you were sending a non-animated sticker. Refer to the API Reference>>Messages>>Message Object sticker property and for sticker asset requirements.

August 17th 2022 - Resumable Upload API requests for updating your business profile picture

WhatsApp Cloud API now has three new requests in API Reference>>Business Profiles:

  • Resumable Upload - Create an Upload Session
  • Resumable Upload - Upload File Data
  • Resumable Upload - Query File Upload Status

These requests simplify uploading profile pictures to Meta. You can now get a profile_picture_handle that you can use to update pictures.

August 2nd 2022 - Graph API v14 update

WhatsApp Cloud API has been updated for Graph API version 14.0. The Version environment variable for environment Cloud API [Cloud API] has been automatically updated to v14.0.

July 21st 2022

The July 2022 release contains the following features:

  • Businesses can now reply to any message in a conversation thread. Replies will include a contextual bubble referencing the replied-to message. Refer to the Send Messages guide to learn how to reply to a message. For more information on the new Qodex Reply-To Requests, see API Reference>>Messages. For our WhatsApp Cloud API developer docs, see Reference>>Messages.

  • WhatsApp Cloud API now supports up to 250 messages per second (MPS) of combined sending and receiving (inclusive of text and media messages). If you are an enterprise partner you can open a Direct Support ticket to request 250 MPS throughput by selecting Question Topic: **Cloud API Issues**, Request Type: **Request to migrate to 250 MPS throughput** and fill out the required information.

May 2022

Existing direct partners and Business Service Providers (BSPs) can now send and receive messages using a cloud-hosted version of the WhatsApp Business API. Compared to On-Premises API, the Cloud-based API is simpler to use and is a more cost-effective way for businesses to use WhatsApp.

  1. Get Started-Step 2: Send a Test Message - Send Test Message POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages

  2. Get Started for BSPs - Step 3: Subscribe to your WABA POST https://graph.facebook.com/{{Version}}/{{WABA-ID}}/subscribed_apps

  3. API Reference-WABA Subscriptions - Override Callback URL POST https://graph.facebook.com/{{Version}}/{{WABA-ID}}/subscribed_apps

  4. Get Started for BSPs - Step 4: Get Phone Number ID GET https://graph.facebook.com/{{Version}}/{{WABA-ID}}/phone_numbers

  5. Get Started for BSPs - Step 5: Register Phone Number POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/register

  6. Get Started for BSPs - Step 7: Send a Test Message POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/messages

  7. API Reference-Registration - Register Phone POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/register

  8. API Reference-Registration - Deregister Phone POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}/deregister

  9. API Reference-Business Profiles - Resumable Upload - Upload File Data POST https://graph.facebook.com/{{Version}}/{{Upload-ID}}

  10. API Reference-Business Profiles - Resumable Upload - Query File Upload Status GET https://graph.facebook.com/{{Version}}/{{Upload-ID}}