Register a webhook

Registers a webhook so AURA posts event payloads to your URL as callouts, subscriptions, and customers change. Provide the events to subscribe to and any custom headers to include on each delivery. The URL must be HTTPS, and each customer source has a single active webhook — registering replaces it. The API path retains notifiers; docs use webhook terminology.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
urlstringRequiredformat: "uri"
HTTPS endpoint AURA posts event payloads to.
eventslist of stringsRequired

Event types to subscribe to, for example NEW_CALLOUT, CALLOUT_CLOSED.

methodstringOptionalDefaults to webhook

Delivery method. Use webhook.

headersmap from strings to stringsOptional

Custom headers included on every delivery, for example an authorization token.

Response

Successful.
messagestring
notifierobject

Errors

400
Bad Request Error
401
Unauthorized Error