koncile-js
Version:
JavaScript SDK for the Koncile Intelligent Document Processing API
67 lines (48 loc) • 1.49 kB
Markdown
The official JavaScript/TypeScript SDK for [Koncile](https://koncile.ai), providing a seamless interface to interact with the Koncile Intelligent Document Processing API.
- Authentication via API key
- File operations (upload, download, manage)
- Task management and result tracking
- Folder organization and deletion
- Template creation and retrieval
- Field creation and configuration
- Instruction handling
- Document management
- Full TypeScript support with types included
## Installation
Install the SDK via npm:
```bash
npm install koncile-js
```
## Quick Start
```bash
const { Koncile } = require('koncile-js');
const sdk = new Koncile('your-api-key');
(async () => {
try {
const folderResponse = await sdk.folders.create(
'Invoices',
'Folder for 2025 invoices'
);
console.log('Folder created:', folderResponse.data);
} catch (error) {
console.error('Error:', error.response?.data || error.message);
}
})();
```
You can also load the API key from a .env file:
```bash
API_KEY=your-api-key
require('dotenv').config();
const sdk = new Koncile(process.env.API_KEY);
```
For detailed API documentation and guides, visit docs.koncile.ai.
For direct help, contact us at support@koncile.ai.
This project is licensed under the MIT License — see the LICENSE file for details.
© 2025 Koncile. All rights reserved.