Token Canopy Sheets API
The sheets API from Token Canopy, for sheets.
Operations 4
GET
/v0/drives/{drive_id}/artifacts/{artifact_id}/versions/{version_id}/sheets
Version Sheets List
#
The sheets API from Token Canopy, for sheets.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tokencanopy-com:tokencanopy-com-sheets-api"
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.
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: 3.2.0
info:
title: AgentDrive Sheets 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: Sheets
paths:
/v0/drives/{drive_id}/artifacts/{artifact_id}/sheets:
get:
tags:
- Sheets
summary: Sheets List
description: 'The workbook''s sheets and whether it can be edited.
One call carries three things a caller needs before opening a session:
the structure, the editability verdict, and — as the ETag — the revision
that becomes the session''s `If-Match`. So opening a session costs one
read, not two.'
operationId: sheets_list
parameters:
- name: drive_id
in: path
required: true
schema:
type: string
title: Drive Id
- name: artifact_id
in: path
required: true
schema:
type: string
title: Artifact Id
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
- 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/SheetIndexOut'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'304':
description: If-None-Match matched.
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
'409':
description: 'The artifact is not a spreadsheet, or the workbook cannot be edited (WORKBOOK_NOT_EDITABLE). Not 404: the artifact exists and is visible.'
content:
application/json:
schema:
$ref: '#/components/schemas/V0ErrorEnvelope'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'413':
description: The requested range exceeds the per-request cell cap.
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).
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
/v0/drives/{drive_id}/artifacts/{artifact_id}/cells:
get:
tags:
- Sheets
summary: Sheet Cells Read
description: 'One rectangle of committed values.
`range` IS the pagination here: the caller chooses the window and the
server caps it, so this needs no cursor. The response is always exactly
the rectangle asked for, padded with nulls outside the used range —
ragged arrays would put the padding logic in every client instead.'
operationId: sheet_cells_read
parameters:
- name: drive_id
in: path
required: true
schema:
type: string
title: Drive Id
- name: artifact_id
in: path
required: true
schema:
type: string
title: Artifact Id
- name: sheet
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Sheet
- name: range
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Range
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
- 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/CellRangeOut'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'304':
description: If-None-Match matched.
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
'409':
description: 'The artifact is not a spreadsheet, or the workbook cannot be edited (WORKBOOK_NOT_EDITABLE). Not 404: the artifact exists and is visible.'
content:
application/json:
schema:
$ref: '#/components/schemas/V0ErrorEnvelope'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'413':
description: The requested range exceeds the per-request cell cap.
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).
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
/v0/drives/{drive_id}/artifacts/{artifact_id}/versions/{version_id}/sheets:
get:
tags:
- Sheets
summary: Version Sheets List
description: 'One version''s sheets and whether that version could be edited.
The ETag is the VERSION id: a version is immutable, so its parsed
contents can never change and its own identity is the strongest
validator there is.'
operationId: version_sheets_list
parameters:
- name: drive_id
in: path
required: true
schema:
type: string
title: Drive Id
- name: artifact_id
in: path
required: true
schema:
type: string
title: Artifact Id
- name: version_id
in: path
required: true
schema:
type: string
title: Version Id
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
- 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/SheetIndexOut'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'304':
description: If-None-Match matched.
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
'409':
description: 'The artifact is not a spreadsheet, or the workbook cannot be edited (WORKBOOK_NOT_EDITABLE). Not 404: the artifact exists and is visible.'
content:
application/json:
schema:
$ref: '#/components/schemas/V0ErrorEnvelope'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'413':
description: The requested range exceeds the per-request cell cap.
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).
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
/v0/drives/{drive_id}/artifacts/{artifact_id}/versions/{version_id}/cells:
get:
tags:
- Sheets
summary: Version Cells Read
description: 'One rectangle of one version''s values.
What makes a conflict diffable: read the same range from the session''s
base version and from the new head, and the difference is exactly what
landed underneath.'
operationId: version_cells_read
parameters:
- name: drive_id
in: path
required: true
schema:
type: string
title: Drive Id
- name: artifact_id
in: path
required: true
schema:
type: string
title: Artifact Id
- name: version_id
in: path
required: true
schema:
type: string
title: Version Id
- name: sheet
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Sheet
- name: range
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Range
- name: If-None-Match
in: header
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: If-None-Match
- 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/CellRangeOut'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'304':
description: If-None-Match matched.
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
'409':
description: 'The artifact is not a spreadsheet, or the workbook cannot be edited (WORKBOOK_NOT_EDITABLE). Not 404: the artifact exists and is visible.'
content:
application/json:
schema:
$ref: '#/components/schemas/V0ErrorEnvelope'
headers:
X-Request-Id:
description: Request correlation identifier.
schema:
type: string
'413':
description: The requested range exceeds the per-request cell cap.
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).
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:
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
WorkbookOut:
properties:
artifact_id:
type: string
title: Artifact Id
revision:
type: string
title: Revision
format:
type: string
title: Format
cell_count:
type: integer
title: Cell Count
editability:
$ref: '#/components/schemas/EditabilityOut'
type: object
required:
- artifact_id
- revision
- format
- cell_count
- editability
title: WorkbookOut
SheetIndexOut:
properties:
workbook:
$ref: '#/components/schemas/WorkbookOut'
sheets:
items:
$ref: '#/components/schemas/SheetOut'
type: array
title: Sheets
type: object
required:
- workbook
- sheets
title: SheetIndexOut
description: 'A representation of the workbook, deliberately NOT a paginated
collection: sheets are not independently addressable resources and their
number is bounded by the file itself. The contract''s paginate-everything
rule guards collections that grow without limit; this is closer to an
artifact''s metadata than to a listing.'
EditabilityOut:
properties:
status:
type: string
title: Status
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
type: object
required:
- status
title: EditabilityOut
description: 'Discriminated, not a boolean plus an optional reason — a client
branches on `status` and never reasons about a sometimes-absent field.'
SheetOut:
properties:
name:
type: string
title: Name
index:
type: integer
title: Index
rows:
type: integer
title: Rows
columns:
type: integer
title: Columns
has_formulas:
type: boolean
title: Has Formulas
type: object
required:
- name
- index
- rows
- columns
- has_formulas
title: SheetOut
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
CellRangeOut:
properties:
sheet:
type: string
title: Sheet
range:
type: string
title: Range
revision:
type: string
title: Revision
values:
items:
items: {}
type: array
type: array
title: Values
additionalProperties: false
type: object
required:
- sheet
- range
- revision
- values
title: CellRangeOut
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