SDK downloads & multi-language examples
Download ten task API reference clients and explore eleven server-side code examples with UI controls in ten documentation languages.
Download generated task SDKs#
Use the same ten SDK programming languages and cURL sample surface as ConverterHQ: Python, JavaScript, TypeScript, Go, Java, C#/.NET, C++, Rust, PHP and Ruby.
Each downloadable SDK contains server-side task API source and its README. These are generated reference clients for document processing, not full OpenAPI-generated platform SDKs or published packages. Full service generation is gated on a verified runtime OpenAPI contract.
Programming language: cURL
Choose a language · scroll horizontally for all 10 SDK languages
# Server-side API calls. Save the returned task_id.
curl -fsS -X POST 'https://api.pdfhq.io/v1/tasks' \
-H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' \
-d '{"tool":"compress"}'
# Upload and verify 1 PDF(s), then obtain and approve a credit quote:
curl -fsS 'https://api.pdfhq.io/v1/tasks/TASK_ID/quote' -H 'x-api-key: YOUR_API_KEY'
# ONLY after explicit customer approval:
test "$PDFHQ_APPROVE_QUOTE" = yes || { echo "Approval required" >&2; exit 1; }
curl -fsS -X POST 'https://api.pdfhq.io/v1/tasks/TASK_ID/process' \
-H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' \
-d '{"options":{"compression_level":"recommended"}}'
curl -fsS 'https://api.pdfhq.io/v1/tasks/TASK_ID' -H 'x-api-key: YOUR_API_KEY'After starting a task, upload and verify PDFs, review the credit quote, and get explicit approval before processing. API keys belong on your server, never on signed storage uploads.
Generated downloadable packages cover the task workflow only. Full-service SDKs require a verified runtime OpenAPI specification; the Python, JavaScript and TypeScript task SDKs stream file uploads; the other languages require signed multipart uploads implemented by the caller.
For an actual end-to-end signed-upload and HQTools credit-approval example, download the Python CLI walkthrough or the Bash/cURL walkthrough . Neither automatically submits a billable task without explicit approval.
Explore authenticated API operations →