الوصول إلى API
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 — 80 رصيدًا لكل توقيع
- حد أقصى 10 موقّعين/توقيعات لكل PDF.
Supported API tools
These tools are available on the HelpWithDocument API.
Core PDF
| Tool | Input | Output | Credits |
|---|---|---|---|
| دمج PDF | PDF (2–20 files) | 5 credits per task | |
| تقسيم PDF | PDF أو ZIP | 5 credits per file | |
| ضغط PDF | 10 credits per file | ||
| تدوير PDF | 5 credits per file | ||
| تنظيم PDF | PDF (1–20 files) | 10 credits per file | |
| استخراج الصفحات | 5 credits per file | ||
| إزالة الصفحات | 5 credits per file | ||
| إصلاح PDF | 10 credits per file | ||
| إضافة أرقام الصفحات | 5 credits per file | ||
| إضافة علامة مائية | 5 credits per file | ||
| Custom Watermark | 5 credits per file | ||
| حماية PDF | 5 credits per file | ||
| إلغاء قفل PDF | 5 credits per file | ||
| توقيع PDF | 80 credits per signature | ||
| PDF إلى PDF/A | 10 credits per file |
Office & Data Conversions
| Tool | Input | Output | Credits |
|---|---|---|---|
| Word إلى PDF | DOC, DOCX | 10 credits per file | |
| PDF إلى Word | Word (DOCX) | 10 credits per file | |
| Excel إلى PDF | XLS, XLSX | 10 credits per file | |
| PDF إلى Excel | XLSX | 10 credits per file | |
| PowerPoint إلى PDF | PPT, PPTX | 10 credits per file | |
| CSV إلى PDF | CSV | 10 credits per file | |
| HTML إلى PDF | HTML | 10 credits per file | |
| TXT إلى PDF | TXT | 5 credits per file |
Image & Text conversions
| Tool | Input | Output | Credits |
|---|---|---|---|
| JPG إلى PDF | JPEG or PNG (1–20) | 5 credits per file | |
| PNG إلى PDF | PNG (1–20) | 5 credits per file | |
| مسح إلى PDF | JPEG, PNG, or WEBP | 5 credits per file | |
| PDF إلى JPG | JPG أو ZIP | 5 credits per page | |
| PDF إلى PNG | PNG أو ZIP | 5 credits per page | |
| PDF إلى TXT | TXT | 5 credits per file |
OCR
| Tool | Input | Output | Credits |
|---|---|---|---|
| OCR | PDF, JPEG, PNG, TIFF, or WEBP | PDF أو TXT قابل للبحث | 5 credits per page |
| OCR PDF | PDF, JPEG, PNG, TIFF, or WEBP | PDF أو 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.
عنوان URL الأساسي: https://helpwithdocument.com/api/v1. صادق باستخدام Authorization: Bearer YOUR_API_KEY. تبدأ المفاتيح بـ 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"