Accès 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.
  • Signature PDF — 80 crédits par signature
  • Maximum 10 signataires/signatures par PDF.

Supported API tools

These tools are available on the HelpWithDocument API.

Core PDF

ToolInputOutputCredits
Fusionner PDFPDF (2–20 files)PDF5 credits per task
Diviser PDFPDFPDF ou ZIP5 credits per file
Compresser PDFPDFPDF10 credits per file
Pivoter PDFPDFPDF5 credits per file
Organiser PDFPDF (1–20 files)PDF10 credits per file
Extraire des pagesPDFPDF5 credits per file
Supprimer des pagesPDFPDF5 credits per file
Réparer PDFPDFPDF10 credits per file
Ajouter des numéros de pagePDFPDF5 credits per file
Ajouter un filigranePDFPDF5 credits per file
Custom WatermarkPDFPDF5 credits per file
Protéger PDFPDFPDF5 credits per file
Déverrouiller PDFPDFPDF5 credits per file
Signer un PDFPDFPDF80 credits per signature
PDF vers PDF/APDFPDF10 credits per file

Office & Data Conversions

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

Image & Text conversions

ToolInputOutputCredits
JPG vers PDFJPEG or PNG (1–20)PDF5 credits per file
PNG vers PDFPNG (1–20)PDF5 credits per file
Scan vers PDFJPEG, PNG, or WEBPPDF5 credits per file
PDF vers JPGPDFJPG ou ZIP5 credits per page
PDF vers PNGPDFPNG ou ZIP5 credits per page
PDF vers TXTPDFTXT5 credits per file

OCR

ToolInputOutputCredits
OCRPDF, JPEG, PNG, TIFF, or WEBPPDF ou TXT interrogeable5 credits per page
OCR PDFPDF, JPEG, PNG, TIFF, or WEBPPDF ou TXT interrogeable5 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 de base : https://helpwithdocument.com/api/v1. Authentifiez-vous avec Authorization: Bearer YOUR_API_KEY. Les clés commencent par 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"