POST/v1/webhook-endpointswebhooks:manageThe API key needs the webhooks:manage permission. Without it the call is refused with 403 insufficient_scope. Sign in to try
Add a webhook endpoint
Or add it in **Developers → Webhooks**. The secret is returned once.
Request
curl -X POST "https://api.iotabot.com/v1/webhook-endpoints" \
-H "Authorization: Bearer $IOTABOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://crm.acme.com/iotabot",
"channels": [
"whatsapp"
],
"events": [
"message.received",
"message.status"
]
}'Response · 201
{
"data": {
"id": "6a4bb0…",
"object": "webhook_endpoint",
"url": "https://crm.acme.com/iotabot",
"status": "active",
"secret": "whsec_…",
"verification": {
"verified": true,
"reason": null
}
}
}