Skip to main content
GET
cURL
Related guide: Audit logs.

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

model_id
string
required

Query Parameters

cursor
string | null

Opaque cursor returned by a previous page. Omit to fetch the first page.

limit
integer
default:20

Maximum number of entries to return per page. Defaults to 20, and must be between 1 and 200.

Required range: 1 <= x <= 200
direction
enum<string>
default:DESC

Sort order by the time the action occurred. Defaults to DESC (newest first). Ignored when paginating with a cursor. Sort order of returned entries, by creation time.

Available options:
DESC,
ASC
search
string | null

Case-insensitive substring matched against resource names and IDs in the entry.

event_type_groups
enum<string>[]

When set, returns only entries whose event type falls in one of these groups.

Coarse grouping of event types, used to filter the audit log.

Available options:
DEPLOYED,
PROMOTED,
ACTIVATED_DEACTIVATED,
AUTOSCALING_SETTINGS,
INSTANCE_TYPE_CHANGED,
ENVIRONMENT_SETTINGS,
REPLICA_TERMINATED,
DELETED,
SECRETS,
API_KEYS,
GATEWAY,
WEBHOOK_SIGNING_SECRETS,
USER_MANAGEMENT,
DIRECTORY_GROUP_MANAGEMENT,
SSH
user_ids
string[]

When set, returns only entries whose acting user is one of these IDs.

deployment_ids
string[]

When set, returns only entries referencing one of these model deployment IDs.

chain_deployment_ids
string[]

When set, returns only entries referencing one of these chain deployment IDs.

environment_names
string[]

When set, returns only entries for one of these environments.

sources
enum<string>[]

When set, returns only entries issued from one of these surfaces.

Surface that issued the audited action.

Available options:
UI,
API,
MCP,
OTHER
start_epoch_millis
integer | null

Epoch milliseconds for the start of the window. Defaults to the beginning of the audit-log history.

end_epoch_millis
integer | null

Epoch milliseconds for the end of the window. Defaults to the current time.

Response

200 - application/json

A page of audit-log entries, newest first by default.

items
AuditLogEntryV1 · object[]
required

Items in this page.

pagination
PaginationResponseV1 · object
required

Pagination metadata for the page.