Skip to main content
Docs menu

API reference

Audit log

Who did what in your workspace: actor, credential, target, changes and context for each event, with filters, chain paging and JSON export.

Beta. This endpoint is switched on per organization. While it is off for yours, it answers 403 audit_events_off. Ask Finn support to turn it on.

Overview

The audit log records who did what in your workspace: sign-ins, setting changes, API and MCP calls, data changes, billing and integrations. Each event names the actor, the credential used, the target, what changed, and where the request came from. It is the API behind the MCP server's audit_events_list tool and the Audit log page in Finn.

Base URL: https://api.hirefinn.ai/api/v1. See authentication and scopes.

Credential and scope

The scope is audit:read. Call it with an org API key, or with the member token (a personal MCP key or an AI app's OAuth access token) of a workspace Owner or Admin. Other members get 403 forbidden, because the log names every member's actions.

Endpoint

MethodPathScopeWhat it does
GET/audit_eventsaudit:readList audit events.

Filters

ParameterNotes
limit1 to 200. Default 50.
cursorThe next_cursor of the previous page. Newest first. See pagination.
after_seqChain paging: events after this chain_seq, oldest first, with next_after_seq. Not with cursor or format. Use it to copy the log into your own system without gaps.
from, toISO dates or times.
categoryaccess, config, api, auth, data, billing, integrations or staff.
actionA comma-separated list of up to 20 actions, such as member.remove. contact.* matches every action that starts with contact..
actor_kindperson, api_key, mcp, ai_agent, operator, automation, staff or system.
actor_id, actor_emailOne actor.
searchFree text, up to 200 characters.
target_type, target_idOne target.
outcomesuccess, failure or denied.
formatjson exports the whole filtered set as a file, up to 10,000 events. truncated says when there were more.

Example: who changed setup this week

curl "https://api.hirefinn.ai/api/v1/audit_events?category=config&from=2026-11-20&limit=1" \
  -H "Authorization: Bearer $FINN_API_KEY"
{
  "object": "list",
  "data": [
    {
      "id": "0b1c2d3e-4f5a-4b6c-8d7e-9f0a1b2c3d4e",
      "object": "audit_event",
      "occurred_at": "2026-11-26T11:42:08.000Z",
      "category": "config",
      "action": "finn.updated",
      "outcome": "success",
      "reason": null,
      "actor": { "kind": "person", "type": "user", "id": "4d3c2b1a-0f9e-4d8c-7b6a-5f4e3d2c1b0a", "display": "Asha Menon", "email": "asha@example.com", "on_behalf_of": null },
      "credential": null,
      "target": { "type": "finn", "id": "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e", "display": "Front desk" },
      "changes": { "before": { "name": "Reception" }, "after": { "name": "Front desk" } },
      "context": { "ip": "203.0.113.24", "user_agent": "Mozilla/5.0", "source_service": "web-backend", "request_id": "req_7f3a9c" },
      "integrity": { "chain_seq": 18342, "prev_hash": "9c1e…", "row_hash": "4b7d…" }
    }
  ],
  "next_cursor": "eyJ0IjoiMjAyNi0xMS0yNlQxMTo0MjowOC4wMDBaIn0",
  "has_more": true,
  "next_after_seq": null
}

credential is null when a person acted in Finn itself. integrity links each event to the one before it, so you can check nothing was removed. It is null on events from before the chain began.

Privacy

People whose data was erased read as "Former member #…". IP addresses older than 13 months are cut to a /24 (IPv4) or a /48 (IPv6).

Rate limits

60 requests per minute per credential, and 5 JSON exports an hour. See rate limits.

Errors

StatusCodeWhen
400invalid_requestA filter isn't valid, or after_seq is sent with cursor or format.
400invalid_cursorThe cursor is malformed or from other filters.
401api_key_required, invalid_api_keyThe credential is missing, unknown or revoked.
403audit_events_offThe audit log API isn't turned on for your organization.
403insufficient_scopeThe credential lacks audit:read.
403forbiddenA member token whose person isn't an Owner or Admin.
429rate_limitedOver the limit. Wait Retry-After seconds.
503unavailableThe organization's settings couldn't be read, or chain paging isn't ready yet. Try again shortly.