---
title: "Retrieve a request log"
method: GET
path: "/org/logs/{request_id}"
tags: ["Logs"]
---

# Retrieve a request log

`GET /org/logs/{request_id}`

## Request

- Base URL: `https://api.context.dev/v1`
- URL: `https://api.context.dev/v1/org/logs/{request_id}`
- Auth: HTTP bearer

Retrieve a request’s metadata, retained input, and response.

## Path parameters

- `request_id` string, uuid, required: The request ID of the logged API call.

## Response `200`

Log entry

- GetLogResponse
  - `data` LogDetail, required
    - `request_id` string, required: Request ID of the logged API call.
    - `timestamp` string, date-time, required: When the request completed.
    - `method` string, required: HTTP method, or `MONITOR` / `BATCH` for monitor-run and batch-settlement entries.
    - `path` string, required: Endpoint path as called.
    - `status_code` integer, required: HTTP status code returned.
    - `error_code` string, nullable, required: The `error_code` from the response, or null on success.
    - `latency_ms` number, required: Server-side processing time in milliseconds.
    - `credits_used` integer, required: Credits charged for this request.
    - `key_id` string, nullable, required: ID of the API key that made the request.
    - `tags` string[], required: Request tags supplied by the caller.
    - `zdr` boolean, required: Whether the request was made under zero data retention.
    - `input` object, required: What was sent with the request.
      - `query` object, required: Query parameters as sent.
      - `body` unknown
    - `response` unknown
    - `user_agent` string, nullable, required: User-Agent header of the request.
  - `key_metadata` KeyMetadata: Credits this request used and your remaining balance.
    - `credits_consumed` integer, required: Credits charged for this request.
    - `credits_remaining` integer, required: Credits remaining for your organization.
  - `request_id` string, uuid, required: Unique ID of this request, also in `X-Request-Id`. Include it when contacting support.

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Not found
- `429`: Rate limit exceeded (60 requests per minute per organization).
- `500`: Log storage is temporarily unavailable.

## Changes

- **2026-10-21** `61627728926b`: 5 warning
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `400`
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `401`
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `404`
  - added the new `NO_PUBLISHED_MARKDOWN` enum value to the `error_code` response property for the response status `429`
  - …1 more
- **2026-10-19** `4ddcf49b9fe5`: 5 info
  - added the optional property `error_data` to the response with the `400` status
  - added the optional property `error_data` to the response with the `401` status
  - added the optional property `error_data` to the response with the `404` status
  - added the optional property `error_data` to the response with the `429` status
  - …1 more
- **2026-10-16** `2125f3e94e52`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/context/apis/brand-api/changes/org/logs/:request_id/get.md)

---

[API](https://skmtc.dev/context/apis/brand-api.md) · [All operations](https://skmtc.dev/context/apis/brand-api/llms.txt) · [OpenAPI document](https://skmtc.dev/context/apis/brand-api/revisions/9e2ab7841fb1?raw)
