Quick Start
This guide will walk you through making your first successful API call to PageFlow.
Step 1: Get Your API Key
First, you’ll need an API key. Sign up for a free account on the PageFlow Dashboard to get your key instantly.
Step 2: Make Your First Request
Once you have your key, you can make a request to the /convert
endpoint. The API accepts either a url
or a raw html
string.
Here’s how to convert example.com
to a PDF. Replace YOUR_API_KEY
with your actual key.
cURL
curl -X POST \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "url": "https://example.com" }' \
--output my-first.pdf \
https://api.pageflow.dev/convert
This command will save a my-first.pdf
file in your current directory.
Congratulations! You’ve successfully created a PDF with PageFlow.