Node.js SDK
The officiald3-node-client package provides a high‑level, type‑safe interface to the D3 Business API.
This page summarizes and reorganizes the content from the SDK README for Mintlify.
Installation
Quick start
Initialization
apiKey(required) – your D3 API key.baseURL(optional) – API base URL, default:https://api.dragdropdo.com.timeout(optional) – request timeout in ms, default:30000.headers(optional) – additional headers to send with every request.
File upload
file(required) – file path string.fileName(required) – original file name.mimeType(optional) – MIME type (auto‑detected if omitted).parts(optional) – number of upload parts (auto‑calculated).onProgress(optional) – progress callback.
Supported operations
ext(required) – file extension (e.g.pdf,jpg).action(optional) – specific action (convert,compress, …).parameters(optional) – parameters to validate (e.g.{ convert_to: "png" }).
Create operations
action(required) –"convert" | "compress" | "merge" | "zip" | "share" | "lock" | "unlock" | "reset_password".fileKeys(required) – array of file keys from upload.parameters(optional) – action‑specific parameters.notes(optional) – user metadata.