---
title: "List audit logs"
method: GET
path: "/audit/logs"
tags: ["Audit"]
---

# List audit logs

`GET /audit/logs`

## Request

- Base URL: `https://public.escape.tech/v3`
- URL: `https://public.escape.tech/v3/audit/logs`
- Auth: API key in header `X-ESCAPE-API-KEY`

List audit logs of the organization.

## Query parameters

- `cursor` string: The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned.
- `size` integer: The number of items to return per page
- `sortType` 'ACTION' | 'ACTOR' | 'DATE' | 'TARGET' | 'TITLE': The type to sort by
- `sortDirection` 'asc' | 'desc': The direction to sort by
- `startTime` string: An ISO 8601 timestamp to filter audit logs after
- `endTime` string: An ISO 8601 timestamp to filter audit logs before
- `action` string: Filter by action type (exact match)
- `actor` string: Filter by actor (exact match on the actor ID; use `search` for emails or partial values)
- `target` string: Filter by target (case-insensitive substring match)
- `search` string: Filter by search term

## Response `200`

OK

- object
  - `nextCursor` string, nullable, required
  - `totalCount` integer
  - `data` object[], required
    - `id` string, uuid, required: The id of the audit log
    - `date` string, required: The date of the audit log
    - `title` string, required: The title of the audit log
    - `action` string, required: The action of the audit log
    - `actor` string, nullable, required: The actor of the audit log
    - `actorEmail` string, nullable, required: The email of the actor
    - `target` string: The target of the audit log

## Other responses

- `400`: Pagination error

---

[API](https://skmtc.dev/escape/apis/escape-public-api.md) - [All operations](https://skmtc.dev/escape/apis/escape-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/escape/apis/escape-public-api/revisions/2eab35df40c7?raw)
