---
title: "Retrieve an api log"
method: GET
path: "/api_logs/{request_id}"
tags: ["api_logs"]
---

# Retrieve an api log

`GET /api_logs/{request_id}`

This endpoint retrieves an existing api log that represents a request made to the API. The api log is identified by its unique request_id.

## Response `200`

Api Log

- ApiLog
  - `api_log` ApiLogObject, required
    - `api_version` string, required — Lago API version used in the request.
    - `client` string, required — The client used to make the request to the API.
    - `http_method` 'post' | 'put' | 'delete', required — This field represents the HTTP method of the request.
    - `http_status` integer, required — This field represents the HTTP status of the requests.
    - `logged_at` string, date-time, required — The logged date of the api log, presented in the ISO 8601 datetime format, specifically in Coordinated Universal Time (UTC). It provides the precise timestamp of when the event's record was created within the Lago application
    - `request_body` string, object, required
    - `request_origin` string, required — This field represents the API origin of the requested URL
    - `request_path` string, required — This field represents the API path of the requested URL
    - `created_at` string, date-time, required — The creation date of the api log record in the Lago application, presented in the ISO 8601 datetime format, specifically in Coordinated Universal Time (UTC). It provides the precise timestamp of when the event's record was created within the Lago application
    - `request_id` string, uuid, required — Unique identifier for the api log.
    - `request_response` string, object

## Other responses

- `401` — Unauthorized error
- `404` — Not Found error

---

[API](https://skmtc.dev/getlago/apis/lago-api-documentation.md) · [All operations](https://skmtc.dev/getlago/apis/lago-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getlago/lago-api-documentation/revisions/6e969ef3bb45/schema)
