---
title: "Documentation"
description: "PDF Generator API documentation - Learn how to integrate PDF generation into your applications."
canonical_url: "https://documint-coderooz-projects.vercel.app/docs"
md_url: "https://documint-coderooz-projects.vercel.app/docs.md"
last_updated: "2026-10-12T07:01:56.033Z"
schema_type: "APIReference"
---

> For AI agents: Full index at [llms.txt](/llms.txt). Agent instructions at [AGENTS.md](/AGENTS.md). This page's canonical URL: https://documint-coderooz-projects.vercel.app/docs

# Documentation

Learn how to integrate PDF generation into your applications.

## API Endpoints



### `POST /v1/pdf`

Generate a new PDF from template


| Parameter | Type | Required | Description |
|---|---|---|---|
| `template` | string | yes | Template ID (cv, invoice, etc.) |
| `data` | object | yes | Template data |


### `GET /v1/templates`

List all available templates


| Parameter | Type | Required | Description |
|---|---|---|---|
| `category` | string | no | Filter by category |


### `GET /v1/pdf/:id`

Get PDF by ID


### Example Request

```bash
curl -X POST https://api.example.com/v1/pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"template": "cv", "data": {...}}'
```


### JavaScript

```javascript
const response = await fetch('https://api.example.com/v1/pdf', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    template: 'cv',
    data: { name: 'John Doe', ... }
  })
});
const pdf = await response.blob();
```


## Getting Started

Welcome to the PDF Generator API. Our API allows you to generate professional PDFs programmatically. Get started by signing up for an account and getting your API key.

## Authentication

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

Authorization: Bearer YOUR_API_KEY

Keep your API key secret. Never commit it to version control.

## API Endpoints

Generate a PDF by POSTing to the /v1/pdf endpoint:

POST /v1/pdf - Generate a new PDF from template
GET /v1/templates - List all available templates
GET /v1/pdf/:id - Get PDF by ID

## Templates

Available template IDs for PDF generation:

- cv: CV/Resume - Professional resume template
- invoice: Invoice - Business invoice template
- letter: Business Letter - Corporate letter template
- contract: Contract - Legal contract template

## PDF Generation

Generate a PDF by POSTing to the /v1/pdf endpoint with your template ID and data. The response includes a download URL for the generated PDF.

## Error Handling

The API uses standard HTTP status codes. Errors return a JSON object with details:

- 200: Success
- 400: Bad Request
- 401: Unauthorized
- 429: Rate Limited