Skip to Content
Audit events

List models in audit events

The models the organization's recorded model calls ran on in a time range, denied and failed calls included. An own-scope reader gets only the models of their own calls.

GET
/audit-events/models

The models the organization's recorded model calls ran on in a time range, denied and failed calls included. An own-scope reader gets only the models of their own calls.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_audit

Query Parameters

scope?string

own returns only the caller's own records, even when they may see the whole organization. all, the default, returns everything the caller may see. It never widens what the caller may see.

Value in"all""own"
start_time?string

Inclusive lower bound; calls with a timestamp >= start_time. Defaults to 30 days ago when omitted.

Formatdate-time
end_time?string

Exclusive upper bound; calls with a timestamp < end_time. Defaults to now when omitted.

Formatdate-time

Response Body

The request has succeeded.

application/json
  1. response
models*array<string>

Model names, sorted.

Example Request
curl -X GET 'https://your-org.aisecurity.services.us.connect.secureauth.com/api/v1/audit-events/models'
Example Response
{  "models": [    "string"  ]}