> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hookpdf.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Welcome to the online API documentation for HOOKPDF.

HOOKPDF provides a powerful, scalable API for generating PDF documents. Send your JSON data, choose a template, and receive a professionally formatted PDF — all through a simple REST API.

## Base URL

All endpoints are relative to the following base URL:

```text theme={null}
https://api.hookpdf.com
```

## Authentication

All API requests require an API key. Include your key in the `Authorization` header:

```text theme={null}
Authorization: Bearer <YOUR_API_KEY>
```

You can generate and manage your API keys from the [HOOKPDF Dashboard](https://app.hookpdf.com).

## Available Endpoints

| Endpoint            | Method | Description                                       |
| ------------------- | ------ | ------------------------------------------------- |
| `/render`           | POST   | Enqueue a production PDF render job               |
| `/render/preview`   | POST   | Enqueue a preview render (watermarked, short TTL) |
| `/reports/{job_id}` | GET    | Check job status and get the PDF download URL     |

## Next Steps

* **[Render PDF](/api-reference/render/post)**: Send your data to generate a production PDF.
* **[Render Preview](/api-reference/render/preview)**: Test your template with a watermarked preview.
* **[Get Report](/api-reference/reports/get-id)**: Check the status of a render job and download the result.
