---
title: "Get authoring-agent job status"
method: GET
path: "/v1/agent/jobs/{job_id}"
tags: ["Agent"]
---

# Get authoring-agent job status

`GET /v1/agent/jobs/{job_id}`

Poll the status of an authoring-agent job.

**Authentication:** API Key required (`x-api-key` header)

## Status Values

| Status | Description |
|--------|-------------|
| `pending` | Job is queued |
| `processing` | The agent is authoring (typically 30s-3min) |
| `completed` | Done — `template_id` and `preview_url` are set |
| `failed` | Job failed (see error_message); credits were refunded |

Poll every 2-5 seconds. A job stuck in `processing` for more than 10 minutes is
failed automatically and its credits refunded.

## Path parameters

- `job_id` string, required — Job UUID

## Response `200`

Job status retrieved

- AgentJobStatusResponse
  - `id` string, required
  - `kind` 'create' | 'revise', required
  - `status` 'pending' | 'processing' | 'completed' | 'failed', required
  - `template_id` string, nullable — Template short ID (once known)
  - `preview_url` string, nullable — Signed URL of the rendered preview (set when completed)
  - `preview_expires_at` string, nullable
  - `notes` string, nullable — Agent notes: font substitutions, naming, layout choices
  - `credits_charged` integer, required
  - `error_message` string, nullable
  - `error_code` string, nullable
  - `created_at` string, required
  - `updated_at` string, required
  - `completed_at` string, nullable

## Other responses

- `404` — Job not found
- `422` — Validation Error

---

[API](https://skmtc.net/pdftemplateapi/apis/templatefox-api.md) · [All operations](https://skmtc.net/pdftemplateapi/apis/templatefox-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pdftemplateapi/templatefox-api/revisions/5673fc0d5fad/schema)
