---
title: "List recent logs"
method: GET
path: "/logs"
tags: ["logs"]
---

# List recent logs

`GET /logs`

## Query parameters

- `limit` integer
- `status` 'error' | 'success' | 'all'
- `key` string
- `cursor` integer
- `before` string, date-time

## Response `200`

List of recents logs. Can be filtered by API Key, Status (error/success) and time range.

- Logs
  - `success` boolean
  - `logs` object
    - `has_more` boolean
    - `data` LogObject[]
      - `id` integer
      - `duration` integer
      - `executed` integer
      - `credits` integer
      - `sandbox` boolean
      - `filesize` integer
      - `error` string
      - `code` integer
      - `user_agent` string
      - `request_id` string
      - `query` string
    - `limit` integer
    - `page` integer
    - `total` integer

## Other responses

- `401` — Unauthorized. Invalid auth key, missing, or disabled.
- `429` — Too Many Requests. You have been rate limited.
- `500` — Internal Server Error.

---

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