Skip to main content
GET
/
api
/
audit-logs
/
{audit_log_id}
Get Audit Log
curl --request GET \
  --url https://anaconda.com/api/audit-logs/{audit_log_id} \
  --header 'Authorization: Bearer <token>'
{
  "action_key": "<string>",
  "created_at": "<timestamp>",
  "id": "<uuid>",
  "message": "<string>",
  "org_id": "<uuid>",
  "action_verb": "<string>",
  "actor_email": "<string>",
  "actor_id": "<uuid>",
  "actor_type": "<string>",
  "meta": {},
  "occurred_at": "<timestamp>",
  "org_name": "<string>",
  "service_name": "<string>",
  "target_email": "<string>",
  "target_id": "<uuid>",
  "target_type": "<string>"
}

Authorizations

Authorization
string
header
required

Authenticate requests using a bearer token.

Supported token types:

  • Access Token — short-lived token obtained from the authentication service
  • JWT Token — JSON Web Token containing encoded credentials

Header format

  • Authorization: Bearer <your_token>

Headers

X-Org-Name
string | null

Name of the organization to scope the request to. This header is required in multi-tenant deployments.

Organization name used to resolve the tenant context.

X-API-Version
string
default:v1

API version identifier (for example, v1 or v2). Defaults to v1 when not provided.

API version to target for this request.

Path Parameters

audit_log_id
string<uuid>
required

UUID of the audit log entry to retrieve.

Identifier of the audit log entry.

Example:

"<uuid>"

Response

Request succeeded and the requested audit log entry is returned.

Response representation of an audit log entry, including core fields and a formatted, human-readable message.

action_key
string
required

Key that identifies the type of action recorded (for example, policy_updated).

created_at
string<date-time>
required
Example:

"<timestamp>"

id
string<uuid>
required
Example:

"<uuid>"

message
string
required

Human-readable message describing the audit event, derived from the structured fields in the log.

org_id
string<uuid>
required
Example:

"<uuid>"

action_verb
string | null

Short verb or phrase that summarizes the action taken (for example, created, updated, deleted).

Maximum string length: 100
actor_email
string | null

Email address of the actor who performed the action.

Maximum string length: 320
actor_id
string<uuid> | null

UUID of the user or system principal responsible for the action.

Example:

"<uuid>"

actor_type
string | null

Type of actor that initiated the event (for example, user or system).

Maximum string length: 100
meta
Meta · object

Arbitrary metadata associated with the event, represented as a JSON object.

occurred_at
string<date-time> | null

Time at which the event occurred, as reported by the emitting service.

Example:

"<timestamp>"

org_name
string | null

Name of the organization to which this audit log entry belongs.

service_name
string | null

Name of the service that wrote the audit log entry.

Maximum string length: 100
target_email
string | null

Optional email address associated with the resource or subject affected by the action.

Maximum string length: 320
target_id
string<uuid> | null

Identifier of the resource affected by the action.

Example:

"<uuid>"

target_type
string | null

Type of resource affected by the action (for example, user, group, policy).

Maximum string length: 100