Skip to main content
The TypeScript SDK does the same as the API, but with types, retries and streaming already handled. It works on Node 20 or later (serverless functions too) and has no runtime dependencies.

Your first document

new Doconda() reads the key from DOCONDA_API_KEY. Create it in the dashboard, under API keys.

Options

Use the SDK on your server, never in the browser: your API key gives access to every document in the project. If you want to show a document being built on your site, see Watch the document live.

What’s next

Create documents

Word, PDF, PowerPoint, Excel and artifacts.

Watch the document live

Events while it is being written.

Review and edit your file

Upload a file and work on it.

Errors and retries

What can fail and how to react.