Skip to content

Read or export workspace audit events

GET
/audit-events
curl --request GET \
--url 'https://api.invogi.com/v1/audit-events?limit=1000&format=json' \
--header 'Authorization: Bearer <token>'

ANALYST or higher. JSON is the default. CSV additionally requires the audit-export capability. Filters use inclusive timestamp bounds at midnight for the supplied ISO dates.

X-Invogi-Organization
string format: uuid

For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.

from
string
/^\d{4}-\d{2}-\d{2}$/
to
string
/^\d{4}-\d{2}-\d{2}$/
limit
integer
default: 1000 >= 1 <= 10000
format
string
default: json
Allowed values: json csv

Successful response

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string
organizationId
required
null | string
actorType
required
string
actorUserId
required
null | string
actorLabel
required
null | string
action
required
string
targetType
required
null | string
targetId
required
null | string
metadata
required
createdAt
required
string format: date-time

Example generated

{
"items": [
{
"id": "example",
"organizationId": "example",
"actorType": "example",
"actorUserId": "example",
"actorLabel": "example",
"action": "example",
"targetType": "example",
"targetId": "example",
"metadata": "example",
"createdAt": "2026-04-15T12:00:00Z"
}
]
}

Invalid request

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}

API key lacks required scope/role

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}