EUrouter

Audit trail

See and export who changed which setting of your EUrouter organization and when: keys, routing, privacy settings, members, billing and sign-ins.

OpenAPI JSON

EUrouter records an audit event for every change to the settings of your organization: API keys, routing rules, privacy settings and policies, workspaces, broadcast destinations, plugins, members and invitations, billing, the plan, sign-ins and two-factor authentication. Each event says who made the change, when, what it was made to, and every setting that changed with its value before and after.

Use it to answer a question such as "who switched prompt logging off in the support workspace?" yourself, or to hand your DPO or auditor a full export.


Who sees it

The audit trail is part of the Pro plan. Events are recorded on every plan, so an organization that upgrades sees its full history. On another plan the dashboard page asks you to upgrade and the API answers 403 FEATURE_NOT_IN_PLAN.

Only owners and admins see the audit trail, because it holds other members' sign-ins, two-factor changes and billing changes. A member gets a 403. Call the API signed in or with an organization-wide management API key; an API key for model requests and a management key bound to one workspace get a 403.


What is never stored

  • No IP address, no API key, key hash or secret, no destination connection settings, and no prompt or completion.
  • No full email address. A member without a name shows as a masked address, such as a***@example.com. An email address inside a name, such as a member's or an API key's, is masked the same way.
  • Free text and personal details such as descriptions, logos, addresses, tax ids and billing emails are stored as [redacted]: the event shows that the value changed, not what it became. The dashboard shows them as "changed (value not stored)".

Events are append-only: nobody, EUrouter included, can change or delete one.


In the dashboard

The Audit trail page in the organization section of the dashboard lists the events of the organization, newest first, 50 a page. Each row shows the time in UTC, what happened, who did it (and with which API key) and a link to the resource where the dashboard has a page for it. Click a row to expand it and see each changed setting as before → after; an event without settings, such as a sign-in, shows how it happened.

Filter by period (up to 366 days in the list), event, kind of resource and member. The filters live in the page address, so you can bookmark or share a view. Export CSV and Export JSON download the same filters for any period.


List events

GET /audit-events returns the events of a period, newest first. from and to are required and a call covers at most 366 days.

curl "https://api.eurouter.ai/api/v1/audit-events?from=2026-11-01&to=2026-12-01&event_type=privacy_policy.changed" \
  -H "Authorization: Bearer $EUROUTER_MANAGEMENT_KEY"
{
  "data": [
    {
      "id": "0b8e4d2c-1a3f-4e5d-8c7b-9a6f5e4d3c22",
      "occurred_at": "2026-11-03T09:15:00.120000Z",
      "event_type": "privacy_policy.changed",
      "event_version": 1,
      "title": "Workspace privacy settings changed",
      "outcome": "success",
      "actor": {
        "type": "user",
        "user_id": "user_2b1c",
        "api_key_id": null,
        "display_name": "Dana Smit",
        "api_key_name": null
      },
      "resource": { "type": "workspace", "id": "6f1c2b3a-4d5e-4f60-8a7b-9c0d1e2f3a4b", "display_name": "Support" },
      "workspace_id": "6f1c2b3a-4d5e-4f60-8a7b-9c0d1e2f3a4b",
      "request_id": "c0a8012e-0000-4000-8000-000000000001",
      "auth_method": "jwt",
      "changes": {
        "is_observability_io_logging_enabled": {
          "label": "Prompt and response logging",
          "before": true,
          "after": false
        }
      },
      "metadata": {}
    }
  ],
  "next_cursor": null
}
ParameterWhat it does
fromStart of the period, inclusive. An ISO 8601 date or date-time; without a time zone it is UTC
toEnd of the period, exclusive. to=2026-12-01 includes all of November
event_typeOnly events of this type, from the table below
actor_user_idOnly events made by this member, signed in or with one of their API keys
actor_api_key_idOnly events made with this API key
resource_typeOnly events about this kind of resource, such as api_key or workspace
resource_idOnly events about this resource. Combine it with resource_type
workspace_idOnly events in this workspace
limitEvents per page, 1 to 100. The default is 50
cursorThe next_cursor of the previous page

Pass next_cursor as cursor, with the same other parameters, to get the next page. On the last page it is null.

In changes, before is null when the resource was created and after is null when it was deleted. changes is empty for an event without settings; metadata then says how it happened, such as the sign-in method.


Events

EventIn plain wordsSettings recorded
api_key.createdAPI key createdName, Type, Access, Expires, Disabled, Spending limit, Limit reset, Workspace, Default routing rule
api_key.updatedAPI key changedName, Type, Access, Expires, Disabled, Spending limit, Limit reset, Workspace, Default routing rule
api_key.policy_changedAPI key privacy policy changedPersonal data actions, Prompt-injection protection, AI prompt-injection check, Allowed providers, Denied providers, Allowed models, Denied models
api_key.deletedAPI key deletedName, Type, Access, Expires, Disabled, Spending limit, Limit reset, Workspace, Default routing rule
routing_rule.createdRouting rule createdName, Description, API key, Workspace, Model, Fallback models, Provider preferences, Enabled
routing_rule.updatedRouting rule changedName, Description, API key, Workspace, Model, Fallback models, Provider preferences, Enabled
routing_rule.deletedRouting rule deletedName, Description, API key, Workspace, Model, Fallback models, Provider preferences, Enabled
org_policy.changedOrganization policy changedAllowed countries, EU-owned providers only, Required certifications, Longest provider retention (days), No training on data, Allowed providers, Denied providers, Allowed models, Denied models, Prompt-injection protection, AI prompt-injection check, Prompt-injection email alerts, Personal data actions
workspace_policy.changedWorkspace guardrails changedPersonal data actions, Prompt-injection protection, AI prompt-injection check, Allowed providers, Denied providers, Allowed models, Denied models
member_policy.changedMember guardrails changedPersonal data actions, Prompt-injection protection, AI prompt-injection check, Allowed providers, Denied providers, Allowed models, Denied models
spend_budget.changedMonthly budget changedMonthly budget (EUR)
privacy_policy.changedWorkspace privacy settings changedPrompt and response logging, Broadcast export, Data-discount logging, Logging sampling rate, API keys that are logged
broadcast_destination.createdBroadcast destination createdName, Type, Enabled, Privacy mode, Sampling rate, Workspace, API keys that are exported, API keys whose prompts are forwarded, Connection settings changed
broadcast_destination.changedBroadcast destination changedName, Type, Enabled, Privacy mode, Sampling rate, Workspace, API keys that are exported, API keys whose prompts are forwarded, Connection settings changed
broadcast_destination.deletedBroadcast destination deletedName, Type, Enabled, Privacy mode, Sampling rate, Workspace, API keys that are exported, API keys whose prompts are forwarded, Connection settings changed
workspace.createdWorkspace createdName, Slug, Description, Default text model, Default image model, Default provider sort, Prompt and response logging, Broadcast export, Data-discount logging, Logging sampling rate, API keys that are logged
workspace.updatedWorkspace changedName, Slug, Description, Default text model, Default image model, Default provider sort
workspace.deletedWorkspace deletedName, Slug, Description, Default text model, Default image model, Default provider sort
workspace.member_addedMember added to workspaceRole
workspace.member_removedMember removed from workspaceRole
plugin_setting.changedPlugin setting changedEnabled, Requests can't override it
organization.createdOrganization createdName, Description, Website, Logo, Two-factor authentication required
organization.updatedOrganization changedName, Description, Website, Logo, Two-factor authentication required
organization.ownership_transferredOwnership transferredOwner
billing_details.changedBilling details changedCustomer type, Legal name, VAT number, Country, Address line 1, Address line 2, City, Region, Postal code, Tax ID, Registration number, Billing email
subscription.plan_changedPlan changedPlan, Billing interval, Status, Cancels at period end, Plan from the next period, Billing interval from the next period
payment_method.changedPayment method changedSaved payment method, Saved for automatic payments
auto_topup.changedAuto top-up changedEnabled, Top up below (EUR), Top-up amount (EUR), Monthly cap (EUR)
member.invitedMember invitedRole
member.joinedMember joinedRole
member.role_changedMember role changedRole
member.removedMember removedRole
sso_connection.createdSingle sign-on connection addedProtocol, Identity provider, Domains, Domain verified
sso_connection.domain_verifiedSingle sign-on domain verifiedProtocol, Identity provider, Domains, Domain verified
sso_connection.deletedSingle sign-on connection removedProtocol, Identity provider, Domains, Domain verified
slack_support_channel.invitedShared Slack channel requestedStatus
invitation.revokedInvitation revokedRole
invitation.rejectedInvitation declinedRole
referral_payout.createdReferral payout requestedAmount (EUR), Status
user.signed_inSigned inNone
user.two_factor_enabledTwo-factor authentication switched onNone
user.two_factor_disabledTwo-factor authentication switched offNone

Export

GET /audit-events/export downloads the audit trail of any period as one file, with the same filters as the list. There is no period limit: the file is streamed.

curl "https://api.eurouter.ai/api/v1/audit-events/export?from=2026-01-01&to=2027-01-01&format=csv" \
  -H "Authorization: Bearer $EUROUTER_MANAGEMENT_KEY" \
  -o audit-trail-2026.csv

format=csv (the default) opens in a spreadsheet, one row per event. format=json returns one JSON object per line (NDJSON), each in the shape of an event from the list.

CSV columns

ColumnContent
idId of the event
timeWhen it happened, ISO 8601 in UTC
event_typeType of event, such as api_key.updated
eventThe event in plain words
outcomesuccess or failure
actor_typeuser, api_key or system
actor_nameName of the member at the time of the event
actor_user_idUser id of the member, or of the owner of the API key
actor_api_key_nameName of the API key the change was made with
actor_api_key_idId of that API key
resource_typeKind of resource, such as workspace
resource_nameName of the resource at the time of the event
resource_idId of the resource
workspace_idWorkspace of the event
request_idId of the API request that made the change
auth_methodHow the actor signed in
changesEvery changed setting, such as Name: Old → New; Enabled: true → false
metadataExtra facts, such as method: password

In changes, (none) stands for no value: a setting of a new resource reads Name: (none) → Support bot. A text cell that starts with =, +, - or @ gets a leading apostrophe, so a spreadsheet never runs it as a formula.

See the Audit events API reference for every field.

Was this page helpful?

Still stuck? Contact support

On this page