Pull the tenant's events after a given one
const url = 'https://api.pixonaut.app/v1/events?limit=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.pixonaut.app/v1/events?limit=100' \ --header 'Authorization: Bearer <token>'Operation ID: events.list
Catch up on events, for example after downtime: give after the id of the last event handled and follow nextCursor until it is null, which means nothing more is available yet; continue from the last id later. Events come in the order they were recorded, each in the envelope a webhook delivery’s body carries; dedupe them by id.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The id of the last event the caller handled; the answer starts after it. Omitted, it starts at the tenant’s first event.
The id of the last event the caller handled; the answer starts after it. Omitted, it starts at the tenant’s first event.
Comma-separated event types to narrow the answer to. Omitted, every type.
Comma-separated event types to narrow the answer to. Omitted, every type.
The most events to answer.
The most events to answer.
Responses
Section titled “Responses”A page of events
object
The events, in the order they were recorded, each in the envelope its type’s webhook delivery carries, with the payload that type sends.
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
Where the design came from: the door it was committed through. A duplicate’s is whoever duplicated it.
object
The designer link’s id, the key’s id, or the connected store’s site address. Null for studio, and for a key set in the deployment’s configuration rather than made in the workspace.
link: a designer link’s page made it. studio: a member made it, in the studio or through an MCP key. secret_key and publishable_key: committed with one of your keys. store: committed by a connected store, with any key its site was given.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
How the customer agreed, as the design read’s approvalConsent keeps it: null when none was given. Absent only on an event recorded before approvals carried it.
object
When the customer agreed, epoch milliseconds.
How the customer agreed: by adding the design to their cart, by ticking a box, on a proof page, by approving it again on your store after correcting it (edit), or by letting your store’s own approval deadline pass (deadline). More kinds may be added.
The design’s revision the decision was made about, as the design read’s revision says it. Absent only on an event recorded before decisions carried it.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
Why the design was rejected, as its decider said, or null when they said nothing. Absent only on an event recorded before rejections carried it.
The design’s revision the decision was made about, as the design read’s revision says it. Absent only on an event recorded before decisions carried it.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
object
Who carries it, such as DHL.
The shipment’s tracking number.
Where the shipment is followed: an https address.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
Who carries it, such as DHL.
The shipment’s tracking number.
Where the shipment is followed: an https address.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
object
Who carries it, such as DHL.
The shipment’s tracking number.
Where the shipment is followed: an https address.
object
Who carries it, such as DHL.
The shipment’s tracking number.
Where the shipment is followed: an https address.
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
object
The automation that caused the event, beside via.
object
The automation’s id.
What the automation was called when it acted.
When the event happened, in milliseconds since the Unix epoch.
The event’s id. A retry or a redelivery carries the same id, so a receiver can drop one it has already handled.
object
automation when one of your automations caused the event; absent otherwise.
Pass it as after for the next page. Null when nothing more is available yet: continue from the last event’s id later. A pull looks through at most 1000 events, so with types a page can be short, or empty, with a cursor that still moves on.
Examples
A connected store, from connect to delivery: 7. Hear what happened, and catch up
{ "events": [ { "createdAt": 1790086400000, "id": "1790086400000-0f1e2d3c-4b5a-4968-8776-655443322110", "payload": { "orderId": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b", "previousStatus": "printed", "printId": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f", "status": "shipped" }, "type": "order.status_changed" } ], "nextCursor": null}Example
{ "events": [ { "createdAt": 1760000000000, "id": "1760000000000-6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c", "payload": { "apiKeyId": "d4c3b2a1-0f9e-4d8c-9b7a-6e5f4d3c2b1a", "designId": "6f1c8a2b-3d4e-4f5a-8b6c-7d8e9f0a1b2c", "templateId": "tshirt-basic@2" }, "type": "design.committed" } ], "nextCursor": null}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unknown_event, invalid_event_type
object
Always sent with invalid_event_type.
Examples
invalid_event_type
{ "error": "invalid_event_type", "type": "string"}unknown_event
{ "error": "unknown_event"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: unauthorized
object
Examples
unauthorized
{ "error": "unauthorized"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: origin_forbidden, secret_key_required, feature_disabled, forbidden
object
The feature the tenant does not have. Always sent with feature_disabled.
Examples
feature_disabled
{ "error": "feature_disabled", "feature": "api"}forbidden
{ "error": "forbidden"}origin_forbidden
{ "error": "origin_forbidden"}secret_key_required
{ "error": "secret_key_required"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: invalid_query
object
Examples
invalid_query
{ "error": "invalid_query"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Refused: db_error. A request that failed unexpectedly answers as text instead.
object
Examples
db_error
{ "error": "db_error"}Headers
Section titled “Headers”Every response names the request it answers in X-Request-Id: the id the request was sent with in that header, when it is well formed, else one the API gave it. Quote it when reporting a refusal or a failure: the API’s log lines for that request carry it.
Questions? Write to [email protected].