Skip to main content

Webhook

To configure the workspace webhook, access: https://studio.posit.us/workspace/configuracoes Every event delivered to your webhook follows the same envelope: an event field with the event name, a workspace object identifying the source workspace, and an object with the resource related to the event (number, template, etc.). Delivery is done via HTTP POST. workspace object
FieldDescription
idWorkspace identifier (UUID)
providerWorkspace provider: { "id", "name" }
type_workspaceWorkspace type: { "id", "name" } (Receptive / Prospect)
nameWorkspace name
business_idBusiness Manager ID on Meta
waba_idWABA ID on Meta

Phone number quality classification

Receive in your webhook the quality of each WhatsApp number in order to maintain better integration with your CRM, thus improving the management quality of your numbers.
  • Undefined: not yet classified
  • Green: high quality
  • Yellow: medium quality
  • Red: low quality

Number events

Event TypeDescription
phone_number_status_updateSent in real time whenever the status, quality classification (quality_rating) or messaging limit (messaging_limit) of the number is updated.
phone_number_quality_updateSent during the periodic synchronization of numbers. Uses a flat payload format (see the example below).
phone_number_syncSent during the periodic synchronization, reflecting the current state of the number.

Number status

Number statusDescription
1Number awaiting approval
2Number awaiting server creation
3Number awaiting server authentication
4Number awaiting server installation
5Number awaiting server configuration
6Number awaiting activation
7Active number
8Inactive number
9Deleted number
10Awaiting migration to Cloud Api
11Number awaiting server reboot
12Number awaiting activation completion by the user
13Banned number
14Number awaiting restoration
15Transferred number

Quality status (quality_status)

IDCode
0UNKNOWN
1CONNECTED
2FLAGGED
3MIGRATED

Quality classification (quality_rating)

IDQuality classification description
0UNKNOWN
1GREEN
2YELLOW
3RED

Messaging limit (messaging_limit)

IDamountformatted_amount
0UNKNOWNUnknown
110001.000
21000010.000
3100000100.000
4UNLIMITEDUnlimited
55050
6250250
720002.000

Example payload — phone_number_status_update

Example payload — phone_number_quality_update

The synchronization event uses a flat payload format, with the Business Manager limits at the number level and quality_rating as text.

Template message

Receive template approval notifications through your webhook. The message_template_status_update event is sent whenever the approval status of a template is changed.

Template status

IDCode (code)Description
0UNDEFINEDUndefined
1PENDINGPending
2APPROVEDApproved
3REJECTEDRejected
4IN_APPEALIn appeal
5PENDING_DELETIONPending deletion
6DELETEDDeleted
7DISABLEDDisabled
8FLAGGEDFlagged
9REINSTATEDReinstated
10PAUSEDPaused
11PAUSEDPaused

Example payload — message_template_status_update