Skip to navigation

Create an Event Subscription

Create an event subscription corresponding to your Chariot account.

Authentication

AuthorizationBearer

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

Request

The request body for creating an event subscription
urlstringRequired
The webhook url where we'll send notifications.
categoryenumRequired

The category of the event. This is useful for filtering events.

Event names follow the pattern {resource}.{event_type} where event_type is usually created or updated. Status transitions (for example, a Donor Account moving to approved or rejected) are emitted as {resource}.updated events — fetch the object to read its current status.

signing_secretstringOptional
The key used to sign webhooks sent to this URL, so you can verify they come from Chariot. If you omit it, Chariot reuses the secret of any existing subscription you have on the same URL, or otherwise generates a random one. The Create response is the only response that returns the secret, so store it then. Passing your own value is recommended.

Response headers

LocationstringOptional
The URI of the created object

Response

Created
event_subscriptionobjectOptional
Webhooks are event notifications we send to you by HTTPS POST requests. Event Subscriptions are how you configure your application to listen for them.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error