Skip to main content
WhatsApp (Meta) logo

WhatsApp Cloud API

Lets an agent send WhatsApp messages and manage media, message templates, phone numbers and the business profile through Meta's Graph API.

What it can do

MethodWhat it does
whatsappcloud_send_textSend a text message (optional link preview and reply context).
whatsappcloud_send_templateSend an approved template message with variable components.
whatsappcloud_send_mediaSend image/video/audio/document/sticker by media_id or public link.
whatsappcloud_send_interactiveSend reply buttons or a list message.
whatsappcloud_send_locationSend a location pin with optional name and address.
whatsappcloud_send_reactionReact to a message with an emoji (empty string removes it).
whatsappcloud_send_contactsSend one or more contact cards.
whatsappcloud_mark_readMark an inbound message as read, optionally with a typing indicator.
whatsappcloud_upload_mediaUpload media from a public URL and get a reusable Media-ID.
whatsappcloud_get_mediaGet media metadata and a short-lived download URL.
whatsappcloud_delete_mediaDelete an uploaded media object.
whatsappcloud_list_templatesList message templates on a WhatsApp Business Account.
whatsappcloud_create_templateCreate a message template (submitted for Meta approval).
whatsappcloud_delete_templateDelete a message template (optionally one language version).
whatsappcloud_list_phone_numbersList the phone numbers on a WhatsApp Business Account.
whatsappcloud_get_phone_numberGet one phone number's details and quality rating.
whatsappcloud_get_business_profileGet the WhatsApp business profile for a number.
whatsappcloud_update_business_profileUpdate the business profile (about, address, websites, etc.).

How to get credentials

You need an access token from the WhatsApp product of a Meta app.

  1. Open developers.facebook.com/apps and create (or open) an app of type Business.
  2. Add the WhatsApp product to the app.
  3. In WhatsApp -> API Setup, copy the temporary access token, or - for production - create a System User in Business Settings, assign it to the app, and generate a permanent token with the whatsapp_business_messaging and whatsapp_business_management permissions.
  4. Note the Phone-Number-ID (the sending number) and the WhatsApp-Business-Account-ID (WABA-ID) shown on the same API Setup page - the actions take these as inputs.
  5. Paste the access token into FlyMyAI as WHATSAPPCLOUD_API_KEY.

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
WHATSAPPCLOUD_API_KEYApp Dashboard -> WhatsApp -> API Setup (system-user / app access token)
We love our partners - FlyMy.AI builds with the best. Thanks, WhatsApp (Meta)!