# TextMine API > Index of the TextMine API documentation. ## Guides - [TextMine Developer Overview](https://developers.textmine.com/docs/an-introduction-to-vault.md): A developer-oriented overview of the TextMine platform and current product surfaces. - [TextMine Mission](https://developers.textmine.com/docs/our-mission.md): Why TextMine exists and how the API supports reliable document intelligence. - [Document Lifecycle](https://developers.textmine.com/docs/how-does-vault-work.md): How documents move from upload or provider import through validation, automation, and publication. - [Documents and Validated Data](https://developers.textmine.com/docs/documents.md): How TextMine treats documents, metadata, tags, reports, records, and validated archive data. - [API Use Cases](https://developers.textmine.com/docs/use-cases.md): Common TextMine integration patterns for ingestion, reporting, workflows, records, and agents. - [Public API Quickstart](https://developers.textmine.com/docs/getting-started.md): Make your first TextMine Public API v3 calls and give agents a reliable starting path. - [Core Concepts](https://developers.textmine.com/docs/concepts.md): How Vault, Legislate, Workbench, Workflows, integrations, and agents fit together. - [Documentation.AI reader MCP and TextMine MCP quickstart](https://developers.textmine.com/docs/textmine-mcp.md): Connect MCP-compatible clients to the Documentation.AI reader MCP for these docs and the central TextMine MCP endpoint for product tools backed by Public API V3. - [For Agents](https://developers.textmine.com/docs/for-agents.md): Canonical TextMine instructions for agents using Public API V3, the Documentation.AI reader MCP, the central TextMine MCP endpoint, llms.txt, and agent self-service signup. - [Agent self-service signup](https://developers.textmine.com/docs/agent-self-service-signup.md): Provision a multitenant TextMine organization, service-account API key, and billing account for autonomous third-party agents. - [Codex MCP Setup](https://developers.textmine.com/docs/codex-mcp.md): Connect Codex to the Documentation.AI reader MCP for read-only docs search and to the central TextMine product MCP for tools. - [Claude MCP Setup](https://developers.textmine.com/docs/claude-mcp.md): Connect Claude-compatible MCP clients to the Documentation.AI reader MCP for docs search and to the TextMine product MCP for tools. - [Cursor and Windsurf MCP Setup](https://developers.textmine.com/docs/cursor-windsurf-mcp.md): Configure Cursor and Windsurf to use the Documentation.AI reader MCP for docs and the central TextMine MCP endpoint for product tools. - [ChatGPT and OpenAI MCP Setup](https://developers.textmine.com/docs/chatgpt-mcp.md): Configure ChatGPT, OpenAI API agents, or custom connectors to use the central TextMine MCP endpoint and the Documentation.AI reader MCP. - [Document Ingestion](https://developers.textmine.com/docs/documents-2.md): Upload directly to Vault or import provider files through connected integrations. - [Vaults and Access](https://developers.textmine.com/docs/teams-1.md): Use Vault discovery and user/team endpoints before acting on documents. - [Users, Teams, and Assignees](https://developers.textmine.com/docs/users-1.md): Discover users before assigning reviews, approvals, workflows, and document ownership. - [Legislate Archive](https://developers.textmine.com/docs/contracts-1.md): Use Legislate for validated documents published from Vault. - [Reports, Workflows, and Agents](https://developers.textmine.com/docs/vaults-1.md): Turn document intelligence into repeatable automation and structured outputs. - [Textmine for Informatica](https://developers.textmine.com/docs/informatica.md): Connect Informatica IDMC to Textmine for document ingestion, processing, metadata, reports, and validated business records. - [Welcome to Vault](https://developers.textmine.com/v2/docs/an-introduction-to-vault.md): Extract key terms and answer questions about documents at scale with the legacy TextMine Vault API v2 for document-intensive workflows. - [Our mission](https://developers.textmine.com/v2/docs/our-mission.md): Turn static documents into a searchable knowledge base with the legacy Vault API v2, extracting valuable data in seconds. - [How does Vault work](https://developers.textmine.com/v2/docs/how-does-vault-work.md): Vault uses knowledge graphs and AI to extract answers to key questions from contracts and invoices through the legacy TextMine Public API v2. - [Documents](https://developers.textmine.com/v2/docs/documents.md): See which document types the legacy Vault API v2 can analyse and which file formats it accepts before sending your first document. - [Use cases](https://developers.textmine.com/v2/docs/use-cases.md): Explore the contract, invoice and HR use cases the legacy Vault API v2 solves, from renewal and break clause tracking to compliance checks. - [TextMine MCP](https://developers.textmine.com/v2/docs/textmine-mcp.md): Connect AI tools to the TextMine API reference and run authenticated v3 API calls through the TextMine MCP server. - [Getting started with the Vault API](https://developers.textmine.com/v2/docs/getting-started.md): Follow five steps to create an account, get an API key, create a Vault, submit a document, and review predictions with the legacy Vault API. - [Concepts](https://developers.textmine.com/v2/docs/concepts.md): Understand the core concepts of the legacy Vault API v2, including user accounts, documents, vaults, and desks for review and analysis. - [Contracts](https://developers.textmine.com/v2/docs/contracts-1.md): Legacy TextMine Public API v2 reference for the Contracts resource, retained for teams maintaining existing v2 integrations. - [Documents](https://developers.textmine.com/v2/docs/documents-2.md): Legacy entry point for the TextMine Public API v2 Documents endpoint, with links to the v2 Concepts and Teams guides and the ReadMe API reference. - [Teams](https://developers.textmine.com/v2/docs/teams-1.md): Teams in the legacy TextMine Public API v2 are documented alongside the rest of the VAULT API reference in the ReadMe API reference. - [Users](https://developers.textmine.com/v2/docs/users-1.md): Legacy entry point for the TextMine Public API v2 users resource, with pointers to the concepts, teams, and ReadMe API reference. - [Vaults](https://developers.textmine.com/v2/docs/vaults-1.md): Legacy reference for the Vaults resource in the TextMine Public API v2, kept for teams maintaining existing v2 integrations. ## API Reference - [Check Public API V3 health](https://developers.textmine.com/reference/checkv3health.md): Returns a small JSON payload confirming the public API is responding and serving v3 routes. - [List accessible vaults](https://developers.textmine.com/reference/listvaults.md): Lists every Vault visible to the authenticated API-key user. Use this before document upload, search, reports, or provider import when an agent does not already know the `vault_id`. - [Create a vault for an existing team](https://developers.textmine.com/reference/createvault.md): Creates a Vault attached to an existing team. The `name` and `description` update the underlying team record before the Vault is created. - [Fetch a vault](https://developers.textmine.com/reference/getvault.md): Returns a single non-deleted Vault by ID. - [Update a vault name or description](https://developers.textmine.com/reference/updatevault.md): Updates a Vault display name and description. These values are stored on the underlying team record. - [Soft-delete a vault](https://developers.textmine.com/reference/deletevault.md): Marks a Vault as deleted. Repeating the request for a missing or already deleted Vault returns `204`. - [List documents in a vault](https://developers.textmine.com/reference/listdocuments.md): Lists documents for a Vault, optionally filtered by document type and processing status. Returns only documents with an active imported-contract record. - [Create a provider document or upload files into Vault](https://developers.textmine.com/reference/createoruploaddocument.md): This path supports two content types: - `application/json` creates a document inside a connected outbound provider such as Notion. - `multipart/form-data` uploads a file into TextMine Vault and… - [Import a provider file into Vault](https://developers.textmine.com/reference/importdocumentfromprovider.md): Imports a file from a connected outbound provider into a TextMine Vault. The server uses the user stored OAuth token, fetches the file, and feeds it into the same magic upload pipeline as direct… - [Fetch a document](https://developers.textmine.com/reference/getdocument.md): Fetches the public metadata for a document. - [Update document metadata](https://developers.textmine.com/reference/updatedocument.md): Renames a document, changes its document type, and optionally queues reprocessing. - [Delete a document](https://developers.textmine.com/reference/deletedocument.md): Deletes a document from Vault. - [Re-run document processing](https://developers.textmine.com/reference/reprocessdocument.md): Queues the document processing pipeline again and returns the current document metadata with `202 Accepted`. - [Search documents with query parameters](https://developers.textmine.com/reference/searchdocumentsget.md): Searches documents by text query, team IDs, Vault IDs, document type IDs, status, and publication date range. - [Search documents with a JSON body](https://developers.textmine.com/reference/searchdocuments.md): Searches documents with the same filters as GET. Prefer POST when filters are complex or arrays are large. - [List document types](https://developers.textmine.com/reference/listdocumenttypes.md): Lists document types reachable from a Vault. Org-wide listing is not wired yet, so pass `vault_id`. - [Create a document type](https://developers.textmine.com/reference/createdocumenttype.md): Route exists but is not wired yet because organization and contract-type-group context still need mapping. - [Fetch a document type](https://developers.textmine.com/reference/getdocumenttype.md): Fetches a Vault-scoped document type. Pass `vault_id` while flat lookup is pending. - [Update a document type](https://developers.textmine.com/reference/updatedocumenttype.md): Route exists but is not wired yet pending mapping for document-type vault settings. - [Delete a custom document type](https://developers.textmine.com/reference/deletedocumenttype.md): Deletes a custom document type. Built-in/non-custom document types return an error from the service. - [List document metadata fields](https://developers.textmine.com/reference/listdocumentmetadata.md): Lists extracted metadata fields for a document, including confidence and citations where available. - [Fetch one metadata field](https://developers.textmine.com/reference/getdocumentmetadatafield.md): Fetches a single extracted metadata field and its citations. - [Override a metadata field](https://developers.textmine.com/reference/updatedocumentmetadatafield.md): Updates a metadata field value or status, typically after human validation. - [List vault tags](https://developers.textmine.com/reference/listvaulttags.md): Lists custom tags scoped to a Vault. - [Create a vault tag](https://developers.textmine.com/reference/createvaulttag.md): Route exists but is not wired yet pending custom-question request mapping. - [Fetch a vault tag](https://developers.textmine.com/reference/getvaulttag.md): Fetches a custom tag scoped to a Vault. - [Update a vault tag](https://developers.textmine.com/reference/updatevaulttag.md): Route exists but is not wired yet pending v3 patch semantics. - [Soft-delete a vault tag](https://developers.textmine.com/reference/deletevaulttag.md): Soft-deletes a vault-scoped custom tag. - [List document tag answers](https://developers.textmine.com/reference/listdocumenttags.md): Lists the tags attached to a document with latest answers and validation state. - [Add tags to a document](https://developers.textmine.com/reference/adddocumenttags.md): Route exists but is not wired yet pending the async tag-pipeline mapping. - [Validate a document tag answer](https://developers.textmine.com/reference/validatedocumenttag.md): Marks a tag answer as valid or invalid. Pass `validated_answer` to override the AI answer. - [Clear tag validation](https://developers.textmine.com/reference/cleardocumenttagvalidation.md): Clears validation flags on a tag answer for this document. - [List document assignees](https://developers.textmine.com/reference/listdocumentassignees.md): Lists users assigned to review or own a document. - [Add a document assignee](https://developers.textmine.com/reference/adddocumentassignee.md): Adds a reviewer or assignee to a document. Provide either `userId` when known or an email address when assigning by email. - [Remove a document assignee](https://developers.textmine.com/reference/removedocumentassignee.md): Removes a user assignment from a document. - [List users in a team](https://developers.textmine.com/reference/listteamusers.md): Lists users that belong to a team. Useful before assigning reviewers or workflow actions. - [Fetch a team user](https://developers.textmine.com/reference/getteamuser.md): Fetches a user that belongs to a team. - [List users in a vault team](https://developers.textmine.com/reference/listvaultusers.md): Lists users that belong to the Vault team. - [Fetch a vault user](https://developers.textmine.com/reference/getvaultuser.md): Fetches a user that belongs to the Vault team. - [List integration providers](https://developers.textmine.com/reference/listintegrationproviders.md): Returns outbound integration providers supported by TextMine, annotated with the calling user connection status. Current provider IDs are `notion`, `google-drive`, and `sharepoint`. - [Start provider OAuth](https://developers.textmine.com/reference/authorizeintegrationprovider.md): Returns the upstream authorization URL the user must visit to grant access to the selected provider. - [Provider OAuth callback](https://developers.textmine.com/reference/handleintegrationoauthcallback.md): Browser redirect target for provider OAuth. The user is derived from the persisted one-time `state` value. This is documented for completeness; API clients and agents usually do not call it directly. - [Get provider connection status](https://developers.textmine.com/reference/getintegrationproviderstatus.md): Returns the calling user connection status and provider metadata. - [Disconnect a provider](https://developers.textmine.com/reference/disconnectintegrationprovider.md): Disconnects the calling user integration with the provider. - [List provider folders](https://developers.textmine.com/reference/listintegrationfolders.md): Lists folders available in a connected file-storage integration. - [List files in a provider folder](https://developers.textmine.com/reference/listintegrationfolderfiles.md): Lists files in a connected provider folder. Use returned `id` values as `external_file_id` when importing to Vault. - [Create an enabled workflow](https://developers.textmine.com/reference/createworkflow.md): Magic workflow endpoint. A single POST creates an enabled linear workflow graph: trigger, condition, then action. Use the catalog endpoints to choose valid `kind` values and params. - [List workflow triggers](https://developers.textmine.com/reference/listworkflowtriggers.md): Catalog of trigger kinds accepted by the magic workflow endpoint. - [List workflow conditions](https://developers.textmine.com/reference/listworkflowconditions.md): Catalog of condition kinds accepted by the magic workflow endpoint. - [List workflow actions](https://developers.textmine.com/reference/listworkflowactions.md): Catalog of action kinds accepted by the magic workflow endpoint. - [Create an agent](https://developers.textmine.com/reference/createagent.md): Magic agent endpoint. A single POST creates the agent, agent configuration, and either a general-action prompt or confidence-based action rule. - [List reports for a vault](https://developers.textmine.com/reference/listreports.md): Lists reports for a Vault, newest first. - [Generate a report](https://developers.textmine.com/reference/generatereport.md): Magic report endpoint. Provide either explicit `document_ids`, or a `vault_id` to use the latest `document_limit` Vault documents. `analyze_instruction=true` can auto-create missing tags before… - [Fetch a report](https://developers.textmine.com/reference/getreport.md): Fetches a report. Poll this endpoint until `status` is `COMPLETED` or `FAILED`. - [Soft-delete a report](https://developers.textmine.com/reference/deletereport.md): Soft-deletes a report. - [Count vault reports](https://developers.textmine.com/reference/countvaultreports.md): Counts reports stored for a Vault. - [Export team reports as CSV](https://developers.textmine.com/reference/exportteamreportscsv.md): Exports all reports for a team as a CSV attachment. - [Export a report as PDF](https://developers.textmine.com/reference/exportreportpdf.md): Exports a completed report as a PDF attachment. - [Export a report as DOCX](https://developers.textmine.com/reference/exportreportdocx.md): Exports a completed report as a Word document attachment. - [List report templates](https://developers.textmine.com/reference/listreporttemplates.md): Lists system and custom report templates available for a Vault. - [Create a report template](https://developers.textmine.com/reference/createreporttemplate.md): Saves a custom report template for reuse. - [Fetch a report template](https://developers.textmine.com/reference/getreporttemplate.md): Fetches a single report template. - [Delete a custom report template](https://developers.textmine.com/reference/deletereporttemplate.md): Deletes a custom report template. System templates cannot be deleted. - [List alert kinds](https://developers.textmine.com/reference/listalertkinds.md): Lists the alert kind catalog and parameter schemas. Use this before creating contract alerts. - [Fetch an alert](https://developers.textmine.com/reference/getalert.md): Fetches a single alert by ID. - [Update an alert](https://developers.textmine.com/reference/updatealert.md): Updates an alert name, params, recipients, or channel. `kind` and `contract_id` are immutable. - [Cancel an alert](https://developers.textmine.com/reference/deletealert.md): Cancels/deletes an alert. - [List alerts for a Legislate contract](https://developers.textmine.com/reference/listcontractalerts.md): Lists alerts scheduled for a contract, ordered by `fires_at` ascending. Legislate remains the validated-data archive where Vault documents can be published. - [Create a contract alert](https://developers.textmine.com/reference/createcontractalert.md): Magic create endpoint. Provide an alert `kind` and either `params` or inlined per-kind keys. The service derives `fires_at`, defaults recipients to the contract creator, and defaults the channel to… - [Export vault documents as CSV](https://developers.textmine.com/reference/exportvaultcsv.md): Exports selected documents, or all documents in a Vault, as CSV. Optional headers control which columns are included. - [Export vault documents as PDF or ZIP](https://developers.textmine.com/reference/exportvaultpdf.md): Exports a single selected document as PDF, or multiple selected documents as a ZIP of original files. - [List business record schemas](https://developers.textmine.com/reference/listrecordschemas.md): Lists business record schemas for a team. - [Create a business record schema](https://developers.textmine.com/reference/createrecordschema.md): Creates a schema that defines structured record types, fields, and relationships for a team or Vault. - [Suggest a business record schema](https://developers.textmine.com/reference/suggestrecordschema.md): Creates a suggested schema from a prompt or supplied definition. - [Fetch a record schema](https://developers.textmine.com/reference/getrecordschema.md): Fetches a business record schema. - [Soft-delete a record schema](https://developers.textmine.com/reference/deleterecordschema.md): Soft-deletes a business record schema. - [Replace a schema version definition](https://developers.textmine.com/reference/replacerecordschemaversion.md): Replaces the record type and relationship definitions for a schema version. - [Activate a schema version](https://developers.textmine.com/reference/activaterecordschemaversion.md): Marks a schema version as active. - [List records for a schema version](https://developers.textmine.com/reference/listbusinessrecords.md): Lists business records created for a schema version, optionally including candidate records and filtering by status or search text. - [Create a business record](https://developers.textmine.com/reference/createbusinessrecord.md): Creates a structured business record with optional field values and evidence. - [Fetch a business record](https://developers.textmine.com/reference/getbusinessrecord.md): Fetches a business record. - [Soft-delete a business record](https://developers.textmine.com/reference/deletebusinessrecord.md): Soft-deletes a business record. - [Create or replace a record field value](https://developers.textmine.com/reference/upsertbusinessrecordfieldvalue.md): Creates or replaces a field value on a business record, including optional evidence. - [Create an API key for the authenticated user](https://developers.textmine.com/reference/createownapikey.md): Issues a TextMine API key for the authenticated user. The raw `tm_...` key is returned only once in this response; store it securely and never paste it into docs, code, or chat logs. - [Get TextMine agent well-known discovery metadata](https://developers.textmine.com/reference/gettextmineagentwellknowndiscovery.md): Returns public machine-readable agent signup, billing, Public API, and MCP metadata. - [Get agent self-service discovery metadata](https://developers.textmine.com/reference/getagentselfservicediscovery.md): Returns signup, billing, Public API, and MCP metadata for autonomous third-party agents. - [Get agent self-service signup availability](https://developers.textmine.com/reference/getagentselfservicesignupavailability.md): Returns whether autonomous third-party agent signup is enabled for this TextMine environment. - [Create an agent self-service organization](https://developers.textmine.com/reference/createagentselfservicesignup.md): Creates a third-party agent organization, service-account API key, and billing account. Use credentialDeliveryPublicKey for encrypted API-key delivery. - [Get agent billing status](https://developers.textmine.com/reference/getagentbillingstatus.md): Returns free-credit, checkout, and portal status for the authenticated third-party agent organization. - [Create an agent billing checkout session](https://developers.textmine.com/reference/createagentbillingcheckoutsession.md): Creates a Stripe checkout session so a third-party agent organization can upgrade from free credit to paid usage. - [Create an agent billing portal session](https://developers.textmine.com/reference/createagentbillingportalsession.md): Creates a Stripe billing portal session so a third-party agent organization can manage payment details and subscription state. - [Get document plain text](https://developers.textmine.com/reference/getdocumentplaintext.md): Returns the extracted plain text for a processed document so agents can inspect, summarize, or cite document content. - [List document tag source chunks](https://developers.textmine.com/reference/listdocumenttagsourcechunks.md): Returns the extracted source text chunks associated with the latest answer for a document tag, including page and offset metadata for agent citations. - [Create a vault workspace](https://developers.textmine.com/reference/createvaultworkspace.md): Creates a Vault. If teamId is omitted, creates a new team-backed Vault workspace for the authenticated self-service agent organization. - [Create a document type](https://developers.textmine.com/reference/createdocumenttype-1.md): Creates a custom document type and optionally seeds default extraction questions for one or more Vaults. - [Upload a document](https://developers.textmine.com/reference/uploaddocument.md): Uploads a file as multipart form data. vault_id is optional: omit it to reuse the first accessible vault or create the default Agent Vault workspace for the API-key organization. For typed… - [Create a long-running task](https://developers.textmine.com/reference/createtask.md): Creates a long-running TextMine task for Workbench/task-agent work. - [Add a task message](https://developers.textmine.com/reference/addtaskmessage.md): Adds a follow-up instruction or clarification to an existing task. - [Getting Started](https://developers.textmine.com/reference/getting-started.md): Set up the welcome page for your API to help users make their first call. - [Create a user](https://developers.textmine.com/api-reference/post-v1-users.md): Creates a TextMine user record for a legacy API integration. Prefer the v3 user lookup endpoints for new agent workflows. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a user](https://developers.textmine.com/api-reference/get-v1-users-userid.md): Returns profile details for a single TextMine user. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List users](https://developers.textmine.com/api-reference/get-v1-users.md): Lists users visible to the authenticated integration. Use this to resolve user IDs before creating teams, collaborators, or reviewer assignments. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List teams for a user](https://developers.textmine.com/api-reference/get-v1-users-userid-teams.md): Lists teams available to a user. Use team IDs when creating contracts or Vaults. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a team for a user](https://developers.textmine.com/api-reference/post-v1-users-userid-teams.md): Creates a team owned by or associated with the specified user. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a team](https://developers.textmine.com/api-reference/get-v1-teams-teamid.md): Returns details for a legacy TextMine team. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Update a team](https://developers.textmine.com/api-reference/patch-v1-teams-teamid.md): Updates team-level details such as name or profile fields. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a team contract type](https://developers.textmine.com/api-reference/get-v1-teams-teamid-contract-types-contracttypeid.md): Returns contract-type details as configured for a specific team. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List team contract types](https://developers.textmine.com/api-reference/get-v1-teams-teamid-contract-types.md): Lists contract types available to a team. Use these IDs when creating contracts. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a contract type](https://developers.textmine.com/api-reference/get-v1-contract-types-contracttypeid.md): Returns global details for a contract type. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List contract types](https://developers.textmine.com/api-reference/get-v1-contract-types.md): Lists global contract types available to the authenticated integration. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a contract template](https://developers.textmine.com/api-reference/get-v1-templates-contracttypetemplateid.md): Returns a single contract template definition. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a template for a contract type](https://developers.textmine.com/api-reference/get-v1-contract-types-contracttypeid-templates-contracttypetemplateid.md): Returns one template attached to a contract type. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a team contract template](https://developers.textmine.com/api-reference/get-v1-teams-teamid-contract-types-contracttypeid-templates-contracttypetemplateid.md): Returns the team-specific template for a contract type. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List team contract templates](https://developers.textmine.com/api-reference/get-v1-teams-teamid-contract-types-contracttypeid-templates.md): Lists templates a team can use for a contract type. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List template terms](https://developers.textmine.com/api-reference/get-v1-templates-templateid-terms.md): Returns the terms defined on a contract template. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List template collaborator fields](https://developers.textmine.com/api-reference/get-v1-templates-templateid-fields.md): Returns collaborator fields required by a template. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Remove a collaborator from a contract](https://developers.textmine.com/api-reference/delete-v1-contracts-contractid-collaborators-collaboratorid.md): Removes a collaborator from a contract. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Update collaborator roles](https://developers.textmine.com/api-reference/patch-v1-collaborators-collaboratorid-roles.md): Updates the role assignments for a collaborator. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Upload collaborator signature](https://developers.textmine.com/api-reference/patch-v1-collaborators-collaboratorid-signature.md): Uploads or updates the signature file for a collaborator. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Update collaborator fields](https://developers.textmine.com/api-reference/patch-v1-collaborators-collaboratorid-fields.md): Updates identity or template fields for a collaborator. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a collaborator](https://developers.textmine.com/api-reference/get-v1-collaborators-collaboratorid.md): Returns collaborator details. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List contract collaborators](https://developers.textmine.com/api-reference/get-v1-contracts-contractid-collaborators.md): Lists collaborators attached to a contract. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Add a collaborator to a contract](https://developers.textmine.com/api-reference/post-v1-contracts-contractid-collaborators.md): Creates a collaborator on a contract. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Add a company collaborator](https://developers.textmine.com/api-reference/post-v1-contracts-contractid-company.md): Creates or associates a company collaborator on a contract. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List contracts for a team](https://developers.textmine.com/api-reference/get-v1-teams-teamid-contracts.md): Lists contracts owned by a team. In newer workflows, Vault documents can be published to Legislate as validated contract records. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a contract in a team](https://developers.textmine.com/api-reference/post-v1-teams-teamid-contracts.md): Creates a legacy contract in a team using a template and supplied field values. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a contract in a team (v2)](https://developers.textmine.com/api-reference/post-v2-teams-teamid-contracts.md): Creates a contract using the v2 contract-creation payload. Use this when an existing integration depends on the v2 request shape. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Update contract fields](https://developers.textmine.com/api-reference/patch-v1-contracts-contractid.md): Updates contract field values on an existing legacy contract. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Delete a contract](https://developers.textmine.com/api-reference/delete-v1-contracts-contractid.md): Deletes a legacy contract record. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export contract HTML](https://developers.textmine.com/api-reference/get-v1-contracts-contractid-html.md): Returns rendered contract HTML. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export contract PDF](https://developers.textmine.com/api-reference/get-v1-contracts-contractid-pdf.md): Returns rendered contract PDF. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch contract or published Vault document terms](https://developers.textmine.com/api-reference/get-v1-contracts-contractid.md): Returns contract data, including terms and fields. For Vault-originated documents, this reflects the published Legislate contract record. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List Vault documents](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid-documents.md): Lists documents stored in a Vault. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Upload a document to a Vault](https://developers.textmine.com/api-reference/post-v1-vaults-vaultid-documents.md): Uploads a document to a Vault, optionally forcing the document type. Use v3 `POST /v3/documents` for new integrations. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch Vault document status](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid-document-documentid-status.md): Returns the processing status for a Vault document. Poll this after uploads or reprocessing. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Publish a Vault document to Legislate](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid-contracts-contractid.md): Publishes a Vault document into Legislate, the archive of validated contract data. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Reprocess or reclassify a Vault document](https://developers.textmine.com/api-reference/patch-v1-vaults-vaultid-documents-documentid.md): Queues a Vault document for reprocessing or changes its document type. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List Vault document types](https://developers.textmine.com/api-reference/get-v1-vaults-document-types.md): Lists document types available for Vault classification. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Detect document signatures](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid-documents-documentid-signatures.md): Returns detected signature information for a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Download a document image](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid-documents-documentid-images-imageid-download.md): Downloads an extracted image for a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a Vault team for a user](https://developers.textmine.com/api-reference/post-v1-vaults-users-userid.md): Creates a new Vault team for the specified user. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a Vault from an existing team](https://developers.textmine.com/api-reference/post-v1-teams-teamid-vaults.md): Creates a Vault for an existing team. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Fetch a Vault](https://developers.textmine.com/api-reference/get-v1-vaults-vaultid.md): Returns metadata for a legacy Vault. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List custom questions for a document](https://developers.textmine.com/api-reference/get-v1-vault-vaultid-document-documentid-custom-question.md): Lists custom extraction questions and answers for a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Create a custom question for a document](https://developers.textmine.com/api-reference/post-v1-vault-vaultid-document-documentid-custom-question.md): Creates a custom extraction question for a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Update custom-question fields](https://developers.textmine.com/api-reference/patch-v1-vault-vaultid-document-documentid-custom-question.md): Updates custom question configuration or answer fields for a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Delete a custom question](https://developers.textmine.com/api-reference/delete-v1-vault-vaultid-document-documentid-custom-question-customquestionid.md): Deletes a custom extraction question from a Vault document. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export role-resource audit CSV](https://developers.textmine.com/api-reference/get-audit-csv-organizationid-role-resource.md): Exports role-to-resource audit data as CSV for an organization. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export role-resource lookup CSV](https://developers.textmine.com/api-reference/get-audit-csv-organizationid-role-resource-lookup.md): Exports lookup data used to map roles to resources. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export user-role-resource audit CSV](https://developers.textmine.com/api-reference/get-audit-csv-organizationid-user-role-resource.md): Exports user, role, and resource audit data as CSV. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Export user-account lookup CSV](https://developers.textmine.com/api-reference/get-audit-csv-organizationid-user-account-lookup.md): Exports account lookup data for provider identity mapping. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Check agent execution eligibility](https://developers.textmine.com/api-reference/post-agent-execution-check.md): Checks whether a configured agent execution should run in a legacy integration flow. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Generate a Microsoft identity token](https://developers.textmine.com/api-reference/post-azuretenantid-oauth2-v2-0-token.md): Microsoft OAuth helper used by legacy Azure/Aveska flows. Examples use placeholders only; never paste real client secrets or access tokens into docs. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [Associate an Azure user with business-unit roles](https://developers.textmine.com/api-reference/patch-v1-0-users-azureuserobjectid.md): Microsoft Graph helper for assigning business-unit and role metadata to an Azure user in legacy Aveska flows. Examples use placeholder access tokens only. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List organization roles](https://developers.textmine.com/api-reference/get-v1-organization-roles.md): Lists roles configured in the organization. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. - [List business units](https://developers.textmine.com/api-reference/get-v1-business-unit.md): Lists business units available to the authenticated integration. Legacy note: this endpoint is maintained for existing V2 integrations. Prefer V3 for new API and agent workflows where an equivalent exists. ## Changelog - [TextMine API Documentation](https://developers.textmine.com/changelog.md) - [Public API v3 and MCP documentation updates](https://developers.textmine.com/changelog/public-api-v3-and-mcp-documentation-updates.md): TextMine Public API v3 is the default developer reference, with refreshed guides and the central TextMine MCP endpoint for agent clients. - [Welcome to Vault](https://developers.textmine.com/changelog/welcome-to-vault.md): Welcome to the Vault API docs! The docs are split into the following sections: Guides Recipes API Reference If you have any questions or feedback, feel free to get in touch at developers@legislate.ai or join the discussion ! ## Home - [Home](https://developers.textmine.com/page/home.md): Build with TextMine Public API V3, MCP, and agent self-service signup. - [Agent Context Pack](https://developers.textmine.com/page/llms-full.md): A fuller agent-readable context pack for TextMine Public API v3, MCP, product surfaces, and safe operation sequences. - [Developer Home](https://developers.textmine.com/page/developer-home.md): A developer home page for TextMine Public API v3 with links to quickstarts, guides, MCP, API reference, llms.txt, and product documentation.