# ContextLM API

**Canonical:** https://apis.io/apis/contextlm-top/contextlm-top-api/  
**Provider:** ContextLM — https://apis.io/providers/contextlm-top/  
**Documentation:** https://api.contextlm.top/help/api-access/agents

ContextLM API is published by [ContextLM](https://apis.io/providers/contextlm-top/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 5 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 5 JSON Schemas.

ContextLM API as documented publicly: 11 operations. Contract generated from the documentation by API Evangelist (2026-11-04); not the provider's own document.

## Operations (11)

| Method | Path | Summary |
|---|---|---|
| POST | `/api/auth/agent-token` | Mint a short‑lived user‑scoped token for automation |
| GET | `/api/v1/agent/operation-guides/{mode}` | Prefetch guide (rag, search, index, workspace.create) |
| POST | `/api/v1/chat` | REST/SSE chat (capabilities: rag / search) |
| POST | `/api/v1/documents/{documentId}/complete-upload` | Finish upload |
| GET | `/api/v1/mcp` | SSE ready event with tool catalog summary |
| POST | `/api/v1/mcp` | Unified MCP entry point |
| GET | `/api/v1/mcp/manifest` | Anonymous‑readable capability manifest |
| GET | `/api/v1/sources` | List sources |
| POST | `/api/v1/workspaces/{workspaceId}/api-keys` | Create cloud keys (product path) |
| POST | `/api/v1/workspaces/{workspaceId}/documents` | Create file upload |
| POST | `/mcp/workspaces/{workspaceId}` | Deprecated MCP path – legacy; injects workspace_id from URL |

## Machine-readable artifacts (7)

- **OpenAPI** — https://artifacts.apis.io/contextlm-top/openapi/_ae-authored/contextlm-top-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/contextlm-top/json-schema/contextlm-top-post-api-v1-chat-request-schema.json
- **JSONSchema** — https://artifacts.apis.io/contextlm-top/json-schema/contextlm-top-post-api-v1-workspaces-workspaceid-documents-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/contextlm-top/json-schema/contextlm-top-post-api-auth-agent-token-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/contextlm-top/json-schema/contextlm-top-post-api-v1-workspaces-workspaceid-api-keys-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/contextlm-top/json-schema/contextlm-top-post-api-auth-agent-token-request-schema.json
- **APIsJSON** — https://artifacts.apis.io/contextlm-top/apis.yml

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/contextlm-top/contextlm-top-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/contextlm-top/.
