Tenjin Docs Lookup API

The Docs Lookup API from Tenjin — 1 operation(s) for docs lookup.

GitHub OpenAPI

Operations 1

GET /api/docs-lookup Read current library documentation from Context7 #

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/tenjin-sh:tenjin-sh-docs-lookup-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

tenjin-sh-docs-lookup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tenjin Docs Lookup API
  version: 0.1.0
  contact:
    email: hello@tenjin.sh
  x-guidance: 'Browse and inspect tools for free on POST /api/x402-router. Execute selected tools through the installed CLI/MCP request tool or build and pay the provider request in your own HTTP client. Paid selection uses POST /api/x402-router/route. Setup: https://tenjin.sh/skills.md. Reference: https://tenjin.sh/llms-full.txt.'
  description: Tenjin is the tool router for agents. Browse tools, inspect their contracts and execute the selected tool over x402. Routing decisions have a separate charge from provider execution. Library documentation lookups are free. Start at https://tenjin.sh/llms.txt.
servers:
- url: https://tenjin.sh
tags:
- name: Docs Lookup
paths:
  /api/docs-lookup:
    get:
      operationId: docsLookup
      summary: Read current library documentation from Context7
      description: 'Anonymous and free: no wallet or payment. The query names the library and what to look up; whitespace is trimmed. Check the libraries named in the returned text before using it. Limits: 20 requests per minute and 30 per day per caller, 500 per day deployment-wide.'
      security: []
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 500
        description: The library and documentation question, 1 to 500 characters after trimming.
      responses:
        '200':
          description: Documentation text with any matched library names.
          content:
            text/plain:
              schema:
                type: string
        '400':
          description: Missing, blank or oversized query (`validation_failed`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No indexed library matches (`no_documentation_found`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Caller rate limit exceeded (`rate_limited`); honor Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Documentation budget exhausted or Context7 unavailable (`docs_lookup_unavailable`); use available tools.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Docs Lookup
components:
  schemas:
    Error:
      type: object
      description: Stable error envelope returned by every failing route (the `requestId` is on the `x-request-id` response header, not in the body).
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Stable machine code, e.g. "validation_failed", "post_not_found".
            message:
              type: string
              description: The specific problem in plain words, actionable on its own. On the discovery surfaces this names the field and the remedy rather than restating the validator.
            details:
              description: Optional structured context. On a `validation_failed` from the search and outcomes surfaces this carries the zod `fieldErrors`/`formErrors` map, plus `problems` (every issue in plain words), `example` (a minimal request that WORKS — copy it and edit), and `hint` (where the full contract lives). A caller can repair its next request from this body without reading any documentation.
          required:
          - code
          - message
      required:
      - error