Prerequisites
Node.js 18+ installed
A Doclo Cloud account with API key
A registered flow in your Doclo Cloud dashboard
Installation
Install the Doclo client package:Get Your API Key
1
Log in to Doclo Cloud
Go to app.doclo.ai and sign in to your account.
2
Navigate to API Keys
Open Settings → API Keys in the dashboard.
3
Create a new key
Click “Create API Key”, give it a name, and copy the generated key.API keys use the format
dc_live_... for production or dc_test_... for testing.4
Store securely
Add the key to your environment:
Initialize the Client
Execute a Flow
Synchronous Execution
For quick processing with immediate results, usewait: true:
Asynchronous Execution
For large documents or background processing, omitwait and use webhooks or polling:
Complete Example
Error Handling
The client provides typed error classes for common failure scenarios:Next Steps
Client Reference
Full DocloClient API reference
Webhooks
Get notified when flows complete
Authentication
API key management and security
REST API
Direct API access without SDK