Webhooks
A webhook is a POST that Diamra sends your server when something happens in your store, such as a customer accepting a price. You add endpoints in your store's Developer Console, under Webhooks. Each endpoint has its own URL, the events it listens for and its own signing secret; a store can have up to ten.
In this part
- Signing keysCheck that a webhook came from Diamra: the Standard Webhooks headers, a Node sample, the HMAC by hand and rolling a secret.
- Event typesEvery webhook event type and the page that lists its fields, who each event notifies, which studio message each one matches, and the shared envelope.
- Design eventsThe design.generated webhook event: it fires when a customer's set of designs finishes generating, and carries the set's id and a link to each design.
- Project eventsThe webhook events of a project, from project.started to project.completed: when each one fires and the fields in its data, such as image_url and bench_url.
- Estimate eventsThe estimate.generated and estimate.accepted webhook events: when each one fires and the fields in its data, such as the price, the metal and the stones.
- Message eventsThe message.created webhook event: it fires when a customer or your team sends a message in a store thread, and carries the text and who wrote it.
- Customer eventsThe customer.access_requested and customer.access_approved webhook events: a customer asks for access to your store, and your team approves them.
- Marketplace eventsThe cad_order.bid_submitted and cad_order.messages_unread webhook events: a CAD studio bids on your brief, or messages on your CAD order are still unread.
- Send the full report from your own emailSend a project's full report from your own address: listen for project.report_requested, turn off Diamra's email for it, then send the PDF or build your own.