LensHub API

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

GitHub OpenAPI

Operations 5

GET /api/agent-instructions Fetching starter agent instructions #
POST /api/apps Creates a new app by posting an archive or source; the name can be supplied as a query parameter. #
POST /api/apps/{slug}/deploy Deploys an app (or a new release) by sending the source map and optional flags. #
POST /api/ingest/{sourceid}/documents Pushing documents from a system with no connector #
GET /api/orgs/current/audit-log The same data is available to scripts at GET /api/orgs/current/audit-log?format=csv with an admin session; the JSON endpoint takes limit and offset for paging. #

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/lenshub-ai:lenshub-ai-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

lenshub-ai-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: LensHub API
  version: '2026-11-15'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-15: 5 operation(s) read from 4 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; LensHub has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 0
    documentation: 5
    pages-with-code: 1
    pages-read: 4
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-15'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.lenshub.ai/docs/reference/internal-api
  - https://docs.lenshub.ai/docs/agents/agent-instructions
  - https://docs.lenshub.ai/docs/users-access/audit-logs
  - https://docs.lenshub.ai/docs/apps/deploying
paths:
  /api/agent-instructions:
    get:
      operationId: get_api_agent_instructions
      tags:
      - Api
      summary: Fetching starter agent instructions
      x-source: https://docs.lenshub.ai/docs/reference/internal-api
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/apps:
    post:
      operationId: post_api_apps
      tags:
      - Api
      summary: Creates a new app by posting an archive or source; the name can be supplied as a query parameter.
      x-source: https://docs.lenshub.ai/docs/apps/deploying
      parameters:
      - name: name
        in: query
        required: false
        schema:
          type: string
        description: Name for the new app; if omitted a slug is generated.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAppsRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAppsResponse'
      x-evidence:
        kind: documentation
  /api/apps/{slug}/deploy:
    post:
      operationId: post_api_apps_slug_deploy
      tags:
      - Api
      summary: Deploys an app (or a new release) by sending the source map and optional flags.
      x-source: https://docs.lenshub.ai/docs/apps/deploying
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiAppsSlugDeployRequest'
      responses:
        '201':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiAppsSlugDeployResponse'
      x-evidence:
        kind: documentation
  /api/ingest/{sourceid}/documents:
    post:
      operationId: post_api_ingest_sourceid_documents
      tags:
      - Api
      summary: Pushing documents from a system with no connector
      x-source: https://docs.lenshub.ai/docs/reference/internal-api
      parameters:
      - name: sourceid
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/orgs/current/audit-log:
    get:
      operationId: get_api_orgs_current_audit_log
      tags:
      - Api
      summary: The same data is available to scripts at GET /api/orgs/current/audit-log?format=csv with an admin session; the JSON endpoint takes
        limit and offset for paging.
      x-source: https://docs.lenshub.ai/docs/users-access/audit-logs
      parameters:
      - name: format
        in: query
        required: false
        schema:
          type: string
        description: Set to csv to download the entire trail as a CSV file.
      - name: limit
        in: query
        required: false
        schema:
          type: string
        description: Number of entries to return per page for the JSON endpoint.
      - name: offset
        in: query
        required: false
        schema:
          type: string
        description: Offset for paging through entries for the JSON endpoint.
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetApiOrgsCurrentAuditLogResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiAppsRequest:
      type: object
      properties:
        source:
          type: string
          description: Map of file path to content (binary files go in files_base64).
        merge:
          type: string
          description: When true, only the provided files are merged into the existing source.
        delete:
          type: string
          description: List of paths to delete from the existing source.
        build:
          type: string
          description: When false, stages files in a draft without building.
        validate_only:
          type: string
          description: When true, runs all checks without performing a build.
        reset_draft:
          type: string
          description: When true, starts the draft empty.
      required:
      - source
    PostApiAppsResponse:
      type: object
      properties:
        slug:
          type: string
          description: Slug of the newly created app.
        file_count:
          type: string
          description: Number of files in the deploy.
        bytes:
          type: string
          description: Total size of the source in bytes.
        source_hash:
          type: string
          description: Hash of the source content.
        changes:
          type: string
          description: List of added, removed, or changed files.
    PostApiAppsSlugDeployRequest:
      type: object
      properties:
        source:
          type: string
          description: Map of file path to content (binary files go in files_base64).
        merge:
          type: string
          description: When true, only the provided files are merged into the existing source.
        delete:
          type: string
          description: List of paths to delete from the existing source.
        build:
          type: string
          description: When false, stages files in a draft without building.
        validate_only:
          type: string
          description: When true, runs all checks without performing a build.
        reset_draft:
          type: string
          description: When true, starts the draft empty.
      required:
      - source
    PostApiAppsSlugDeployResponse:
      type: object
      properties:
        file_count:
          type: string
          description: Number of files in the deploy.
        bytes:
          type: string
          description: Total size of the source in bytes.
        source_hash:
          type: string
          description: Hash of the source content.
        changes:
          type: string
          description: List of added, removed, or changed files since the previous release.
        warnings:
          type: string
          description: Any warnings, e.g., when a full deploy drops files without merge.
    GetApiOrgsCurrentAuditLogResponse:
      type: object
      properties:
        created_at:
          type: string
          description: UTC timestamp in RFC 3339 format.
        action:
          type: string
          description: The action performed.
        actor_email:
          type: string
          description: Email of the actor.
        actor_user_id:
          type: string
          description: User ID of the actor.
        actor_api_key_id:
          type: string
          description: API key ID of the actor.
        target_type:
          type: string
          description: Type of the target entity.
        target_id:
          type: string
          description: Identifier of the target entity.
        detail:
          type: object
          description: Full JSON payload summarised in the table.
        id:
          type: string
          description: Unique identifier of the audit log entry.
tags:
- name: Api