1. Choose the environment
Use the Public API base URL and MCP URL for the TextMine environment you are allowed to access. For the public UK multitenant deployment:2. Choose an authentication method
Use one of the supported authentication paths. For direct/private automation, store a TextMine API key outside model-visible context:3. Run read-only checks first
Before running commands that create or update TextMine data, confirm the CLI can complete low-risk checks for the configured environment:| Check | What it proves |
|---|---|
| Auth/session status | The runtime can find its credential and target environment. |
| API health or account lookup | Public API V3 is reachable and the credential is valid. |
| Vault listing | The credential has the expected TextMine organization and Vault access. |
| MCP tools listing | The hosted MCP endpoint is reachable and the Streamable HTTP session handshake works. |
4. Use the right surface
| Goal | Prefer |
|---|---|
| Exact REST operation, schema, or automation script | CLI over Public API V3. |
| MCP-native tool discovery or tool call smoke test | CLI over the hosted TextMine MCP endpoint. |
| Human review, document inspection, or approval | TextMine web app or Workbench. |
| New autonomous agent signup | Public API V3 signup flow; then configure the CLI with the resulting credential. |
5. Keep CLI output audit-friendly
For support and audit trails, capture non-secret identifiers in CLI output:- Organization or environment label.
- Vault ID and document ID.
- Workflow ID and run ID.
- Record schema ID and record ID.
- Task ID and task event IDs.