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
| Method | What it does |
|---|---|
whatsappcloud_send_text | Send a text message (optional link preview and reply context). |
whatsappcloud_send_template | Send an approved template message with variable components. |
whatsappcloud_send_media | Send image/video/audio/document/sticker by media_id or public link. |
whatsappcloud_send_interactive | Send reply buttons or a list message. |
whatsappcloud_send_location | Send a location pin with optional name and address. |
whatsappcloud_send_reaction | React to a message with an emoji (empty string removes it). |
whatsappcloud_send_contacts | Send one or more contact cards. |
whatsappcloud_mark_read | Mark an inbound message as read, optionally with a typing indicator. |
whatsappcloud_upload_media | Upload media from a public URL and get a reusable Media-ID. |
whatsappcloud_get_media | Get media metadata and a short-lived download URL. |
whatsappcloud_delete_media | Delete an uploaded media object. |
whatsappcloud_list_templates | List message templates on a WhatsApp Business Account. |
whatsappcloud_create_template | Create a message template (submitted for Meta approval). |
whatsappcloud_delete_template | Delete a message template (optionally one language version). |
whatsappcloud_list_phone_numbers | List the phone numbers on a WhatsApp Business Account. |
whatsappcloud_get_phone_number | Get one phone number's details and quality rating. |
whatsappcloud_get_business_profile | Get the WhatsApp business profile for a number. |
whatsappcloud_update_business_profile | Update the business profile (about, address, websites, etc.). |
How to get credentials
You need an access token from the WhatsApp product of a Meta app.
- Open developers.facebook.com/apps and create (or open) an app of type Business.
- Add the WhatsApp product to the app.
- 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_messagingandwhatsapp_business_managementpermissions. - 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.
- Paste the access token into FlyMyAI as
WHATSAPPCLOUD_API_KEY.
Fields to fill in FlyMyAI
| FlyMyAI field | Where it comes from |
|---|---|
WHATSAPPCLOUD_API_KEY | App Dashboard -> WhatsApp -> API Setup (system-user / app access token) |
Links
We love our partners - FlyMy.AI builds with the best. Thanks, WhatsApp (Meta)!