Skip to main content
Whenever something happens in your account — a Customer is updated, an Invoice is paid, a Tenancy is activated — Yorlet records an event. Events are the history of your objects. Logs are the API requests that caused those changes, including which team member or API key made them. Use them together: events tell you what changed, and the linked log tells you who did it and how.

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.updated or invoice.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.
Events are also sent to webhook endpoints you subscribe, and can start a workflow.

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:
  1. Open the Customers page and select a Customer.
  2. Scroll to Events.
  3. Click an event to open it. You will see the time, who caused it, the event data, and any previous attributes.
The same Events table appears on Invoices, Subscriptions, Tenancies, Applications, Units, Buildings, Payments, and other records.
Open Events to browse every event in the account. Use the Object ID filter to find events that involve a specific record, or the Type filter to narrow to a type such as invoice.paid.

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:
  1. Open the event — either from the object’s Events table or from Events.
  2. 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.
  3. Click Source (Dashboard, API, or Customer portal). This opens the log for that request.
  4. 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 POST requests).
    • Response body — what Yorlet returned.
The event’s 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:
  1. Go to Logs.
  2. Filter by Object ID and paste the record’s ID.
  3. Use the Succeeded and Failed tabs to separate successful changes from errors.
Each row shows the HTTP method, URL, status, and time. Click a row to inspect the request and response.

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 the events.read permission.

List events for an object

Pass object_id to return events whose primary record is that object — the same set you see on the object’s Events table:
Pass 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:
The Dashboard Object ID filter on Events uses related_object.

Filter by type

Match an exact type, or use a trailing * to match a prefix:

Retrieve an event

Events are returned newest first. Use limit (default 20, maximum 50) and offset to page through results.
To reconstruct user activity in your own tools, list events for the object, then join each request.id to the log in the Dashboard. The log has the team member’s email and the raw request body; the event has the resulting object and previous_attributes.

Events, logs, and the activity log

These are three different records of activity: