# Welcome to PDFgen API

Here you'll find all the documentation you need to get up and running with our PDFgen API.

Let's dive in 👇

## Steps involved in using our API

1. You need to generate your API key from the [<mark style="color:blue;">developer</mark>](https://pdfgen.com/developer) page on the PDFgen app to call our API endpoints (**Note: you need to be on a paid plan to get your API key**)
2. To create any PDF you need to have a `template_id` of the PDF.&#x20;
3. To get the `template_id`, create a template on the [PDFgen](https://pdfgen.com) app
4. After you get the `template_id` use that in the create endpoint to create PDFs

## Want to jump right in?

Feeling like an eager beaver? Jump into the quick start docs and get making your first request

{% content-ref url="quick-start" %}
[quick-start](https://api.pdfgen.com/quick-start)
{% endcontent-ref %}

## Want to deep dive?

Dive a little deeper and start exploring our API reference to get an idea of everything that's possible with our API endpoints

{% content-ref url="references" %}
[references](https://api.pdfgen.com/references)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.pdfgen.com/welcome-to-pdfgen-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
