Number and business profile
The business profile is the set of information the customer sees when opening your official line on WhatsApp: the picture (avatar), the About text, the company description, the address, the email, the business vertical, and the websites. Keeping this data correct increases customer trust and reduces blocks caused by an incomplete profile. These routes let you retrieve the complete number, update the business profile fields, and replace the avatar of the line, forwarding the operation to Meta (WhatsApp Cloud API).The public
@name of the line is managed by its own routes. See Line username.For sending messages and downloading media, see API.Authentication and base URL
All routes use the same base URL and the same authentication scheme as the other Positus API routes.https://api.positus.global/v2
Path Parameters
Headers
Production Token: Your token is generated and provided by Positus and grants access to all of your WhatsApp Business API numbers.
The number provided in
{{chave}} must be active and linked to your user. Otherwise the response is 404.The change routes (update profile and update avatar) also require the authenticated user to be an owner of the number. A user without this permission receives 403. The retrieve route does not require ownership.Retrieve number
GET https://api.positus.global/v2/whatsapp/numbers/{{chave}}
Returns the complete number data: operational status, quality, messaging limit, username, webhook, linked users, and every business profile field.
Before responding, Positus synchronizes the profile directly from the provider (Meta or the on-premises server). If that read fails, the response returns the last known state stored at Positus, without an error.
Response
- 200
- 404
Business profile fields in the response
Update business profile
PUT https://api.positus.global/v2/whatsapp/numbers/{{chave}}
Updates the business profile fields of the line. Only the fields below are considered: any other field sent in the body is ignored.
Request Body
about and vertical are required in every request. Since the PUT replaces the profile, always send the current value of the fields you do not want to change (retrieve the number first with the GET above).Business verticals (vertical field)
The vertical field is an integer. Send only the id from the table below. Any value outside this list is rejected with 422.
ID
0 (UNDEFINED) exists only as the internal state of a number without a defined vertical and is not accepted on update.Response
- 200
- 403
- 422
Returns the updated complete number (same format as
GET /whatsapp/numbers/{{chave}}):Update avatar
POST https://api.positus.global/v2/whatsapp/numbers/{{chave}}/avatar
Replaces the profile picture of the line. The request is multipart/form-data, with the file in the avatar field.
Headers
Request Body
WhatsApp crops the profile picture into a circle. Use a square image to avoid cutting parts of your logo.
Response
- 200
- 403
- 422
Returns the complete number, already with the new
avatar:Propagation to Meta and webhook
The profile update is stored at Positus and sent to Meta in the background. Theabout field and the remaining fields (address, description, email, vertical, websites) are propagated by separate processes, so the update may appear on WhatsApp a few moments after the API returns 200.
Whenever any profile field changes (including the avatar), Positus notifies your webhook with the phone_number_profile_update event, carrying the number object and the changes object with the before and after values:
The same event is also triggered when the profile is changed outside the API (for example, through the Positus panel). To configure the receiving URL and see the other events, check Webhook.