---
title: "List API Request Logs"
method: GET
path: "/api_request_logs"
tags: ["api_request_logs", "API Request Logs"]
---

# List API Request Logs

`GET /api_request_logs`

List API Request Logs

## Query parameters

- `cursor` string
- `per_page` integer

## Response `200`

A list of ApiRequestLogs objects.

- ApiRequestLogEntity[]
  - `timestamp` string, date-time — Start Time of Action. Deprecrated: Use created_at.
  - `api_key_id` integer — API Key ID, if applicable
  - `api_key_prefix` string — API Key Prefix, if applicable
  - `user_id` integer — User ID
  - `username` string — Username
  - `user_is_from_parent_site` boolean — true if this change was performed by a user on a parent site.
  - `interface` string — API Interface
  - `request_method` string — HTTP Method
  - `request_path` string — Request path
  - `request_ip` string — IP of requesting client
  - `request_host` string — Hostname the request was sent to
  - `request_id` string — Unique Id of the Request
  - `api_name` string — Name of API Endpoint
  - `user_agent` string — User-Agent
  - `error_type` string — Error type, if applicable
  - `error_message` string — Error message, if applicable
  - `response_code` integer — HTTP Response Code
  - `success` boolean — `false` if HTTP Response Code is 4xx or 5xx
  - `duration_ms` integer — Duration (in milliseconds)
  - `impersonator_user_id` integer — User ID of Site Admin user impersonating this user via a Read-Only session.
  - `created_at` string, date-time — Start Time of Action

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `405` — Method Not Allowed
- `409` — Conflict
- `412` — Precondition Failed
- `422` — Unprocessable Entity
- `423` — Locked
- `429` — Too Many Requests

---

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