API Documentation

Complete reference for the Secret PDF API. Generate PDFs from HTML templates in one API call.

Quick Start

Get started with the Secret PDF API in minutes. First, get your API key from the dashboard.

# Install the SDK
npm install @secretpdf/sdk
# Generate a PDF

Base URL

https://api.secretpdf.io

Authentication

All API requests require authentication using an API key:

# Using API Key