What is an event?
An event is a snapshot of a record at the moment something happened. Each event has:- A type, such as
customer.updatedorinvoice.paid. See the full list of event types. - The object as it was when the event occurred.
- Previous attributes on update events — the fields that changed and their values before the change.
- A request, including who caused it and the log ID for the API call.
See an object’s history
Most records in the Dashboard include an Events table at the bottom of the page. This is the history of that object: created, updated, paid, cancelled, and so on. To review a Customer’s history, follow these steps:- Open the Customers page and select a Customer.
- Scroll to Events.
- Click an event to open it. You will see the time, who caused it, the event data, and any previous attributes.
See who made a change
The event tells you what changed. The linked log tells you who made the request, from which IP address, and with which request body. To trace a change back to a person or API key, follow these steps:- Open the event — either from the object’s Events table or from Events.
- Check Actor. This is the kind of principal that caused the event:
- Dashboard user — a team member in the Dashboard.
- API — a secret or restricted API key.
- Agent — an agent key.
- System — Yorlet itself, for example a subscription generating an invoice.
- Click Source (Dashboard, API, or Customer portal). This opens the log for that request.
- On the log, read:
- User — the team member’s email, when the request came from the Dashboard.
- Key — the API key ID, when the request used a key.
- IP address and User agent.
- Request body — the payload that was sent (for
POSTrequests). - Response body — what Yorlet returned.
request.id is the same as the log ID (it starts with req_). You can also open a log directly at Logs.
Logs list mutating requests (
POST and DELETE). Reads (GET) are not stored. Some events are created by Yorlet in the background and have no log — for example a Subscription generating an Invoice. Those events show System as the actor.Filter logs by object
To see every mutating request that touched a record, without starting from an event:- Go to Logs.
- Filter by Object ID and paste the record’s ID.
- Use the Succeeded and Failed tabs to separate successful changes from errors.
Event object
When you retrieve an event from the API, or inspect one in the Dashboard, the payload looks like this:Actor
request.actor identifies the principal that caused the event:
Events API
List and retrieve events with a secret key that has theevents.read permission.
List events for an object
Passobject_id to return events whose primary record is that object — the same set you see on the object’s Events table:
related_object to include events that mention the ID even when it is not the primary record. For example, an invoice.paid event for a Customer’s Invoice:
related_object.
Filter by type
Match an exact type, or use a trailing* to match a prefix:
Retrieve an event
limit (default 20, maximum 50) and offset to page through results.