Skip to main content
Documint logo
  • Category: documents
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 6
  • Triggers: 0
  • Slug: DOCUMINT
  • Version: 20261101_00

Tools

Slug: 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

object
required
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.
boolean
Use the active version of the template. Set to false to use the draft version. Default is true.
boolean
Generate a preview document (watermarked). Set to true for testing without consuming API credits. Default is false.
string
required
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.
string
Comma-separated list of template field names to watch for changes. Use this to track which fields are being updated.
string
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

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: 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

string
required
The unique identifier (MongoDB ObjectId) of the template to delete. Obtain this from list_templates or get_template actions.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: 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

string
required
The unique identifier of the template to retrieve. This is a 24-character hexadecimal string returned by the List Templates action.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: 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

integer
Page number to retrieve (1-indexed). Defaults to 1 if not specified.
integer
Maximum number of documents to return per page (max 200). Defaults to the API’s default if not specified.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: DOCUMINT_LIST_TEMPLATESList templates in the authenticated user’s account. Returns the default page of results with pagination information and the total count.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: 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

string
CSS styles for the template.
string
HTML content/body of the template. Supports Handlebars syntax for dynamic content.
string
New name for the template.
object
PDF rendering options for the template.
string
required
Unique identifier of the template to update. Obtain from list_templates or get_template.
HTML template for the page footer.
string
HTML template for the page header.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not