# Documint — how to use (mcp.ai)

Connect your Documint account and use 6 tools for documents straight from your AI agent. Connect with your own API key. Documint is a document generation platform that allows you to create dynamic documents from templates.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_documint?ms=1787295900000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `documint_create_document`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/documint`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/documint/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/documint/create/document` — Tool to merge data into a template to create a document (PDF generation). Send JSON data with template variables in the request body to generate a PDF document. Returns a URL to the generated PDF (val
  - body: { data: object, active?: boolean, preview?: boolean, templateId: string, watchFields?: string, ignoreFields?: string }
- `POST https://api.mcp.ai/api/documint/delete/template` — Tool to permanently delete a single template by its ID. Use when you need to remove an outdated or unused template; ensure the template ID is correct before calling.
  - body: { template_id: string }
- `POST https://api.mcp.ai/api/documint/get/template` — Tool to retrieve a single template by its ID. Use when you need to fetch details of a specific template before generating documents.
  - body: { templateId: string }
- `POST https://api.mcp.ai/api/documint/list/documents` — Retrieves documents from the authenticated user's Documint account with optional pagination. Returns a list of documents with their IDs, names, associated templates, and timestamps. Use this to view p
  - body: { page?: integer, limit?: integer }
- `POST https://api.mcp.ai/api/documint/list/templates` — Tool to list all templates in the authenticated user's account. Use after obtaining a valid API key.
- `POST https://api.mcp.ai/api/documint/update/template` — Tool to update a single template by its ID. Use when you need to modify an existing template's settings or layout after fetching its current details.
  - body: { css?: string, html?: string, name?: string, options?: object, template_id: string, footer_template?: string, header_template?: string }

## Example prompts
- "What can I do in Documint?"
- "Show me a summary of my Documint account"

## More
- Page: https://mcp.ai/documint
- Agent spec (llms.txt): https://mcp.ai/documint/llms.txt
- Postman collection: https://mcp.ai/documint/postman.json
