---
title: "Get proxy logs with optional filters and pagination"
method: GET
path: "/proxy-logs"
tags: ["Proxy Logs"]
---

# Get proxy logs with optional filters and pagination

`GET /proxy-logs`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/proxy-logs`
- Auth: HTTP bearer

## Query parameters

- `project_id` integer, nullable
- `environment_id` integer, nullable
- `deployment_id` integer, nullable
- `session_id` integer, nullable
- `visitor_id` integer, nullable
- `start_date` string, date-time, nullable
- `end_date` string, date-time, nullable
- `method` string, nullable
- `host` string, nullable
- `path` string, nullable
- `path_exact` string, nullable
- `client_ip` string, nullable
- `exclude_synthetic` boolean, nullable
- `status_code` integer, nullable
- `response_time_min` integer, nullable
- `response_time_max` integer, nullable
- `routing_status` string, nullable
- `request_source` string, nullable
- `is_system_request` boolean, nullable
- `user_agent` string, nullable
- `browser` string, nullable
- `operating_system` string, nullable
- `device_type` string, nullable
- `is_bot` boolean, nullable
- `exclude_bots` boolean, nullable
- `bot_name` string, nullable
- `ai_provider` string, nullable
- `ai_agent` string, nullable
- `is_ai_agent` boolean, nullable
- `request_size_min` integer, nullable
- `request_size_max` integer, nullable
- `response_size_min` integer, nullable
- `response_size_max` integer, nullable
- `cache_status` string, nullable
- `container_id` string, nullable
- `upstream_host` string, nullable
- `has_error` boolean, nullable
- `page` integer, nullable
- `page_size` integer, nullable
- `sort_by` string, nullable
- `sort_order` string, nullable

## Response `200`

List of proxy logs

- ProxyLogsPaginatedResponse: Paginated response for proxy logs
  - `logs` ProxyLogResponse[], required
    - `bot_name` string, nullable
    - `browser` string, nullable
    - `browser_version` string, nullable
    - `cache_status` string, nullable
    - `client_ip` string, nullable
    - `container_id` string, nullable
    - `deployment_id` integer, nullable
    - `device_type` string, nullable
    - `environment_id` integer, nullable
    - `error_message` string, nullable
    - `host` string, required
    - `id` integer, required
    - `ip_geolocation_id` integer, nullable
    - `is_bot` boolean, nullable
    - `is_system_request` boolean, required
    - `ja4` string, nullable: The client's JA4 TLS fingerprint, when its source gives one.
    - `ja4_source` string, nullable: Where the JA4 came from: `direct`, `cloudflare`, `bunny`, `local` or `edge`.
    - `method` string, required
    - `operating_system` string, nullable
    - `path` string, required
    - `project_id` integer, nullable
    - `query_string` string, nullable
    - `referrer` string, nullable
    - `request_headers` object, nullable: Inbound request headers, credential values already replaced with `[REDACTED]` at ingest (see [`crate::redaction`]). `None` when the entry predates header capture or was written by a path that doesn't record them; an empty map means "captured, but no headers", which is different and worth being able to tell apart. A `BTreeMap` rather than a raw `serde_json::Value` so the schema stays typed and the UI gets a stable alphabetical ordering for free.
    - `request_id` string, required
    - `request_size_bytes` integer, nullable
    - `request_source` string, required
    - `response_headers` object, nullable: Upstream response headers, redacted on the same terms as [`Self::request_headers`].
    - `response_size_bytes` integer, nullable
    - `response_time_ms` integer, nullable
    - `routing_status` string, required
    - `session_id` integer, nullable
    - `shield_reasons` string[], required: The lists that hold the client, and the range on each.
    - `shield_verdict` string, nullable: What Shield would have done with the request: `log`, `challenge` or `block`. `None` when no reputation list holds the client.
    - `status_code` integer, required
    - `timestamp` string, required
    - `upstream_host` string, nullable
    - `user_agent` string, nullable
    - `visitor_id` integer, nullable
  - `page` integer, required
  - `page_size` integer, required
  - `total` integer, required
  - `total_pages` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-26** `cddadf038293`: 4 info
  - added the optional property `logs/items/ja4` to the response with the `200` status
  - added the optional property `logs/items/ja4_source` to the response with the `200` status
  - added the optional property `logs/items/shield_verdict` to the response with the `200` status
  - added the required property `logs/items/shield_reasons` to the response with the `200` status
- **2026-10-26** `198448ae2ca3`: 1 breaking, 1 warning
  - removed the required property `logs/items/shield_reasons` from the response with the `200` status
  - removed the optional property `logs/items/shield_verdict` from the response with the `200` status
- **2026-10-26** `c62ae50cd5db`: 2 info
  - added the optional property `logs/items/shield_verdict` to the response with the `200` status
  - added the required property `logs/items/shield_reasons` to the response with the `200` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/proxy-logs/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
