{
"id": "wh627c8640675de8fc689ab9d9",
"url": "https://httpbin.org/anything?tag=api",
"enabledEvents": [
"whatsapp.message.updated",
"whatsapp.inbound_message.received"
],
"eventProperties": [
{
"event": "contact.attributes_changed",
"properties": [
"attr1",
"attr2"
]
}
],
"description": "My first webhook endpoint.",
"status": "active",
"secret": "whsec_abc4147651944f02baf3be1eb45d33f1",
"createTime": "2022-06-01T12:00:00.000Z",
"updateTime": "2022-06-01T12:00:00.000Z"
}{
"error": {
"status": 404,
"code": "NOT_FOUND",
"message": "The requested resource does not exist.",
"target": "",
"docUrl": "",
"requestId": "req_1KjtKI80IKoaJNa6n6p",
"whatsappApiError": {
"message": "HSM Template creation failed",
"code": 200002,
"type": "OAuthException",
"is_transient": false,
"error_subcode": 2388109,
"error_user_msg": "This message template cannot be created.",
"error_user_title": "Message Cannot Be Submitted",
"fbtrace_id": "AVGjJ7ia2zJkrHG",
"error_data": "<string>"
},
"metaBusinessAgentApiError": {
"title": "<string>",
"detail": "<string>",
"type": "<string>",
"status": 123,
"requestId": "<string>"
}
}
}Update a webhook endpoint
Updates a webhook endpoint, such as url, events, status.
{
"id": "wh627c8640675de8fc689ab9d9",
"url": "https://httpbin.org/anything?tag=api",
"enabledEvents": [
"whatsapp.message.updated",
"whatsapp.inbound_message.received"
],
"eventProperties": [
{
"event": "contact.attributes_changed",
"properties": [
"attr1",
"attr2"
]
}
],
"description": "My first webhook endpoint.",
"status": "active",
"secret": "whsec_abc4147651944f02baf3be1eb45d33f1",
"createTime": "2022-06-01T12:00:00.000Z",
"updateTime": "2022-06-01T12:00:00.000Z"
}{
"error": {
"status": 404,
"code": "NOT_FOUND",
"message": "The requested resource does not exist.",
"target": "",
"docUrl": "",
"requestId": "req_1KjtKI80IKoaJNa6n6p",
"whatsappApiError": {
"message": "HSM Template creation failed",
"code": 200002,
"type": "OAuthException",
"is_transient": false,
"error_subcode": 2388109,
"error_user_msg": "This message template cannot be created.",
"error_user_title": "Message Cannot Be Submitted",
"fbtrace_id": "AVGjJ7ia2zJkrHG",
"error_data": "<string>"
},
"metaBusinessAgentApiError": {
"title": "<string>",
"detail": "<string>",
"type": "<string>",
"status": 123,
"requestId": "<string>"
}
}
}Authorizations
Path Parameters
ID of the webhook endpoint.
"wh627c8640675de8fc689ab9d9"
Body
The URL of the webhook endpoint.
500"https://httpbin.org/anything?tag=api"
The list of events to enable for this endpoint.
Type of event.
email.delivery.updated, sms.message.updated, sms.inbound.received, voice.message.updated, whatsapp.business_account.deleted, whatsapp.business_account.reviewed, whatsapp.business_account.updated, whatsapp.inbound_message.received, whatsapp.message.updated, whatsapp.group.lifecycle_update, whatsapp.group.participants_update, whatsapp.group.settings_update, whatsapp.group.status_update, whatsapp.smb.history, whatsapp.smb.message.created, whatsapp.phone_number.deleted, whatsapp.phone_number.name_updated, whatsapp.phone_number.quality_updated, whatsapp.phone_number.business_username_updated, whatsapp.template.category_updated, whatsapp.template.correct_category_detection, whatsapp.template.quality_updated, whatsapp.template.reviewed, whatsapp.call.connect, whatsapp.call.terminate, whatsapp.call.status.updated, whatsapp.call.recording.updated, whatsapp.call.transcription.updated, whatsapp.flow.status_change, whatsapp.payment.updated, contact.attributes_changed, contact.created, contact.deleted, contact.unsubscribe.created, contact.unsubscribe.deleted, whatsapp.user.preferences, whatsapp.smb.message.echoes, contact.note.created, contact.note.updated, contact.note.deleted, whatsapp.echo_message.created, whatsapp.echo_message.updated, whatsapp.meta_business_agent.handover.updated Optional configuration for event properties in webhook payloads. Specifies which properties should be included for specific event types.
When enabledEvents contains contact.attributes_changed, this field is required and must contain at least one event property configuration for that event type.
Show child attributes
Show child attributes
[ { "event": "contact.attributes_changed", "properties": ["attr1", "attr2"] } ]
An optional description of what the webhook is used for.
400"My first webhook endpoint."
Webhook endpoint status.
active: Indicates that the webhook endpoint is active, and will receive notifications of events monitored.disabled: Indicates that the webhook endpoint is disabled, and will not receive notifications.pending: Indicates that the webhook endpoint is pending, and will not receive notifications. If a webhook endpoint fails to receive notifications frequently, it changes to pending.
active, disabled, pending Response
Successfully updated the webhook endpoint.
Unique ID for the object.
"wh627c8640675de8fc689ab9d9"
The URL of the webhook endpoint.
"https://httpbin.org/anything?tag=api"
The list of events to enable for this endpoint.
[ "whatsapp.message.updated", "whatsapp.inbound_message.received" ]
Optional configuration for event properties in webhook payloads. Specifies which properties should be included for specific event types.
When enabledEvents contains contact.attributes_changed, this field is required and must contain at least one event property configuration for that event type.
Show child attributes
Show child attributes
[ { "event": "contact.attributes_changed", "properties": ["attr1", "attr2"] } ]
An optional description of what the webhook is used for.
"My first webhook endpoint."
Webhook endpoint status.
active: Indicates that the webhook endpoint is active, and will receive notifications of events monitored.disabled: Indicates that the webhook endpoint is disabled, and will not receive notifications.pending: Indicates that the webhook endpoint is pending, and will not receive notifications. If a webhook endpoint fails to receive notifications frequently, it changes to pending.
active, disabled, pending The endpoint's secret, used to generate webhook signatures.
"whsec_abc4147651944f02baf3be1eb45d33f1"

