---
title: "Fetch HTTP error log entries for a domain on the caller's account"
method: GET
path: "/api/client/error-logs"
tags: ["Client - Logs"]
---

# Fetch HTTP error log entries for a domain on the caller's account

`GET /api/client/error-logs`

Pulls live entries from the BoltAgent log service. Defaults to the account's first domain when 'domain' is omitted. Supports level, search and date-range filters; results are paginated.

## Query parameters

- `domain` string
- `level` 'EMERGENCY' | 'ALERT' | 'CRITICAL' | 'ERROR' | 'WARNING' | 'NOTICE' | 'INFO' | 'DEBUG'
- `grep` string
- `since` string
- `until` string
- `lines` integer
- `page` integer
- `per_page` integer

## Response `200`

Paginated log entries

- object
  - `domain` string
  - `data` object[]
    - `id` string
    - `created_at` string — Timestamp from the agent (may be null)
    - `module` string
    - `level` string
    - `message` string
    - `domain` string
    - `username` string
  - `meta` object
    - `page` integer
    - `per_page` integer
    - `total` integer
    - `last_page` integer

## Other responses

- `404` — Domain not found or no domains on this account
- `422` — Validation error
- `502` — Failed to retrieve logs from the agent

---

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