tm_... API key; signup itself is REST-first and does not require MCP.
Availability: self-service signup is only for TextMine’s multitenant, non-enterprise deployment. Enterprise, private, and customer-dedicated deployments use support-led provisioning instead of the public self-service flow.
Discovery and availability
Agents and automation tools should discover signup state before submitting a signup request.
For the UK multitenant deployment, use
https://public-api.textmine.com as the Public API base URL. The commonly used signup URLs are:
Use the Public API base URL returned by discovery when configuring REST clients. Do not use tenant names or tenant-specific aliases as selectable values for external users; the API key resolves the correct organization.
Machine-readable onboarding
The discovery response is designed for autonomous onboarding. It tells an agent or trusted runtime:- Whether agent self-service signup is available.
- Which signup URL and method to use.
- Which signup fields, terms acceptance, and privacy acceptance are required.
- Which credential-delivery algorithm to use for encrypted API-key return.
- Which Public API base URL and MCP endpoint belong to the environment.
- How the
tm_...API key should be sent after signup. - Which free-credit, billing-status, checkout, and portal endpoints are available.
- Which setup checklist steps are required before typed document processing.
How signup is enabled
Self-service signup is available only when both are true:- The deployment-level third-party agent switch is enabled.
- Tenant-level third-party access is enabled.
Submit self-service signup
When signup is available, call:
Optional request fields:
The response returns:
organizationIdandorganizationName.serviceAccountUserId.apiKeyId,apiKeyPrefix, andcredentialRef.encryptedApiKey,encryptedApiKeyAlgorithm, andencryptedApiKeyEncoding.- Billing status, free-credit allowance, and currency.
gettingStartedsummary.setupChecklist.
encryptedApiKey inside the trusted agent runtime using the private key that matches credentialDeliveryPublicKey. Store the decrypted tm_... API key in a secret store and inject it into future API or MCP calls. Do not place the raw key in model-visible prompts, logs, plans, or task context. The model should only see credentialRef, apiKeyPrefix, and non-secret metadata.
Agent task transcripts sanitize secret-like values before persistence. Do not send raw API keys, tokens, passwords, secrets, or credentials in task instructions, messages, context, step input/output, approvals, or events; if they are supplied accidentally, the transcript redactor stores [REDACTED] instead.
What signup creates
When signup succeeds, TextMine creates a third-party agent account with:- A corporate TextMine organization for the agent.
- The standard feature set needed for agent work: Vault, Scribe, Agents, Workflows, and Playbooks.
- An
Agentbusiness unit and organization role assignment for the service-account actor. - A service-account user for the third-party agent.
- A
tm_...service-account API key. For self-service signup, the key is returned asencryptedApiKeyencrypted to the trusted runtime’s public key. - An agent billing account with the billing contact email, accepted terms/privacy metadata, free-credit allowance, current-period usage, currency, and purchased credit balance.
Public API and MCP access
After the trusted runtime decrypts and stores the service-account API key, the third-party agent calls Public API V3 with that credential:X-TextMine-Api-Key: tm_<key> only for connector platforms that own the Authorization header. The Public API base URL is the root host where the agent performed discovery/signup, or the deployment-specific host issued by TextMine. Do not append /v3 when configuring clients such as Zapier; clients append endpoint paths themselves.
Public API resolves the key to the service-account actor and the organization created at signup. The key’s organization determines which Vaults, document types, workflows, records, agents, and other resources the external agent can access.
The discovery metadata also declares an alternate API-key header:
Authorization header.
First setup steps
The signup response includes agettingStarted object and setupChecklist. Use those values to drive the agent’s onboarding UI.
Before typed document processing, complete the required steps:
- Generate a runtime keypair, send
credentialDeliveryPublicKey, decryptencryptedApiKey, and store the API key outside model context. - Accept terms and privacy notices during signup.
- Create or select a Vault, or omit
vault_idon the first upload so TextMine creates or reuses the defaultAgent Vaultfor the API-key organization. - Configure document types, default tags and extraction questions before uploading typed documents.
- Configure Playbooks before running review, redline, or playbook-rule checks.
- Create or select Workflows before invoking workflow automation.
- Create clear task instructions before using task agents.
- Connect MCP clients or the TextMine CLI after the API key is stored in the trusted runtime.
Billing and upgrades
Third-party agent work starts on the configured free-credit allowance for the billing period. Credit costs are returned by the availability and billing-status endpoints, including Vault document processing, workflow execution, Workbench tasks, and agent tasks. When the free allowance is exhausted, API-key usage that requires more credits can return402 Payment Required. The agent should then:
- Call
GET /v3/agent-billing/statusto show the current billing status, remaining free credits, purchased credit balance, available credits, checkout requirement, setup checklist, and credit-pack metadata. - Call
POST /v3/agent-billing/checkoutto create a Stripe Checkout session. - Send the returned checkout URL to the billing owner or show it in the agent’s billing UI.
- After checkout completes and the purchased credits are added to the organization, continue API work.
POST /v3/agent-billing/portal when an existing billed organization needs a Stripe billing portal session. If checkout has not happened yet, the API can require checkout first.
Human access
Self-service signup creates the agent’s organization and service-account API key. It does not automatically create a human user account for the billing owner. If a human user needs to access the TextMine web app for the same organization, contact TextMine support with:- Organization name and organization ID from signup.
- Human user’s email address.
- Requested access level or role.
- Whether the user needs API-key management, Vault setup, document type setup, workflows, or billing support.
Service accounts and task-agent email
There are two related service-account concepts:
The task-agent email route is separate from the third-party agent API key. It must be activated at the organization level before email can create task-agent work. Third-party agent organizations can have this route too, but it is not automatically enabled just because signup created an API service account.
Contact TextMine support to activate or troubleshoot task-agent email routing for a third-party agent organization.
Operational notes
- Self-service signup and agent billing are tenant-level capabilities for multitenant, non-enterprise TextMine.
- Enterprise or dedicated deployments should use TextMine support-led provisioning.
- The Public API base URL, central MCP URL, and API key must belong to the same TextMine environment or be routed by TextMine for that environment.
- The billing contact is not the same thing as the service-account API actor.
- Human access, support-managed activation, and task-agent email routing should be requested through TextMine support.
- Agents should use idempotency keys where the API supports them, poll asynchronous work, and show resource IDs in user-visible audit summaries.