Events

Events

Quasr is built with an event-driven architecture: every action in your tenant, such as an API call, a login attempt or a change to an account, produces an event. Events drive back-end processing, serve as an audit log of your tenant, and can trigger your own code in real time with extensions. All events are listed in the catalog.

Structure

Every event has following fields:

  • ID (id) - The unique ID of the event.
  • Time (time) - When the event occurred (ISO 8601, UTC).
  • Type (type) - The type of event, e.g. AUTHENTICATION.
  • Origin (origin) - What produced the event, e.g. the ID of a factor, extension or client, or the API that was called.
  • Action (action) - What happened, e.g. validate-factor.
  • Result (result) - The outcome: SUCCESS, PENDING or FAILED.
  • Reason (reason) - Why the result is pending or failed, e.g. INCORRECT_INPUT or UNAUTHORIZED.
  • Account (account_id) - The ID of the account the event concerns, if any.
  • Address (address) - The IP address of the request, if any.
  • Detail (detail) - Additional details specific to the action, as JSON.

For example, a failed login with a wrong password:

{    "id": "{event_id}",    "time": "2026-11-06T09:15:42.123Z",    "type": "AUTHENTICATION",    "origin": "{factor_id}",    "action": "validate-factor",    "result": "FAILED",    "reason": "INCORRECT_INPUT",    "account_id": "{account_id}",    "address": "203.0.113.42",    "detail": {        "enrollment_id": "{enrollment_id}",        "subtype": "secret:password"    }}

Types

Type Generated Example Actions
APIFor every request to the Authentication, Management and Agent APIspost-oauth2-token, create-account, list-events
AUTHENTICATIONWhen accounts enroll in or validate factors, i.e. log in or sign upenroll-factor, validate-factor
AUTHORIZATIONWhen accounts try to gain access to applicationsaccess-client
DATABASEWhen resources are created, updated or deletedcreate-account, update-enrollment, delete-claim
DATATo convey data captured or sourced from factorscapture-input, capture-claims, source-claim
COMMUNICATIONTo convey messages to accounts, e.g. through your own providersend-otp, warn-account
MONITORINGTo provide insight in extensionsrun-extension, log-extension
REGISTRATIONWhen an account completes its registrationenable-account

Viewing Events

  • Admin UI - All events of your tenant are shown in the Events screen at https://{tenant_id}.admin.quasr.io/events, and the events of a specific account, factor, enrollment, source or extension in its Events tab.
  • Account UI - Users see their own events in the Events screen of the Account UI.
  • Management API - The listEvents operation returns the events of your tenant (with an admin scope) or of the calling account (with an account scope), see below.
  • Agent API - In the Agent API the list-events tool can be used, with the same arguments and scopes.
  1. 1Filter on a time range, type, origin, action or result
  2. 2The resource the event is about, here the application; for API events the caller (Origin header)
  3. 3Click an event for its reason and detail
  1. 1Why the event failed or is pending
  2. 2The detail of the event, as listed in the event catalog
  1. 1One of the event types, see Types above
  2. 2Success, pending or failed

A user's own events in the Account UI

API

The listEvents operation of the Management API returns events from newest to oldest, and can filter on any field. For example, the failed logins of the past week:

query {    listEvents(        filter: {            type: { eq: "AUTHENTICATION" },            action: { eq: "validate-factor" },            result: { eq: "FAILED" },            time: { ge: "2026-10-30T00:00:00Z" }        },        limit: 100    ) {        items {            id            time            origin            reason            account_id            address            detail        }        nextToken    }}
  • 25 events are returned by default; at most 100 for accounts and 1000 for admins (limit).
  • Events are searched day by day, starting from the most recent. Always filter on time when you can: a request stops searching after about 20 seconds, and then returns the events found so far with a nextToken to continue.
  • Keep requesting the next page until no nextToken is returned, even if a page contains fewer events than the limit.

Timing

Events are processed in two ways:

  • Real time - Events are delivered to extensions (and Quasr's own processing) within seconds.
  • Batched - Events are stored in the logs in batches every 5 minutes. Hence an event can take up to 5 minutes to appear in the Admin UI, Account UI or listEvents.

Retention

Events are kept for at least 5 years, protected against modification and deletion, and replicated to our secondary region. See Security.

Reacting to Events

To act on events in real time, create an extension with a rule that matches the events you're interested in. For example, a rule with type AUTHENTICATION, action validate-factor and result FAILED runs your code on every failed login attempt, e.g. to alert your security team. See Extensions — Asynchronous.

2026.11.22 | © Copyright 2026 Quasr BV