Snapshot
Search…
Webhooks
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 POST method and the event object as body.
Here is an example of the event object:
1
{
2
id: 'proposal/QmZ21uS8tVucpaNq2LZCbZUmHhYYXunC1ZS2gPDNWwPWD9',
3
event: 'proposal/created',
4
space: 'yam.eth',
5
expire: 1620947058
6
}
Copied!
Here are the possible events:
proposal/created When a new proposal is created
proposal/start When the voting period for a proposal starts.
proposal/end When the voting period for a proposal ends.
proposal/deleted When a proposal is deleted by the author or an admin of the space.

Subscribe to events

If you want to subscribe to webhooks please contact us on Discord or Telegram in the #helpdesk channel. You will need to provide a URL to receive the webhook request.
Last modified 19d ago
Copy link