cURL
curl --request POST \ --url https://whatsrb.com/api/v1/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "webhook": { "url": "<string>", "active": true, "events": [ "message.received" ] } } '
{ "data": { "id": 123, "url": "<string>", "events": [ "<string>" ], "active": true, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "secret": "whsec_xxxxxxxxxxxx" } }
The response includes a secret for verifying webhook signatures. Store it securely — it won’t be shown again.
secret
API key from the WhatsRB dashboard. Format: Bearer wrb_live_xxx
Bearer wrb_live_xxx
Show child attributes
Created