Update business profile with the WhatsApp API
Updates the business profile of a phone number. Fields left out keep their value, and websites replaces the websites of the profile.
- Identifier
- whatsapp_update_business_profile
The request
POST https://connect.reportei.com/api/tools/whatsapp_update_business_profile/execute
Authorization: Bearer <merchant token>
x-customer-token: <customer token>
Content-Type: application/json
Accept: application/json
{
"customer_toolkit": "<connection UUID>",
"arguments": {
"phone_number_id": "<phone_number_id>",
"messaging_product": "whatsapp"
}
}Your system sends your customer's connection id and the tool arguments. The headers are the same as the rest of the Connect API: your product's token and your customer's token.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| phone_number_id | string | Yes | Id of the business phone number, from List phone numbers. |
| messaging_product | string | Yes | Always whatsapp.Values: whatsapp |
| about | string | No | Short text shown under the name, up to 139 characters. |
| address | string | No | Address of the business, up to 256 characters. |
| description | string | No | Description of the business, up to 256 characters. |
| string | No | Contact email of the business. | |
| websites | array | No | Up to 2 websites, with http or https. |
| vertical | string | No | Industry of the business.Values: OTHER, AUTO, BEAUTY, APPAREL, EDU, ENTERTAIN, EVENT_PLAN, FINANCE, GROCERY, GOVT, HOTEL, HEALTH, NONPROFIT, PROF_SERVICES, RETAIL, TRAVEL, RESTAURANT, ALCOHOL, ONLINE_GAMBLING, PHYSICAL_GAMBLING, OTC_DRUGS |
Supported connections
Your customer connects their WhatsApp account once, with one of the modes below. The same connection serves every tool of the toolkit.
API key
Your customer pastes the app's key on a Connect screen, or your system sends the key with POST /api/customer-toolkits, with no screen.
The response
On success, Connect preserves the app's response status and body. HTTP errors returned by the app use the {error, api_error} envelope; authentication or validation can fail before execution. The X-Toolkit-Execution-Id header identifies the recorded execution, available at GET /api/tools/executions/{uuid}.
Ready for AI agents
This tool's input is a JSON Schema, available at GET /api/tools/whatsapp_update_business_profile. It becomes your agent's tool definition with no conversion.
Other WhatsApp tools
- List business accountsGETLists the WhatsApp Business accounts the system user can reach, with id and name. That id is the waba_id of the other tools, which Meta now also calls the Messaging account id. The response has data and paging.cursors.after: pass it as after to read the next page.
- Get business accountGETReturns a WhatsApp Business account with the fields asked for, which can be account data or analytics. Without fields only id and name come back.
- List phone numbersGETLists the business phone numbers of a WhatsApp Business account with id, display_phone_number, verified_name and quality_rating. That id is the phone_number_id of the message and profile tools. The response has data and paging.cursors.after: pass it as after to read the next page.
- Send messagePOSTSends a message from a business phone number and returns its id in messages[0].id. Free-form types (text, image, video, document, audio) only reach someone who wrote to the number in the last 24 hours; to start a conversation, send type template with an approved template from List message templates. Meta bills messages to the account according to its WhatsApp pricing.
- List message templatesGETLists the message templates of a WhatsApp Business account with id, name, language, status, category and components. The response has data and paging.cursors.after: pass it as after to read the next page.
- Create message templatePOSTCreates a message template and submits it to Meta review, returning id, status and category. It can be sent once the status is APPROVED, which can take up to 24 hours. Variables are {{1}}, {{2}} in the POSITIONAL format or {{first_name}} in the NAMED format, and each one needs an example. An image, video or document header needs a file handle from an upload, which this connection does not do.
- Update message templatePOSTEdits a template and sends it to review again. Only templates in APPROVED, REJECTED or PAUSED status can be edited, and only their category and components; components replaces all the parts. An approved template takes up to 10 edits in 30 days and 1 in 24 hours, and its category cannot change.
- Delete message templateDELETEDeletes a template by name, in all its languages, or only the language version whose id is hsm_id. The name of a deleted approved template cannot be used again for 30 days.
See Connect applied to your product.
Try it for 15 days with no card, or walk our team through your use case.
