> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to Documint

The Documint connector lets your AI agent act in each user's Documint account. Each user connects their own Documint API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 5 tools.

**Authentication:** API Key
**Categories:** Files & Documents, Automation
**Tools:** 5: 2 read, 2 write, 1 destructive
**Users sign in with:** API key
**Built by:** Scalekit connector
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=DOCUMINT)

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Documint connection

   In **AgentKit > Connections**, create a Documint connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'documint'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Documint:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'documint_templates_list',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "documint"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Documint:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="documint_templates_list",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user opens the link once and enters their Documint credentials there. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'documint_template_get',
  toolInput: {
    template_id: '<template_id>',
  },
  connector: 'documint',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="documint_template_get",
    tool_input={
        "template_id": "<template_id>",
    },
    connection_name="documint",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `documint_template_get`

Get Template · Read-only

Get one document template by ID.
Returns the template record.
Use select to limit the fields returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `template_id` (`string`, required): ID of the template, from documint_templates_list. Example: 64f1c2a9e4b0a1b2c3d4e5f6.
- `select` (`string`, optional): Comma-separated fields to return; prefix a field with - to exclude it. Example: name,description,createdAt.

Example input: `{"template_id":"<template_id>"}`

### `documint_templates_list`

List Templates · Read-only

List the document templates in your Documint account, with paging and sorting.
Returns result, an array of template records with id, name and createdAt (or the fields chosen with select).
Use this to find a template ID for documint_document_create. Use documint_template_get for one template.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `limit` (`integer`, optional): Results per page. Default 100, maximum 200. Example: 50.
- `page` (`integer`, optional): Page number of results. Default 1. Example: 1.
- `select` (`string`, optional): Comma-separated fields to return; prefix a field with - to exclude it. Example: name,description,createdAt.
- `sort` (`string`, optional): Field to sort by; prefix with - for descending, and separate several with commas. Example: -createdAt.

Example input: `{}`

### `documint_document_create`

Create Document from Template · Write

Merge data into a Documint template to generate a document (usually a PDF).
Returns url (link to the generated file), name, fileExtension, timestamp, templateName and templateId.
Use documint_templates_list to find the template ID; the data keys must match the template's field tokens. Set preview true to generate a preview document.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `data` (`object`, required): Merge data whose keys match the template's field tokens; nested objects and arrays fill nested fields and repeat loops. Example: {"customer_name": "Acme Inc.", "invoice_number": "INV-1001", "items": [{"description": "Consulting", "amount": 1200}]}
- `template_id` (`string`, required): ID of the template to merge, from documint_templates_list. Example: 64f1c2a9e4b0a1b2c3d4e5f6.
- `active` (`boolean`, optional): Set to true to merge the template's active version, as in Documint's API examples. Example: true.
- `preview` (`boolean`, optional): Set to true to create a preview document instead of a final one. Example: true.

Example input: `{"data":{},"template_id":"<template_id>"}`

### `documint_template_update`

Update Template · Write

Update a template's name, or deactivate or trash it.
Returns the updated template.
Use is_trashed true to move a template to the trash instead of documint_template_delete.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `template_id` (`string`, required): ID of the template to update, from documint_templates_list. Example: 64f1c2a9e4b0a1b2c3d4e5f6.
- `is_active` (`boolean`, optional): Set to false to deactivate the template. Example: true.
- `is_trashed` (`boolean`, optional): Set to true to move the template to the trash. Example: false.
- `name` (`string`, optional): New template name. Example: Invoice v2.

Example input: `{"template_id":"<template_id>"}`

### `documint_template_delete`

Delete Template · Destructive

Permanently delete a template.
Returns a confirmation.
This cannot be undone. To keep the template recoverable, use documint_template_update with is_trashed or is_active instead.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `template_id` (`string`, required): ID of the template to delete, from documint_templates_list. Example: 64f1c2a9e4b0a1b2c3d4e5f6.

Example input: `{"template_id":"<template_id>"}`

## Related

Other Files & Documents connectors ([all 76](/agentkit/connectors/?category=files-documents)):

- [Notion](/agentkit/connectors/notion/): Scalekit connector, OAuth, 51 tools
- [Google Sheets](/agentkit/connectors/googlesheets/): Scalekit connector, OAuth, 48 tools
- [Google Drive](/agentkit/connectors/googledrive/): Scalekit connector, OAuth, 47 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
