ContextLM API

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

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 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/contextlm-top:contextlm-top-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

contextlm-top-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: ContextLM API
  version: '2026-11-04'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-04: 11 operation(s) read from 8 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; ContextLM has published no machine-readable contract that the
    pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 11
    pages-with-code: 2
    pages-read: 8
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-04'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://api.contextlm.top/help/api-access/agents
  - https://app.contextlm.top/help/api-access/agents.md
  - https://app.contextlm.top/en/help/api-access/agents.md
  - https://app.contextlm.top/help/api-access/agents
  - https://app.contextlm.top/en/help/api-access/agents
  - https://app.contextlm.top/integrations/qwen-code
  - https://app.contextlm.top/en/integrations/qwen-code
  - https://api.contextlm.top/help/api-access/agents.md
paths:
  /api/auth/agent-token:
    post:
      operationId: post_api_auth_agent_token
      tags:
      - Api
      summary: Mint a short‑lived user‑scoped token for automation
      x-source: https://api.contextlm.top/help/api-access/agents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAuthAgentTokenRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAuthAgentTokenResponse'
      x-evidence:
        kind: documentation
  /api/v1/agent/operation-guides/{mode}:
    get:
      operationId: get_api_v1_agent_operation_guides_mode
      tags:
      - Api
      summary: Prefetch guide (rag, search, index, workspace.create)
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: mode
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/chat:
    post:
      operationId: post_api_v1_chat
      tags:
      - Api
      summary: 'REST/SSE chat (capabilities: rag / search)'
      x-source: https://api.contextlm.top/help/api-access/agents
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV1ChatRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/documents/{documentId}/complete-upload:
    post:
      operationId: post_api_v1_documents_documentId_complete_upload
      tags:
      - Api
      summary: Finish upload
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: documentId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/mcp:
    get:
      operationId: get_api_v1_mcp
      tags:
      - Api
      summary: SSE ready event with tool catalog summary
      x-source: https://api.contextlm.top/help/api-access/agents
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    post:
      operationId: post_api_v1_mcp
      tags:
      - Api
      summary: Unified MCP entry point
      x-source: https://api.contextlm.top/help/api-access/agents
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/mcp/manifest:
    get:
      operationId: get_api_v1_mcp_manifest
      tags:
      - Api
      summary: Anonymous‑readable capability manifest
      x-source: https://api.contextlm.top/help/api-access/agents
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/sources:
    get:
      operationId: get_api_v1_sources
      tags:
      - Api
      summary: List sources
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: workspace_id
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/v1/workspaces/{workspaceId}/api-keys:
    post:
      operationId: post_api_v1_workspaces_workspaceId_api_keys
      tags:
      - Api
      summary: Create cloud keys (product path)
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1WorkspacesWorkspaceidApiKeysResponse'
      x-evidence:
        kind: documentation
  /api/v1/workspaces/{workspaceId}/documents:
    post:
      operationId: post_api_v1_workspaces_workspaceId_documents
      tags:
      - Api
      summary: Create file upload
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV1WorkspacesWorkspaceidDocumentsResponse'
      x-evidence:
        kind: documentation
  /mcp/workspaces/{workspaceId}:
    post:
      operationId: post_mcp_workspaces_workspaceId
      tags:
      - Mcp
      summary: Deprecated MCP path – legacy; injects workspace_id from URL
      x-source: https://api.contextlm.top/help/api-access/agents
      parameters:
      - name: workspaceId
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiAuthAgentTokenRequest:
      type: object
      properties:
        session JWT:
          type: string
      required:
      - session JWT
    PostApiAuthAgentTokenResponse:
      type: object
      properties:
        token:
          type: string
        ttl_minutes:
          type: integer
    PostApiV1ChatRequest:
      type: object
      properties:
        query:
          type: string
        source_type:
          type: string
        source_token:
          type: string
      required:
      - query
    PostApiV1WorkspacesWorkspaceidApiKeysResponse:
      type: object
      properties:
        api_key:
          type: string
        permissions:
          type: array
    PostApiV1WorkspacesWorkspaceidDocumentsResponse:
      type: object
      properties:
        document_id:
          type: string
        upload_url:
          type: string
  securitySchemes:
    api_key:
      type: http
      scheme: bearer
      x-source: https://app.contextlm.top/help/getting-started/overview.md
tags:
- name: Api
- name: Mcp
security:
- api_key: []