Subscribing to channel created 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": "channel.created",
"url": "{{webhook_url}}",
"signingKey": "{{signing_key}}",
"eventFilters": []
}'{
"service": "channels",
"event": "channel.created",
"organizationiD": "{{orgId}}
"workspaceId": "{{workspaceId}}"
"payload": {
"id": "{{channelid}}",
"platformId": "whatsapp"
"connectorId": "{{connectorid}}"
"identifier": {{whatsappphoneid}}
"name": {{channelname}}
"status": "active"
}
}
Last updated
Was this helpful?

