Documint connects to a Nagent workspace with an API key. Once it is connected, agents can call 6 Documint actions, such as "Create Document", "Get Template" and "List Documents". Nothing is enabled on connect: each action is allowed one at a time, and an action with side effects runs or waits for a person according to the agent's level.
Every operation an agent can call against Documint, with input parameters and output schema.
DOCUMINT_CREATE_DOCUMENTTool 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 (valid for 24 hours).
Input parameters
Key-value pairs where keys are token names in the template (e.g., {{name}}, {{email}}) and values are the data to merge. The structure depends on your specific template requirements. Values can be strings, numbers, booleans, or null.
Use the active version of the template. Set to false to use the draft version. Default is true.
Generate a preview document (watermarked). Set to true for testing without consuming API credits. Default is false.
The unique identifier of the template to use for document generation. This is a 24-character hexadecimal string that can be obtained from the List Templates action.
Comma-separated list of template field names to watch for changes. Use this to track which fields are being updated.
Comma-separated list of template field names to ignore during the merge process. Fields listed here will not be replaced in the generated document.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DOCUMINT_DELETE_TEMPLATETool 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.
Input parameters
The unique identifier (MongoDB ObjectId) of the template to delete. Obtain this from list_templates or get_template actions.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DOCUMINT_GET_TEMPLATETool to retrieve a single template by its ID. Use when you need to fetch details of a specific template before generating documents.
Input parameters
The unique identifier of the template to retrieve. This is a 24-character hexadecimal string returned by the List Templates action.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DOCUMINT_LIST_DOCUMENTSRetrieves 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 previously generated documents or to find document IDs for further operations. Supports page and limit parameters for paginated results.
Input parameters
Page number to retrieve (1-indexed). Defaults to 1 if not specified.
Maximum number of documents to return per page (max 200). Defaults to the API's default if not specified.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DOCUMINT_LIST_TEMPLATESTool to list all templates in the authenticated user's account. Use after obtaining a valid API key.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
DOCUMINT_UPDATE_TEMPLATETool 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.
Input parameters
CSS styles for the template.
HTML content/body of the template. Supports Handlebars syntax for dynamic content.
New name for the template.
PDF rendering options for the template.
Unique identifier of the template to update. Obtain from list_templates or get_template.
HTML template for the page footer.
HTML template for the page header.
Output
Data from the action execution
Error if any occurred during the execution of the action
Whether or not the action execution was successful or not
Agents can call 6 Documint actions on Nagent, including "Create Document", "Get Template" and "List Documents". Create Document: Merge data into a template to create a document (PDF generation). Each action is listed on this page with its input parameters and its output.
Documint connects with an API key, under your workspace's own connection. Nothing is enabled on connect: each action is allowed one at a time and can be scoped to the agents that need it.
Create Document takes 2 required inputs: data and templateId. It also takes 4 optional inputs: active, preview, watchFields and ignoreFields. It returns data, error and successful.