Token Canopy Search API

The search API from Token Canopy, for search.

GitHub OpenAPI

Operations 1

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/tokencanopy-com:tokencanopy-com-search-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

tokencanopy-com-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AgentDrive Search API
  description: 'AgentDrive is an agent-focused artifact store: drive-scoped folders, artifacts, and immutable versions, with local grants, possession-based share links, drive-scoped search, and a cursor-resumable change feed. Bearer-authenticated with Hub-issued product tokens (see /.well-known/oauth-protected-resource); every mutation takes an Idempotency-Key, and existing-state mutations take If-Match.'
  version: 0.0.1
servers:
- url: https://drive.tokencanopy.com
  description: This deployment
- url: http://127.0.0.1:8000
  description: Local dev
tags:
- name: Search
paths:
  /v0/drives/{drive_id}/search:
    get:
      tags:
      - Search
      summary: Drive Search
      description: 'Search the drive''s live artifacts. ``q`` is required and must be

        non-empty.


        ``mode`` selects the retrieval engine: ``lexical``, ``hybrid``, or

        ``semantic``. This deployment enables ``lexical`` only; requesting a

        disabled mode fails ``400 SEARCH_MODE_UNAVAILABLE``.


        Each hit''s ``snippet`` is HTML-safe by contract: artifact content is

        entity-escaped and only the server''s own ````/```` highlight

        pair survives, so a client may render it as HTML.'
      operationId: drive_search
      parameters:
      - name: drive_id
        in: path
        required: true
        schema:
          type: string
          title: Drive Id
      - name: q
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          title: Q
      - name: mode
        in: query
        required: false
        schema:
          enum:
          - lexical
          - hybrid
          - semantic
          type: string
          default: lexical
          title: Mode
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Limit
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
      - name: parent_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Id
      - name: content_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Content Type
      - name: label
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Label
      - name: updated_after
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated After
      - name: updated_before
        in: query
        required: false
        schema:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Updated Before
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
        deprecated: true
        description: 'Deprecated: redundant with the operation''s `bearerAuth` security requirement, which is how a generated client should learn to authenticate. Scheduled for removal.'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchPageOut'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
        '422':
          description: Request validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
        '404':
          description: The resource was not found or is not visible to the caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
        '401':
          description: Missing or invalid bearer token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
            WWW-Authenticate:
              description: RFC 6750 bearer authentication challenge.
              schema:
                type: string
        '403':
          description: Token lacks a required scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
        '429':
          description: Rate limited.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
            Retry-After:
              description: Seconds until the caller should retry.
              schema:
                type: integer
                minimum: 0
        '503':
          description: Token verification is temporarily unavailable (the Hub JWKS could not be fetched). This is the API's unavailability, not a problem with the presented credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
            Retry-After:
              description: Seconds until the caller should retry.
              schema:
                type: integer
                minimum: 0
        '400':
          description: Malformed request (invalid query parameter, cursor, or argument). Requesting a disabled search mode fails with SEARCH_MODE_UNAVAILABLE.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
      security:
      - bearerAuth: []
      x-required-scopes:
      - content:read
      x-stability-level: beta
components:
  schemas:
    SearchHitOut:
      properties:
        id:
          type: string
          pattern: ^art_[a-f0-9]{16}$
          title: Id
        drive_id:
          type: string
          pattern: ^drv_[a-f0-9]{16}$
          title: Drive Id
        parent_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Id
        name:
          type: string
          title: Name
        version_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Version Id
        rank:
          type: number
          title: Rank
        snippet:
          type: string
          title: Snippet
          description: HTML-safe highlighted excerpt. The ONLY markup it may contain is the server's own <mark>...</mark> highlight pair; artifact content is entity-escaped, so this may be rendered as HTML.
        content_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Content Type
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
      - id
      - drive_id
      - parent_id
      - name
      - version_id
      - rank
      - snippet
      - content_type
      - updated_at
      title: SearchHitOut
    V0ErrorEnvelope:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: Stable machine-readable error code (see the error-catalog).
              enum:
              - ARTIFACT_NOT_FOUND
              - ARTIFACT_PATH_CONFLICT
              - ARTIFACT_TOO_LARGE
              - AUTHENTICATION_REQUIRED
              - AUTH_UNAVAILABLE
              - BAD_REQUEST
              - BANDWIDTH_LIMIT_EXCEEDED
              - CHANGE_CURSOR_EXPIRED
              - CHECKSUM_MISMATCH
              - CONFLICT
              - DOWNLOAD_SIGNING_UNAVAILABLE
              - DRIVE_LIMIT_EXCEEDED
              - DRIVE_NOT_FOUND
              - FOLDER_NOT_FOUND
              - FOLDER_PATH_CONFLICT
              - FOLDER_RECURSIVE_REQUIRED
              - GRANT_CONFLICT
              - GRANT_NOT_FOUND
              - GRANT_PERMANENT
              - IDEMPOTENCY_CONFLICT
              - IDEMPOTENCY_IN_PROGRESS
              - IDEMPOTENCY_KEY_REQUIRED
              - INTERNAL_ERROR
              - INVALID_ARGUMENT
              - INVALID_CURSOR
              - INVALID_PARAMETER
              - INVALID_QUERY
              - INVALID_REQUEST
              - METHOD_NOT_ALLOWED
              - NAME_CONFLICT
              - NOT_ACCEPTABLE
              - NOT_AUTHORIZED
              - NOT_FOUND
              - OBJECT_METADATA_MISMATCH
              - OBJECT_SIZE_MISMATCH
              - PAYLOAD_TOO_LARGE
              - PERMISSION_DENIED
              - PRECONDITION_FAILED
              - PRECONDITION_REQUIRED
              - RATE_LIMITED
              - SEARCH_MODE_UNAVAILABLE
              - SHARE_NOT_FOUND
              - SHEET_EDIT_LIMIT_EXCEEDED
              - SHEET_NOT_FOUND
              - SHEET_SESSION_ALREADY_COMPLETED
              - SHEET_SESSION_EXPIRED
              - SHEET_SESSION_NOT_FOUND
              - SUBTREE_TOO_LARGE
              - TRANSFER_DISABLED
              - TRANSFER_LIMIT_EXCEEDED
              - TRANSFER_UNAVAILABLE
              - UNSUPPORTED_MEDIA_TYPE
              - UPLOAD_ALREADY_COMPLETED
              - UPLOAD_BUSY
              - UPLOAD_EXPIRED
              - UPLOAD_INCOMPLETE
              - UPLOAD_NOT_COMPLETABLE
              - VALIDATION_ERROR
              - VERSION_NOT_FOUND
              - VIEWER_DISABLED
              - VIEWER_SESSION_NOT_FOUND
              - WORKBOOK_NOT_EDITABLE
              - WORKBOOK_TOO_LARGE
              - WORKBOOK_UNPARSEABLE
            message:
              type: string
            details:
              type: object
              description: Error-code-specific context (optional).
          additionalProperties: true
    SearchPageOut:
      properties:
        items:
          items:
            $ref: '#/components/schemas/SearchHitOut'
          type: array
          title: Items
        next_cursor:
          anyOf:
          - type: string
          - type: 'null'
          title: Next Cursor
      type: object
      required:
      - items
      - next_cursor
      title: SearchPageOut
    ValidationErrorResponse:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
            message:
              type: string
            details:
              type: object
              properties:
                fields:
                  type: array
                  items:
                    type: object
                    properties:
                      location:
                        type: string
                      reason:
                        type: string
          additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Hub-issued bearer token. Scopes: drives:*, content:*, sharing:*, changes:read, usage:read. See the OAuth-protected-resource discovery document (RFC 9728).'
x-agentdrive-compatibility-policy: 2