Share PDFs from your code, and see who read them.
One request uploads a document and returns a tracked link. Webhooks tell your app, automation or AI agent the moment someone opens it or leaves their email.
Updated
curl https://sharepdf.app/api/v1/documents \
-H "Authorization: Bearer $SHAREPDF_API_KEY" \
-H "Accept: application/json" \
-F "[email protected]" \
-F "name=Acme proposal"{
"data": {
"id": "k7Qm2xPa9",
"title": "Proposal",
"status": "ready",
"share_url": "https://sharepdf.link/s/acme-proposal-k7Qm2xPa9.pdf",
"preview_image_url": "https://sharepdf.link/s/acme-proposal-k7Qm2xPa9.pdf/og"
}
}From file to tracked link in one request.
No SDK to install. Anything that can send an HTTP request can use it.
Create an API key
Make a key in Settings → API keys. It works for every document in your account and you can revoke it at any time.
Upload a document
Send a PDF, Word or PowerPoint file, or a URL to fetch it from. You get the share link back in the same response.
Hear when it is read
Get a webhook when someone opens it or leaves their email, or pull views, readers and leads whenever you need them.
Everything the dashboard does, from your code.
Documents, share settings, analytics, leads and webhooks all have endpoints.
Upload any way you like
Send the file in the request, pass a URL to fetch it from, or upload large files straight to storage with a direct upload link. Word and PowerPoint are converted to PDF for you.
Every share setting
Passwords, email capture, expiry dates, download on or off, custom link words, public or unlisted, and links on your own domain.
Reader analytics
Views, unique readers, countries, devices, traffic sources and time spent on each page, for one document or the whole account.
Leads
Emails left by readers of gated documents, newest first, or polled from where you left off so nothing is counted twice.
Signed webhooks
Events are signed so you can check they came from SharePDF, and retried for hours if your server is down.
Replace the file, keep the link
Send a new version and everyone who already has the link sees it. Analytics and settings stay put.
QR codes
A PNG or SVG QR code for any document, ready for print, slides or packaging.
Safe retries
Send your own upload id and a retried request returns the document you already made instead of a copy.
Know the moment a document is read.
Add an endpoint in Settings → Webhooks or through the API, and pick the events you want.
document.openedSomeone reads a document. Sent once per visitor per document every 30 minutes. Your own views, your own network and known crawlers are left out.
lead.capturedA viewer gives their email on an email-gated document. Sent once per email per document.
document.convertedA Word or PowerPoint file has been converted and its share link works.
document.conversion_failedA Word or PowerPoint file could not be converted.
{
"type": "document.opened",
"data": {
"document": {
"id": "k7Qm2xPa9",
"title": "Proposal"
},
"visitor": {
"id": "3f9a1c7e5b2d8f4a6c0e9d1b7a5f3e2c",
"email": "[email protected]",
"country": "DE"
}
}
}What people build with it.
Anywhere a document gets sent and you want to know what happened next.
Built to be read by AI agents
Point your agent at the API and it can share a file, send the link and check later whether it was read. The full reference is published in two formats agents understand:
- llms.txt — the whole API as one Markdown file.
- openapi.json — for tools that build clients or actions from OpenAPI.
Included in your plan, no extra bill.
Every paid plan includes the API. Going over a limit never charges you more.
| Limit | Pro | Max | Business |
|---|---|---|---|
| Requests per minute | 30 | 60 | 120 |
| Requests per month | 1,000 | 10,000 | 50,000 |
| Uploads per day | 50 | 200 | 1,000 |
| Word and PowerPoint conversions per day | 10 | 50 | 200 |
| API keys | 2 | 5 | 20 |
| Webhook endpoints | 1 | 3 | 10 |
The Free plan does not include API access. Compare plans
Questions about the API.
Short answers before you write the first request.
Which plans include the API?
Pro, Max and Business. Each plan has its own monthly request allowance and limits, shown in the table on this page. The Free plan does not include API access.
Does the API edit, merge or compress PDFs?
No. The SharePDF API is for sharing and tracking documents: upload, get a link, control access and see who read it. It converts Word and PowerPoint files to PDF so they can be shared, but it does not edit, merge, compress or generate PDFs.
Do readers need an account?
No. Readers open the link in their browser like any other SharePDF link. They only enter an email or password if you turned those on for that document.
Can AI agents use it?
Yes. Any agent that can make HTTP requests can upload documents and read analytics with an API key. The whole API is also published as an OpenAPI file and as a single llms.txt file that an agent can read in one request.
What happens when I reach my monthly limit?
Further requests are refused with a message that says when your allowance resets. Nothing is charged extra, your links keep working for readers, and you can upgrade for a higher limit at any time.
How are API keys kept safe?
A key is shown once when you create it, and SharePDF only stores a hash of it. Keep it on your server, never in a browser or mobile app. Revoking a key in settings stops it working at once.
Can links use my own domain?
Yes. If you have an active custom domain, every document in the API response also includes its link on your domain.
Keep exploring.
The full reference and the features the API builds on.
Send your first tracked PDF from code.
Create a key, upload a file, and get the link back in one request.