الوصول إلى 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.

Try it free, no sign-up needed →

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

200 OK
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. 1

    Get an API key

    Sign up, open the Business dashboard and create a key. It takes a minute.

  2. 2

    Copy the example

    Pick your language, paste the example and put your key and file name in.

  3. 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

  1. Create a HelpWithDocument account and get an API key.
  2. Send your document and the tool you want to POST /run.
  3. 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 sendWhat it is
Authorization: Bearer YOUR_API_KEYYour API key from the Business dashboard.
operationThe tool, for example pdf-to-excel. See the list below.
filesYour file. Repeat it to send several, for example to merge.
Settings (optional)Extra choices some tools take, for example watermarkText or password.
You get backWhat it is
200 + fileDone. Save the reply as the file. X-Credits-Used says what it cost; X-Job-Id lets you download it again later.
401The API key is missing or wrong.
402Not enough credits. Top up in the Business dashboard.
400 / 413Wrong file type, unknown tool or file too large. The message says which.
422The file could not be processed, for example it is damaged or password-protected. Nothing is charged.
429Too 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

ToolInputOutputCredits
دمج PDFPDF (2–20 files)PDF5 credits per task
تقسيم PDFPDFPDF أو ZIP5 credits per file
ضغط PDFPDFPDF10 credits per file
تدوير PDFPDFPDF5 credits per file
تنظيم PDFPDF (1–20 files)PDF10 credits per file
استخراج الصفحاتPDFPDF5 credits per file
إزالة الصفحاتPDFPDF5 credits per file
إصلاح PDFPDFPDF10 credits per file
إضافة أرقام الصفحاتPDFPDF5 credits per file
إضافة علامة مائيةPDFPDF5 credits per file
Custom WatermarkPDFPDF5 credits per file
حماية PDFPDFPDF5 credits per file
إلغاء قفل PDFPDFPDF5 credits per file
توقيع PDFPDFPDF80 credits per signature
PDF إلى PDF/APDFPDF10 credits per file

Office & Data Conversions

ToolInputOutputCredits
Word إلى PDFDOC, DOCXPDF10 credits per file
PDF إلى WordPDFWord (DOCX)10 credits per file
Excel إلى PDFXLS, XLSXPDF10 credits per file
PDF إلى ExcelPDFXLSX10 credits per file
PowerPoint إلى PDFPPT, PPTXPDF10 credits per file
CSV إلى PDFCSVPDF10 credits per file
HTML إلى PDFHTMLPDF10 credits per file
TXT إلى PDFTXTPDF5 credits per file

Image & Text conversions

ToolInputOutputCredits
JPG إلى PDFJPEG or PNG (1–20)PDF5 credits per file
PNG إلى PDFPNG (1–20)PDF5 credits per file
مسح إلى PDFJPEG, PNG, or WEBPPDF5 credits per file
PDF إلى JPGPDFJPG أو ZIP5 credits per page
PDF إلى PNGPDFPNG أو ZIP5 credits per page
PDF إلى TXTPDFTXT5 credits per file

OCR

ToolInputOutputCredits
OCRPDF, JPEG, PNG, TIFF, or WEBPPDF أو TXT قابل للبحث5 credits per page
OCR PDFPDF, JPEG, PNG, TIFF, or WEBPPDF أو 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 /jobs with operation=custom-watermark
  • POST /watermarks, GET /watermarks, PATCH /watermarks/{id}, DELETE /watermarks/{id}
text
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}]'
image
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}]'
placeholders
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"}'
watermark_id
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"
pages / tile / multiple
# 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 back
  • POST /jobs — send now, collect later
  • GET /jobs/{id} — polling costs 0 credits
  • GET /jobs/{id}/download — repeated downloads cost 0 credits
  • GET /usage

Choose a tab to view one example at a time.

bash
# 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"