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.
openapi: 3.2.0
info:
title: AgentDrive Health 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: Health
paths:
/health:
get:
summary: Health
description: 'Liveness + DB-reachability probe. Used by Cloud Run / k8s healthchecks
and any uptime monitor. Returns 200 only if the DB pool can serve a
trivial query; 503 otherwise so the orchestrator can pull the instance
out of rotation.
NOTE: route is `/health`, NOT `/healthz`. Google''s edge infrastructure
intercepts `/healthz` (legacy kubernetes-reserved path) and returns a
generic 404 before traffic reaches Cloud Run — discovered the hard way
during the first prod deploy. Don''t rename back.'
operationId: health
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/HealthOut'
'503':
description: The database reachability probe failed.
content:
application/json:
schema:
$ref: '#/components/schemas/HealthDegradedResponse'
tags:
- Health
components:
schemas:
HealthDegradedResponse:
properties:
detail:
$ref: '#/components/schemas/HealthDegradedDetail'
type: object
required:
- detail
title: HealthDegradedResponse
description: 'Legacy health-probe failure shape.
Health predates the `/v0` error envelope and is consumed by load
balancers. PR 1 documents the wire shape without changing it; convergence
on the canonical API envelope is a separately reviewed compatibility
decision.'
HealthDegradedDetail:
properties:
status:
type: string
const: degraded
title: Status
error:
type: string
title: Error
type: object
required:
- status
- error
title: HealthDegradedDetail
HealthOut:
properties:
status:
type: string
const: ok
title: Status
type: object
required:
- status
title: HealthOut
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