Receive event notifications with webhooks.
Snapshot uses webhooks to notify your application when an event happens. Webhooks are particularly useful for asynchronous events like when a proposal is created, when it starts, or when it ends.
The webhook server sends a request for any new event, the request is sent to the configured URL with
POSTmethod and the event object as body.
Here is an example of the event object:
Here are the possible events:
proposal/createdWhen a new proposal is created
proposal/startWhen the voting period for a proposal starts.
proposal/endWhen the voting period for a proposal ends.
proposal/deletedWhen a proposal is deleted by the author or an admin of the space.