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.| Endpoint | Purpose |
|---|---|
https://public-api.textmine.com/.well-known/textmine-agent.json | Public machine-readable discovery document for agent self-service signup, billing, Public API V3, and MCP metadata. |
https://public-api.textmine.com/v3/third-party-agents/signup/discovery | Public API V3 discovery document with the same setup metadata. |
https://public-api.textmine.com/v3/third-party-agents/signup/availability | Returns whether self-service signup is currently available and includes terms, privacy, pricing, and setup checklist metadata. |
https://public-api.textmine.com as the Public API base URL. The commonly used signup URLs are:
| URL | Purpose |
|---|---|
https://public-api.textmine.com/.well-known/textmine-agent.json | Public agent discovery document. |
https://public-api.textmine.com/v3/third-party-agents/signup/availability | Signup availability. |
https://public-api.textmine.com/v3/third-party-agents/signup/discovery | Public API V3 signup discovery. |
https://public-api.textmine.com/v3/third-party-agents/signup/self-service | Self-service signup request. |
https://app.textmine.com/mcp | Hosted TextMine MCP endpoint for the same production environment. |
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:| Field | Description |
|---|---|
organizationName | Name of the TextMine organization to create for the agent account. |
agentName | Display name used for the service account and service-account API key. |
contactEmail | Billing and operational contact email. |
acceptedTerms | Must be true. |
acceptedPrivacy | Must be true. |
credentialDeliveryPublicKey | RSA public key controlled by the trusted agent runtime, not the model. Accepts PEM or base64-encoded X.509 SubjectPublicKeyInfo. |
| Field | Description |
|---|---|
credentialDeliveryAlgorithm | Credential delivery algorithm. Defaults to RSA-OAEP-256. |
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:/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 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:| Service-account concept | What it is | How it is enabled |
|---|---|---|
| Third-party agent service account | The API actor and tm_... key created by third-party agent signup. | Created during signup. |
| Task-agent service account email route | An organization-level inbound email route that lets organization users create and reply to task-agent tasks by email. | Activated by TextMine support for the 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, MCP URL, and API key must belong to the same TextMine 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.