API access
One request. Your document back.
Send a file and the tool you want. The finished file comes straight back in the same reply, ready to save or pass on.
- 30+ tools: convert to and from PDF, Word and Excel, compress, merge, OCR, watermark and more.
- One request: send your file, get the finished file straight back. No waiting and checking.
- Clear credits per file or page. Failed requests cost nothing. 2,500 free credits to start.
- Copy-and-paste examples in cURL, Python, JavaScript, PHP and C#. Files are deleted automatically.
curl -X POST "https://helpwithdocument.com/api/v1/run" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=pdf-to-excel" \
-F "files=@invoice.pdf" \
-o "invoice.xlsx"What comes back
invoice.xlsx
Your finished file, ready to save
- Credits used
- 10
- Reference
- job_a1b2c3d4e5f60718293a4b5c
If something is wrong, you get a short message instead, for example “Your organisation does not have enough processing credits.” Nothing is charged.
- 1
Get an API key
Sign up, open the Business dashboard and create a key. It takes a minute.
- 2
Copy the example
Pick your language, paste the example and put your key and file name in.
- 3
Get your file
Run it. The finished document comes back in the same reply.
Pay for what you use. Unlimited users on every plan.
Full reference
What you can do
- Convert Word, Excel, PowerPoint, images, HTML, and text into PDF.
- Convert PDF files into Word, Excel, images, or text.
- Merge, split, compress, rotate, repair, protect, unlock, watermark, and number PDF pages.
- Run OCR on scanned documents. OCR is billed per page.
- Edit PDF and Sign PDF stay on the website as interactive tools.
How it works
- Create a HelpWithDocument account and get an API key.
- Send your document and the tool you want to POST /run.
- The finished file comes back in the same reply.
For very large files or long jobs, you can instead send the file now and collect the result later (see Big jobs below).
One request
POST https://helpwithdocument.com/api/v1/run
| You send | What it is |
|---|---|
| Authorization: Bearer YOUR_API_KEY | Your API key from the Business dashboard. |
| operation | The tool, for example pdf-to-excel. See the list below. |
| files | Your file. Repeat it to send several, for example to merge. |
| Settings (optional) | Extra choices some tools take, for example watermarkText or password. |
| You get back | What it is |
|---|---|
| 200 + file | Done. Save the reply as the file. X-Credits-Used says what it cost; X-Job-Id lets you download it again later. |
| 401 | The API key is missing or wrong. |
| 402 | Not enough credits. Top up in the Business dashboard. |
| 400 / 413 | Wrong file type, unknown tool or file too large. The message says which. |
| 422 | The file could not be processed, for example it is damaged or password-protected. Nothing is charged. |
| 429 | Too many requests at once. Wait the number of seconds in the message and try again. |
Every problem comes back in the same short form: {"error":{"code":"insufficient_credits","message":"..."}}
Processing credits
- Every new account gets 2,500 free trial credits, once. They never expire.
- Successful jobs deduct credits once.
- Failed jobs, status checks, and repeated downloads cost 0 credits.
- OCR is billed per page.
- PDF Sign — 80 credits bawat pirma
- Hanggang 10 signer/pirma bawat PDF.
Supported API tools
These tools are available on the HelpWithDocument API.
Core PDF
| Tool | Input | Output | Credits |
|---|---|---|---|
| Pagsamahin ang PDF | PDF (2–20 files) | 5 credits per task | |
| Hatiin ang PDF | PDF o ZIP | 5 credits per file | |
| I-compress ang PDF | 10 credits per file | ||
| I-rotate ang PDF | 5 credits per file | ||
| Iayos ang PDF | PDF (1–20 files) | 10 credits per file | |
| Kunin ang mga Page | 5 credits per file | ||
| Alisin ang mga Page | 5 credits per file | ||
| Ayusin ang PDF | 10 credits per file | ||
| Magdagdag ng Numero ng Pahina | 5 credits per file | ||
| Magdagdag ng Watermark | 5 credits per file | ||
| Custom Watermark | 5 credits per file | ||
| Protektahan ang PDF | 5 credits per file | ||
| I-unlock ang PDF | 5 credits per file | ||
| Pirmahan ang PDF | 80 credits per signature | ||
| PDF to PDF/A | 10 credits per file |
Office & Data Conversions
| Tool | Input | Output | Credits |
|---|---|---|---|
| Word to PDF | DOC, DOCX | 10 credits per file | |
| PDF to Word | Word (DOCX) | 10 credits per file | |
| Excel to PDF | XLS, XLSX | 10 credits per file | |
| PDF to Excel | XLSX | 10 credits per file | |
| PowerPoint to PDF | PPT, PPTX | 10 credits per file | |
| CSV to PDF | CSV | 10 credits per file | |
| HTML to PDF | HTML | 10 credits per file | |
| TXT to PDF | TXT | 5 credits per file |
Image & Text conversions
| Tool | Input | Output | Credits |
|---|---|---|---|
| JPG to PDF | JPEG or PNG (1–20) | 5 credits per file | |
| PNG to PDF | PNG (1–20) | 5 credits per file | |
| I-scan sa PDF | JPEG, PNG, or WEBP | 5 credits per file | |
| PDF to JPG | JPG o ZIP | 5 credits per page | |
| PDF to PNG | PNG o ZIP | 5 credits per page | |
| PDF to TXT | TXT | 5 credits per file |
OCR
| Tool | Input | Output | Credits |
|---|---|---|---|
| OCR | PDF, JPEG, PNG, TIFF, or WEBP | Naa-search na PDF o TXT | 5 credits per page |
| OCR PDF | PDF, JPEG, PNG, TIFF, or WEBP | Naa-search na PDF o TXT | 5 credits per page |
Custom Watermark
Apply text or image watermarks. Each PDF costs 5 credits. Send to POST /run to get the watermarked file straight back (swap /jobs for /run in the examples below), or to POST /jobs for big batches.
POST /jobswithoperation=custom-watermarkPOST /watermarks,GET /watermarks,PATCH /watermarks/{id},DELETE /watermarks/{id}
curl -X POST "https://helpwithdocument.com/api/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=custom-watermark" \
-F "files=@contract.pdf" \
-F 'watermarks=[{"kind":"text","text":"CONFIDENTIAL","position":"diagonal","opacity":0.25,"rotationDeg":-45}]'curl -X POST "https://helpwithdocument.com/api/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=custom-watermark" \
-F "files=@contract.pdf" \
-F 'watermarks=[{"kind":"image","imageBase64":"iVBOR...","position":"bottom-right","scale":0.2,"opacity":0.4}]'curl -X POST "https://helpwithdocument.com/api/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=custom-watermark" \
-F "files=@invoice.pdf" \
-F 'watermarks=[{"kind":"text","text":"{company} · {document_id} · {date} {time}"}]' \
-F 'variables={"company":"Acme Ltd","customer":"Ada","email":"ada@acme.test","document_id":"INV-204"}'curl -X POST "https://helpwithdocument.com/api/v1/watermarks" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Confidential stamp","watermarks":[{"kind":"text","text":"CONFIDENTIAL","pageMode":"all"}]}'
curl -X POST "https://helpwithdocument.com/api/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=custom-watermark" \
-F "files=@contract.pdf" \
-F "watermark_id=wm_YOUR_SAVED_ID"# Selected pages or odd/even
-F 'watermarks=[{"kind":"text","text":"DRAFT","pageMode":"selected","pages":"1-2,5"}]'
-F 'watermarks=[{"kind":"text","text":"INTERNAL","pageMode":"odd"}]'
# Tiled watermark
-F 'watermarks=[{"kind":"text","text":"SAMPLE","tile":{"enabled":true,"gapX":80,"gapY":80}}]'
# Multiple watermarks
-F 'watermarks=[{"kind":"text","text":"CONFIDENTIAL","layer":"background"},{"kind":"image","imageBase64":"...","position":"bottom-right","layer":"foreground"}]'Big jobs: send now, collect later
For very large files, many files at once, or if you would rather not wait for the reply: send the file to /jobs, then collect the result when it is ready, or get a webhook.
Base URL: https://helpwithdocument.com/api/v1. Mag-authenticate gamit ang Authorization: Bearer YOUR_API_KEY. Nagsisimula ang keys sa hwd_live_.
POST /run— one request, file backPOST /jobs— send now, collect laterGET /jobs/{id}— polling costs 0 creditsGET /jobs/{id}/download— repeated downloads cost 0 creditsGET /usage
Choose a tab to view one example at a time.
# 1. Submit job (returns HTTP 202 straight away)
curl -X POST "https://helpwithdocument.com/api/v1/jobs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "operation=word-to-pdf" \
-F "files=@YOUR_FILE.docx"
# 2. Poll status (does not deduct credits)
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://helpwithdocument.com/api/v1/jobs/JOB_ID"
# 3. Download output
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://helpwithdocument.com/api/v1/jobs/JOB_ID/download" \
-o "output.pdf"