---
title: "Retrieve an API Log"
method: GET
path: "/api-logs/{api-log-id}"
tags: ["apiLogs"]
---

# Retrieve an API Log

`GET /api-logs/{api-log-id}`

## Request

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

Retrieves the details of an existing API Log.

## Path parameters

- `api-log-id` string, required

## Query parameters

- `include` string
- `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 an API log object.

- APILogsRetrieveAnApiLogResponse200
  - `data` ApiLog, required: An API Log object
    - `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
  - `included` unknown[]: Excluded from the response by default. Will be an empty array when the `include` query parameter in the request was explicitly set to empty.
    - unknown

## 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-8.md) - [All operations](https://skmtc.dev/withpersona/apis/withpersona-8/llms.txt) - [OpenAPI document](https://skmtc.dev/withpersona/apis/withpersona-8/revisions/3683a7f9e1fe?raw)
