Register a webhook
Registers the URL that receives lead events. The URL must be https.
The first PUT is 201 and returns the URL and the signing secret. Later PUTs replace the URL, keep the same secret, and return only the URL. A lost first response is not shown again. Integrations shows the URL and does not show the secret.
Events are not sent for the submit itself. They are sent when a queued lead is accepted (lead.delivered), when status changes (lead.status_changed), and when a queued lead is declined (lead.declined). The account that sent the lead receives the event, and so does each parent account that has a webhook, for leads in that parent’s Leads Sent scope.
Delivery is at least once. A failed POST keeps the same id and is retried after two minutes, up to 8 attempts, without waiting for another lead. Verify the signature over the raw body before trusting the JSON.
/api/webhooksX-CM-API-KEYAPI key · headerrequiredAccount key from Integrations. Keys use the cm_ prefix.
application/jsonurlstring<uri>requiredMust be an https URL.
The URL was replaced. The signing secret is unchanged and is not returned.
urlstringrequiredThe webhook was created. Store the secret. It is not shown again.
urlstringrequiredsecretstringrequiredSigning secret. Returned only on the first PUT.
The key is missing or unknown.
errorstringrequiredThe key cannot send leads.
errorstringrequiredThe body is invalid, or the URL is not https.
errorstringrequired