---
title: "GET /orgs/{orgId}/audit-logs"
method: GET
path: "/orgs/{orgId}/audit-logs"
---

# GET /orgs/{orgId}/audit-logs

`GET /orgs/{orgId}/audit-logs`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/orgs/{orgId}/audit-logs`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `orgId` string, required: Organization identifier

## Query parameters

- `actorId` string: Filter by actor identifier
- `actorType` 'API_KEY' | 'USER' | 'SYSTEM' | 'AGENT': Filter by actor type
- `action` string: Filter by action
- `resourceType` string: Filter by resource type
- `resourceId` string: Filter by resource identifier
- `result` 'SUCCESS' | 'FAILURE' | 'DENIED': Filter by result
- `query` string: Free-text search matched against action, actor id, resource type and resource id. Combines with the exact-match filters rather than replacing them.
- `startDate` string: ISO 8601 start date filter
- `endDate` string: ISO 8601 end date filter
- `cursor` string: Pagination cursor
- `limit` integer: Maximum number of entries to return

## Response `200`

OK

- object: Paginated list of audit log entries
  - `items` object[], required: List of audit log entries
    - `id` string, required: Unique audit log entry identifier
    - `orgId` string, required: Organization identifier
    - `actorType` 'API_KEY' | 'USER' | 'SYSTEM' | 'AGENT', required: Type of actor that performed the action
    - `actorId` string, required: Identifier of the actor
    - `action` string, required: Action performed (e.g. agent.create)
    - `resourceType` string, required: Type of resource acted upon
    - `resourceId` string, required: Identifier of the resource
    - `result` 'SUCCESS' | 'FAILURE' | 'DENIED', required: Result of the audited action
    - `ipAddress` string, nullable, required: IP address of the request
    - `userAgent` string, nullable, required: User-Agent header value
    - `metadata` object, nullable, required: Additional structured metadata
    - `createdAt` string, required: ISO 8601 timestamp of the event
  - `nextCursor` string, nullable, required: Cursor for the next page, null if no more results
  - `totalCount` integer, required: Total number of entries matching the filters

---

[API](https://skmtc.dev/useanima/apis/anima-api.md) · [All operations](https://skmtc.dev/useanima/apis/anima-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useanima/apis/anima-api/revisions/aaa148188980?raw)
