Skip to content
Dashboard
Theme
Theme

Retrieve an action's schema

GET /v1/audit_log_schemas/{action}: Retrieve an action's schema.

View Markdown

GET /v1/audit_log_schemas/{action}

Scope
audit_log_events:read
Auth
Secret key (sk_…)
Since
1.1
  • action string Required

    max length 128

  • version integer

    The schema version; the latest when absent.

    min 1 · max 10000

  • 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_log_schemas/user.signed_in" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 200
{
"object": "audit_log_schema",
"action": "user.signed_in",
"version": 1,
"actor": {
"metadata": {
"plan": "enterprise"
}
},
"targets": [
{
"type": "default",
"metadata": {
"plan": "enterprise"
}
}
],
"metadata": {
"plan": "enterprise"
},
"created_at": "2026-01-15T09:30:00Z"
}