cURL
curl --request GET \ --url https://app.getcensus.com/api/v1/webhooks/{webhook_id} \ --header 'Authorization: Bearer <token>'
{ "status": "success", "data": { "name": "My Webhook", "endpoint": "https://mycompany.com/census-sync-alerts", "description": "Webhook for failed syncs ", "events": [ "sync.alert.raised", "sync.alert.resolved" ], "id": 123 } }
Fetch a specific webhook by its ID
Bearer token for the current workspace. Can be retrieved from the Workspace's settings page.
ID of the webhook
Successfully retrieved the webhook
The outcome of the fetch request
success
not_found
error
"success"
Webhooks are used to notify you when sync alerts are raised or resolved, or when certain lifecycle events happen during a sync run.
Show child attributes
The name of the webhook
"My Webhook"
The endpoint the webhook will ping when an event occurs in Census. Must be a secure (HTTPS) site.
"https://mycompany.com/census-sync-alerts"
An optional description of the webhook
"Webhook for failed syncs "
The events that the webhook should alert on. By default all events are alerted on unless otherwise specified.
sync.alert.raised
sync.alert.resolved
sync.triggered
sync.started
sync.completed
sync.success
sync.failed
["sync.alert.raised", "sync.alert.resolved"]
The id of the webhook.
123
Was this page helpful?