---
title: "List all api logs"
method: GET
path: "/api_logs"
tags: ["api_logs"]
---

# List all api logs

`GET /api_logs`

This endpoint retrieves all existing api logs that represent requests performed to Lago's API.

## Query parameters

- `page` integer
- `per_page` integer
- `from_date` string, date
- `to_date` string, date
- `http_methods[]` string[]
- `http_statuses[]` union[]
  - union
    - 'succeeded' | 'failed'
    - integer
- `api_version` string
- `request_paths` string

## Response `200`

List of api logs

- ApiLogsPaginated
  - `api_logs` 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
  - `meta` PaginationMeta, required
    - `current_page` integer, required — Current page.
    - `next_page` integer, nullable — Next page.
    - `prev_page` integer, nullable — Previous page.
    - `total_pages` integer, required — Total number of pages.
    - `total_count` integer, required — Total number of records.

## Other responses

- `401` — Unauthorized 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)
