Skip to content
Dashboard
Theme
Theme

List audit logs

GET /v1/audit_logs: List audit logs.

View Markdown

GET /v1/audit_logs

Scope
audit:read
Auth
Secret key (sk_…)
Since
1.0
  • limit integer

    min 1 · max 100 · default 20

  • after string

    Cursor from next_cursor.

  • before string

  • actor string

  • action string

  • target string

  • organization string

    Only entries about this organization, its connections, directories, domains and IT contacts. Matches entries whose target is the organization or whose metadata records it as organization_id.

  • from string (date-time)

    RFC 3339, UTC.

  • to string (date-time)

    RFC 3339, UTC.

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X GET \
"https://api.ohauthcat.com/v1/audit_logs" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "list",
"data": [
{
"id": "alog_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"object": "audit_log",
"actor": "example_actor",
"actor_label": "example_actor_label",
"action": "user.signed_in",
"target": "example_target",
"target_label": "example_target_label",
"created_at": "2026-01-15T09:30:00Z"
}
],
"has_more": true,
"next_cursor": "cur_01J9Z3K5V7W8X9Y0Z1A2B3C4D5"
}