---
title: "Batch history, newest first"
method: GET
path: "/v1/doc-gen/jobs"
tags: ["Document Generation"]
---

# Batch history, newest first

`GET /v1/doc-gen/jobs`

## Request

- Base URL: `https://api.talonic.com`
- URL: `https://api.talonic.com/v1/doc-gen/jobs`
- Auth: HTTP bearer

Batches whose documents the key's minting user may read under Sources IAM. Each entry carries the number of documents, how many failed and how many lack a PDF instead of the documents themselves.

## Query parameters

- `limit` integer

## Response `200`

Batches.

- object
  - `data` DocGenJobSummary[]
    - `id` string, uuid
    - `templateIds` string[]
    - `templateNames` string[]
    - `createdAt` string, date-time
    - `by` string
    - `status` 'running' | 'completed' | 'failed'
    - `error` string, nullable
    - `savedToWorkspace` boolean
    - `pdfAvailable` boolean
    - `filesExpireAt` string, date-time, nullable
    - `filesExpired` boolean
    - `documents` integer: Number of documents the key's minting user may read.
    - `failed` integer: Documents with status `failed`.
    - `pdf_missing` integer: Documents with a PDF error.
    - `events` DocGenAuditEvent[]
      - `id` string
      - `at` string, date-time
      - `by` string
      - `kind` 'filled' | 'entered' | 'edited' | 'reverted' | 'generated' | 'exported' | 'saved' | 'template_uploaded' | 'field_confirmed' | 'parties_chosen'
      - `field` string
      - `fieldLabel` string
      - `from` string, nullable
      - `to` string, nullable
      - `detail` string
      - `documentId` string

## Other responses

- `400`: The request is invalid.

## Changes

- **2026-10-28** `0a485a46163e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/talonic/apis/talonic-api/changes/v1/doc-gen/jobs/get.md)

---

[API](https://skmtc.dev/talonic/apis/talonic-api.md) - [All operations](https://skmtc.dev/talonic/apis/talonic-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talonic/apis/talonic-api/revisions/9f6d53e2ab5e?raw)
