API

AuditEvent

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/organizations/{organization_id}/audit_events list Organization audit events

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

audit_events, err := client.AuditEvent(nil).List(map[string]any{"organization_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(audit_events)

Lua

Construct client as shown in the Lua setup, then call the operations:

local audit_events, err = client:AuditEvent():list({ organization_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$audit_events = $client->AuditEvent()->list(["organization_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

audit_events = client.AuditEvent().list({"organization_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

audit_events = client.AuditEvent.list({ "organization_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const audit_events = await client.AuditEvent().list({ organization_id: "example" })

Fields

Field Type Required Description
action string Yes Action
actor_kind string Yes Actor Kind
actor_user_id one,string,null Yes Actor User Id
created_at string Yes Created At
created_at_label one,string,null Yes Created At Label
id string Yes Id
observability_space_id one,string,null Yes Observability Space Id
organization_id string Yes Organization Id
payload any Yes Payload
request_id one,string,null Yes Request Id
severity string Yes Severity
subject_id string Yes Subject Id
subject_kind string Yes Subject Kind
subject_name one,string,null Yes Subject Name
updated_at string Yes Updated At
updated_at_label one,string,null Yes Updated At Label

list

GET /api/v1/organizations/{organization_id}/audit_events

Operation ID: api_v1_organization_audit_events.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_id path string Yes

Responses

200: Organization audit events

application/json

Property Type Required Description
audit_events array of object Yes
audit_events[].action string Yes
audit_events[].actor_kind enum: user, service, system, agent Yes
audit_events[].actor_user_id string Yes
audit_events[].created_at string (date-time) Yes
audit_events[].created_at_label string Yes
audit_events[].id string Yes
audit_events[].observability_space_id string Yes
audit_events[].organization_id string Yes
audit_events[].payload any Yes
audit_events[].request_id string Yes
audit_events[].severity enum: info, notice, warn, error Yes
audit_events[].subject_id string Yes
audit_events[].subject_kind string Yes
audit_events[].subject_name string Yes
audit_events[].updated_at string (date-time) Yes
audit_events[].updated_at_label string Yes
pagination object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway