Create a webhook
POST
/webhooksSends events to your URL as they happen. The response includes secret, shown only this once: use it to check each delivery’s signature (see Webhooks on the overview). Up to 10 per brand or agency.
Request body (JSON)
urlstringrequiredAn https URL that answers with a 2xx within 10 seconds. Redirects aren’t followed.
eventsarray of stringsoptionalWhich events to send. Default: all of them.
scan.completedcompetitor.overtookopportunity.createdbrand_idstringoptionalThe brand whose events to send. Agency keys can leave it out to get every client’s events.
Response
The new webhook object, plus secret (whsec_…).
idstringWebhook id,
whk_….secretstringSigning secret,
whsec_…. Store it; it isn’t shown again.Errors
400invalid_requesturl isn’t https, or an event is unknown.
401unauthorizedMissing or revoked API key.
403forbiddenThe key is read-only, or you aren’t an admin of the brand.
404not_foundNo brand with that id that this key can read.
409webhook_limit10 webhooks already.
429rate_limitedToo many requests; see Retry-After.