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

# POST /orgs/{orgId}/audit-logs/export

`POST /orgs/{orgId}/audit-logs/export`

## Request

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

## Path parameters

- `orgId` string, required: Organization identifier

## Request body

- object: Input for exporting audit logs
  - `format` 'csv' | 'json': Export format
  - `startDate` string: ISO 8601 start date
  - `endDate` string: ISO 8601 end date
  - `actorType` 'API_KEY' | 'USER' | 'SYSTEM' | 'AGENT': Filter by actor type
  - `action` string: Filter by action
  - `resourceType` string: Filter by resource type
  - `query` string: Free-text search matched against action, actor id, resource type and resource id, as on the list endpoint.

## Response `200`

OK

- object: Exported audit log data
  - `data` string, required: Exported data as string (CSV or JSON)
  - `format` 'csv' | 'json', required: Format of the exported data
  - `count` integer, required: Number of records exported

---

[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)
