---
title: "List API logs"
method: GET
path: "/api_logs"
tags: ["API Logs"]
---

# List API logs

`GET /api_logs`

Returns logs of external API calls made by your project, most recent first.

## Query parameters

- `endpoint` string
- `status_code` integer
- `errors_only` boolean
- `period` '24h' | '7d' | '30d'
- `limit` integer
- `before` string
- `after` string

## Response `200`

Success

- ExternalApiLogListResponse
  - `data` ExternalApiLog[], required
    - `id` string, uuid, required
    - `endpoint` string, required — The API endpoint that was called
    - `http_method` string, required — HTTP method used (GET, POST, etc.)
    - `response_status` integer, required — HTTP response status code
    - `response_time_ms` number, required — Response time in milliseconds
    - `ip_address` string, nullable
    - `error_message` string, nullable
    - `created_at` string, date-time, required
    - `api_key_id` string, uuid, nullable
    - `api_key_name` string, nullable — Name of the API key used for the request
  - `paging` Paging, required
    - `cursors` PaginationCursor
      - `before` string — Cursor for previous page (Base64 encoded)
      - `after` string — Cursor for next page (Base64 encoded)
    - `next` string, nullable
    - `previous` string, nullable

## Other responses

- `401` — Missing or invalid API key

---

[API](https://skmtc.net/kapso/apis/kapso-platform-api.md) · [All operations](https://skmtc.net/kapso/apis/kapso-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kapso/kapso-platform-api/revisions/18ff5548a33f/schema)
