Subscribe to channel webhooks
Path parameters
organization_idstringRequired
The ID of the organization
workspace_idstringRequired
The ID of the workspace
Body
servicestringOptional
eventstringOptional
templatestringOptional
urlstringOptional
signingKeystringOptional
Responses
200
Successful response
No content
400
Bad request
post
/organizations/{organization_id}/workspaces/{workspace_id}/webhook-subscriptionNo content
curl --location 'https://api.bird.com/workspaces/<your-workspace-id>/numbers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: AccessKey <your-access-key>' \
--data '{
"service": "channels",
"event": "whatsapp.inbound",
"url": "{{webhook_url}}",
"signingKey": "{{signing_key}}",
"eventFilters": [
{
"key": "channelId",
"value": "{{channelid}}"
}
]
}'curl --location 'https://api.bird.com/workspaces/<your-workspace-id>/numbers' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: AccessKey <your-access-key>' \
--data '{
"service": "channels",
"event": "whatsapp.outbound",
"url": "{{webhook_url}}",
"signingKey": "{{signing_key}}",
"eventFilters": [
{
"key": "channelId",
"value": "{{channel_id}}"
},
{
"key": "messageStatus",
"value": "sending_failed”
},
{
"key": "messageStatus",
"value": "sent"
},
{
"key": "messageStatus",
"value": "delivery_failed"
},
{
"key": "messageStatus",
"value": "delivered"
}
]
}
'Where next
Last updated
Was this helpful?

