On this pageHTTP / SDK
HTTP / SDK
Aly Sawft · Founder & Engineer, Sawftware LLC ·
How do I integrate DocImprint with Python or TypeScript?
Use REST with curl or fetch, or the @x402/fetch client for wallet-native payments. Python and TypeScript SDK examples are in /docs/integrations — all endpoints share the same POST /v1/extract envelope.
HTTP / SDK
No SDK required — any HTTP client works. Use x402 client libraries for automatic payment signing, or handle the 402 handshake manually. See Authentication for the full flow.
TypeScript / Node.js SDK
npm install docimprintTyped wrappers for extract, summarize, QA, translate, claim-check, collections, and more.
bash
# 1. Request — gateway responds with 402
curl -X POST https://api.docimprint.com/v1/extract \
-H "Content-Type: application/pdf" \
--data-binary @contract.pdf
# 2. Re-send with signed x402 payment
curl -X POST https://api.docimprint.com/v1/extract \
-H "Content-Type: application/pdf" \
-H "X-Payment: <eip712-signed-transfer>" \
--data-binary @contract.pdf