Token Canopy Changes API

The changes API from Token Canopy, for changes.

GitHub OpenAPI

Operations 1

GET /v0/drives/{drive_id}/changes List Changes #

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-changes-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-changes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AgentDrive Changes 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: Changes
paths:
  /v0/drives/{drive_id}/changes:
    get:
      tags:
      - Changes
      summary: List Changes
      description: 'Pull one page of changes. Exactly one of ``start`` or ``cursor``.


        ``order`` selects the direction of the walk and accompanies ``start``, never

        a ``cursor`` — a cursor already carries the direction it was minted for, so

        repeating it could only ever contradict it.


        ``oldest`` (the default) is the resumable sync walk: forward from the

        position, and a drained cursor re-presented later picks up what committed

        since. ``newest`` is a browse walk for a history screen: it captures the

        head and walks down toward the retention floor, newest row first. Because

        new events land ABOVE a captured head, a drained descending cursor stays

        drained — a reader checking for new activity captures the head again. That

        is also why ``order=newest`` takes only ``start=now``: ``beginning`` names

        the far end of a walk that already ends there.


        ``type`` is an optional comma-separated allow-list of exact event-type

        strings (e.g. ``type=folder.created,artifact.updated`` for content only, or

        ``type=grant.created,grant.updated,grant.revoked`` for grant events). A

        comma-list — not a single value or a ``grant.*`` glob — because the useful

        sync queries ("content only", "all permission events") are SETS of exact

        types, and exact-match keeps the filter''s meaning independent of the dotted

        naming (§6.3: unknown params are rejected; unknown type VALUES 400 here).

        Permission types requested by a non-manager are silently empty (the

        manager filter still applies), never an existence oracle.'
      operationId: changes_list
      parameters:
      - name: drive_id
        in: path
        required: true
        schema:
          type: string
          title: Drive Id
      - name: limit
        in: query
        required: false
        schema:
          anyOf:
          - type: integer
          - type: 'null'
          title: Limit
      - name: start
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - now
            - beginning
            type: string
          - type: 'null'
          title: Start
      - name: cursor
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Cursor
      - name: type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Type
      - name: order
        in: query
        required: false
        schema:
          anyOf:
          - enum:
            - oldest
            - newest
            type: string
          - type: 'null'
          title: Order
      - 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/ChangePageOut'
          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
        '410':
          description: 'The change cursor is older than retained history. Recover with a full sync: capture start=now, enumerate current resources, then replay from the captured cursor.'
          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). Pass exactly one of start or cursor (INVALID_REQUEST); a cursor not issued for this drive fails with INVALID_CURSOR.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V0ErrorEnvelope'
          headers:
            X-Request-Id:
              description: Request correlation identifier.
              schema:
                type: string
      security:
      - bearerAuth: []
      x-required-scopes:
      - changes:read
      x-stability-level: beta
components:
  schemas:
    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
    ChangeResourceOut:
      properties:
        type:
          type: string
          enum:
          - drive
          - folder
          - artifact
          title: Type
        id:
          type: string
          title: Id
      type: object
      required:
      - type
      - id
      title: ChangeResourceOut
    ChangeOut:
      properties:
        id:
          type: string
          pattern: ^chg_[a-f0-9]{16}$
          title: Id
        change_set_id:
          type: string
          title: Change Set Id
        type:
          type: string
          title: Type
        drive_id:
          type: string
          pattern: ^drv_[a-f0-9]{16}$
          title: Drive Id
        actor:
          $ref: '#/components/schemas/ChangeActorOut'
        resource:
          $ref: '#/components/schemas/ChangeResourceOut'
        previous_revision:
          anyOf:
          - type: string
          - type: 'null'
          title: Previous Revision
        revision:
          anyOf:
          - type: string
          - type: 'null'
          title: Revision
        occurred_at:
          type: string
          format: date-time
          title: Occurred At
        data:
          additionalProperties: true
          type: object
          title: Data
      type: object
      required:
      - id
      - change_set_id
      - type
      - drive_id
      - actor
      - resource
      - previous_revision
      - revision
      - occurred_at
      - data
      title: ChangeOut
    ChangePageOut:
      properties:
        items:
          items:
            $ref: '#/components/schemas/ChangeOut'
          type: array
          title: Items
        next_cursor:
          type: string
          title: Next Cursor
        has_more:
          type: boolean
          title: Has More
      type: object
      required:
      - items
      - next_cursor
      - has_more
      title: ChangePageOut
    ChangeActorOut:
      properties:
        type:
          type: string
          enum:
          - agent
          - user
          - service
          - system
          title: Type
        id:
          anyOf:
          - type: string
          - type: 'null'
          title: Id
      type: object
      required:
      - type
      - id
      title: ChangeActorOut
    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