---
title: "List all API Logs"
method: GET
path: "/api-logs"
tags: ["apiLogs"]
---

# List all API Logs

`GET /api-logs`

## Request

- Base URL: `https://api.withpersona.com/api/v1`
- URL: `https://api.withpersona.com/api/v1/api-logs`
- Auth: HTTP bearer

Returns a list of your organization's API Logs. Results are returned in reverse chronological order, with the most recently created objects first.

## Query parameters

- `page` ApiLogsGetParametersPage
  - `after` string: Object ID for pagination cursor
  - `before` string: Object ID for pagination cursor
  - `size` number, double: Limit on the number of objects returned
- `fields` object

## Headers

- `Key-Inflection` 'camel' | 'kebab' | 'snake'
- `Idempotency-Key` string
- `Persona-Version` '2026-09-29' | '2025-12-08' | '2025-10-27' | '2023-01-05' | '2022-09-01' | '2021-08-18' | '2021-07-05' | '2021-02-21' | '2020-05-18': Server API version. More info on versioning can be found [here](https://docs.withpersona.com/versioning).

## Response `200`

This endpoint returns a collection of API log objects.

- APILogsListAllApiLogsResponse200
  - `data` ApiLog[], required: An array of API Logs
    - `type` 'api-log'
    - `id` string
    - `attributes` ApiLogAttributes
      - `request` ApiLogAttributesRequest
        - `method` string
        - `path` string
        - `headers` ApiLogAttributesRequestHeaders
          - `Accept` string
          - `Authorization` string: A sanitized version of the request's Authorization header.
          - `Host` string
          - `Persona-Version` string
          - `User-Agent` string
        - `get-params` object: The GET params of the request. Schema depends on the API called.
        - `post-params` object: The POST params of the request. Schema depends on the API called.
        - `ip-address` string
      - `response` ApiLogAttributesResponse
        - `status` integer
        - `headers` ApiLogAttributesResponseHeaders
          - `Persona-Host` string
          - `Cache-Control` string
          - `Pragma` string
          - `Expires` string
          - `RateLimit-Limit` integer
          - `RateLimit-Remaining` integer
          - `RateLimit-Reset` integer
          - `Quota-Limit` integer
          - `Quota-Remaining` integer
          - `Quota-Reset` integer
          - `Request-Id` string
          - `Content-Type` string
          - `Vary` string
      - `created-at` string, date-time
      - `redacted-at` string, date-time, nullable
    - `relationships` ApiLogRelationships
      - `api-key` ApiLogRelationshipsApiKey: The API key that made this request, if any.
        - `data` ApiLogRelationshipsApiKeyData
          - `type` 'api-key'
          - `id` string
  - `links` ApiLogsGetResponsesContentApplicationJsonSchemaLinks, required
    - `next` string, nullable, required
    - `prev` string, nullable, required

## Other responses

- `400`: The request was unacceptable, often due to invalid parameters.
- `401`: An invalid API key was provided.
- `403`: The given API key doesn’t have permissions to perform the request or a quota has been exceeded.
- `404`: The requested resource doesn’t exist.
- `429`: Your organization’s rate limit has been exceeded. We recommend an exponential backoff on requests.

---

[API](https://skmtc.dev/withpersona/apis/withpersona-4.md) - [All operations](https://skmtc.dev/withpersona/apis/withpersona-4/llms.txt) - [OpenAPI document](https://skmtc.dev/withpersona/apis/withpersona-4/revisions/2eddd7dae374?raw)
