Public API Quickstart
Make your first TextMine Public API v3 calls and give agents a reliable starting path.
TextMine Public API v3 is the recommended API surface for new integrations and agent clients. It exposes the current TextMine model: Vault for document intelligence, Legislate for validated published documents, Workflows for repeatable automation, Integrations for provider imports, and Agents for long-running task work.
Base URL
For the current UK multitenant public environment, use:
https://public-api.textmine.comUse the environment-specific Public API base URL returned by discovery or provided by TextMine for dedicated deployments. Endpoint paths start at /v3/...; do not append /api when configuring clients.
Authentication
Use bearer authentication on every live request:
Authorization: Bearer tm_your_api_keyPlatforms that own the Authorization header can use the alternate API-key header:
X-TextMine-Api-Key: tm_your_api_keyPrefer the bearer header for direct Public API and MCP clients. Keep API keys user, integration, or service-account specific. Do not commit them to source control or paste real keys into shared docs, prompts, task transcripts, or model-visible context.
Existing customers can create or request keys through the access flow available for their organization. Autonomous third-party agents in the multitenant, non-enterprise deployment should use Agent self-service signup to create a dedicated organization and encrypted service-account API key.
First API path
- Check the API is reachable with
checkV3Health. - List accessible Vaults with
listVaults. - Pick a Vault ID before uploading, importing, searching, reporting, or exporting documents.
- Upload a local document with
uploadDocument, or import a connected provider file withimportDocumentFromProvider. - Poll the document or search endpoints until processing has finished.
- Use reports, metadata, tags, workflows, agents, or exports depending on the job.
Common first calls
curl https://public-api.textmine.com/v3/health \
-H "Authorization: Bearer tm_your_api_key"curl https://public-api.textmine.com/v3/vaults \
-H "Authorization: Bearer tm_your_api_key"curl https://public-api.textmine.com/v3/integrations/providers \
-H "Authorization: Bearer tm_your_api_key"Agent self-service bootstrap
Agents that do not already have a TextMine key can discover and provision themselves through REST before using MCP:
- GET https://public-api.textmine.com/.well-known/textmine-agent.json
- GET https://public-api.textmine.com/v3/third-party-agents/signup/discovery
- GET https://public-api.textmine.com/v3/third-party-agents/signup/availability
- POST https://public-api.textmine.com/v3/third-party-agents/signup/self-service
The signup response creates a TextMine organization, service-account user, encrypted tm_... API key, and billing account. Decrypt the API key only in the trusted runtime, store it in a secret manager, then call Public API V3 or the hosted TextMine MCP endpoint with that key.
Agent-friendly sequence
When an agent is deciding what to do, start broad and then narrow:
- Use
listVaultsbefore any Vault-scoped action. - Use
listDocumentTypes,listTags, and metadata endpoints before changing document data. - Use
listIntegrationProviders,listIntegrationFolders, andlistIntegrationFolderFilesbefore importing from Google Drive, SharePoint, Notion, or another connected provider. - Use
listWorkflowTriggers,listWorkflowConditions, andlistWorkflowActionsbefore creating a workflow. - Use
generateReportand thengetReportto retrieve report output once the run is complete.
Where to go next
Read Core Concepts if you need the product model, ReadMe and TextMine MCP Quickstart if an LLM client will use MCP, For Agents for agent operating guidance, and the API Reference for exact schemas and operation IDs.