---
title: "List render logs for a template (v1)"
method: GET
path: "/v1/templates/{id}/logs"
tags: ["Legacy v1"]
deprecated: true
---

# List render logs for a template (v1)

`GET /v1/templates/{id}/logs`

## Request

- Base URL: `https://api.pdfs.build`
- URL: `https://api.pdfs.build/v1/templates/{id}/logs`
- Auth: HTTP bearer

> **Deprecated.**

## Query parameters

- `limit` integer
- `offset` integer
- `status` 'success' | 'error'
- `source` 'api' | 'ui' | 'mcp'

## Response `200`

Newest first.

- RenderLogListV1
  - `logs` RenderLogV1[], required
    - `id` string, required
    - `templateId` string, required: Internal template id.
    - `templateName` string, nullable
    - `source` string, required
    - `status` 'pending' | 'success' | 'error', required
    - `errorMessage` string, nullable
    - `durationMs` integer, nullable
    - `apiKeyId` string, nullable
    - `userId` string, nullable
    - `templateUpdatedAt` string: UTC, ISO 8601 without a timezone suffix.
    - `createdAt` string, required: UTC, ISO 8601 without a timezone suffix.
    - `apiKeyName` string, nullable, required
    - `apiKeyPrefix` string, nullable, required
  - `total` integer, required

## Other responses

- `401`: Missing, invalid or expired API key.
- `404`: No template with that id is accessible to this key. Another user's draft is indistinguishable from a missing template.

---

[API](https://skmtc.dev/pdfs/apis/pdfs-build-api.md) · [All operations](https://skmtc.dev/pdfs/apis/pdfs-build-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pdfs/apis/pdfs-build-api/revisions/1c7340b9521d?raw)
