An organization can have a single webhook url setup which we will send all events to. To change the url of the webhook send another post request with the new url. This will deactivate the previous webhook and create a new one.
cURL
curl --request POST \ --url https://api-staging.respondent.io/v1/webhooks \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --header 'x-api-secret: <x-api-secret>' \ --data '{ "teamId": "<string>", "url": "<string>" }'
{ "id": "<string>", "url": "<string>", "privateKey": "<string>", "teamId": "<string>", "organizationId": "<string>" }
The URL to send the webhook payload to.
The secret key to be used to sign the webhook payload.