Diamra Developer Docs
All pages

Event types

Each event has an entry on its group's page: when it fires, and the fields in its data. In the console, pick the events each endpoint listens for; each entry says whether a new endpoint starts with that event picked. The table below lists every event.

A tag beside an event's name is its intended recipient: the person Diamra notifies about it, the owner or the customer. Your endpoint gets every event it listens for, whoever the recipient is. Each body's recipient names the one for that delivery: whom Diamra notifies about it, whether or not your store has switched that email off, so a server that sends its own notifications knows whom to tell. An event with no tag notifies nobody, and its recipient is null. message.created has both tags; its recipient is whichever side didn't write the message.

Diamra may add event types, and fields to a type, so ignore any you don't recognize and still answer with a 2xx. An endpoint set to every event also gets the types added later. The names and fields in these docs stay as they are.

customer is the same object as on the studio's messages: id is Diamra's id for the customer, the same on every device, and phone is in international format, such as +15551234567. Picture links are public WebP images, 1024 pixels square, and need no sign-in. The words in from are listed under Where each detail came from.

Webhooks come from Diamra's servers, so they report what the servers know. Something that happens only on the customer's screen, such as the studio resizing or a price being displayed, has no webhook; only the studio's messages report it. The table under Studio messages and their webhooks matches each studio message to its webhook, where there is one.

Every event

Each group of events has its own page. An event's name opens its fields.

EventWhen it firesPage
A set of designs finishes generating. This one fires often.Designs
A customer starts a project, or your team starts one on your bench.Projects
Measurements are shared with the customer.Projects
A 3D model is shared with the customer.Projects
A video of the piece is shared with the customer.Projects
A new photo of the piece in progress is shared.Projects
Delivery details are saved.Projects
The project is marked complete.Projects
A customer or your team asks for a project's full report by email. It carries a link to the report as a PDF, and the same report as data.Projects
An estimate finishes with a price.Estimates
The customer accepts a price.Estimates
A customer or your team sends a message in a store thread.Messages
A customer asks for access to your store.Customers
Your team approves a customer who asked for access, the first time.Customers
A CAD studio bids on your CAD brief.Marketplace
Messages on your CAD order are still unread. It fires once, then again a day and three days later if nobody on your team opens them.Marketplace

Studio messages and their webhooks

The table lists each message the embedded studio sends your page and the webhook your server can use instead, if there is one. A webhook fires wherever the event happens, on your website or on your store. A message reaches your page only while the studio is open on it. Where both exist, the webhook's data uses the message's field names.

MessageWebhook
diamra:ready
None. It reports the studio loading on your page.
diamra:navigate
None. It reports a view change inside the studio.
diamra:resize
None. It reports the studio's height on your page.
diamra:design.generated
design.generated
diamra:project.started
project.started
diamra:estimate.displayed
estimate.generated. It fires once per estimate, when the price is ready for the customer, not each time the studio shows it.
diamra:estimate.accepted
estimate.accepted
diamra:customer.signed_out
None. It answers your page's diamra:sign_out command.
diamra:navigated
None. It reports the studio moving between a group's page and one of its stores.

The envelope

Every body has the same envelope: the event's id (the same as webhook-id), its type, its recipient (customer, owner or null, as above), created_at (when it happened), your store, and data with the event's fields in snake_case.

Body, shortenedJSON
{  "id": "7b9e2f1c-3a44-4d2e-9f0b-0c1a2b3c4d5e",  "type": "estimate.accepted",  "recipient": "owner",  "created_at": "2026-10-31T18:04:12Z",  "store": { "id": "a1b2c3d4-...", "subdomain": "yourstore" },  "data": {    "project_id": "...",    "design_image_id": "...",    "estimate_id": "...",    "price": 2450,    "currency": "USD",    "metal": "18K Gold",    "customer": { "id": "...", "email": "jane@example.com", "phone": "+15551234567", "first_name": "Jane", "name": "Jane Doe" },    "bench_url": "https://yourstore.diamra.com/bench/projects/<design_image_id>",    "image_url": "https://assets.diamra.com/design-images/.../0.webp"  }}