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/kody-codes:kody-codes-capability-proxy-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: 3.2.0
info:
title: Kody Capability Proxy API
version: 1.0.0
description: 'HTTP API for a Kody account. Versioned under `/v1`; changes within v1 are additive. See https://kody.codes/docs/api-versioning.md for deprecation windows and migration policy (we do not break users; phased migration with codemods when needed). Authenticate with `Authorization: Bearer kody_at_…`. Tokens are minted by the MCP `api` tool (`tokenCreate`) or by another token, and each carries explicit org-permission scopes. There is no write-implies-read hierarchy. Tokens require an explicit lifetime: lifetime "short" (3600s idle / 86400s max) or "long" (1209600s idle / 7776000s max), or both idle_ttl_seconds (60-1209600) and max_lifetime_seconds (up to 7776000). Each successful request slides expires_at forward, never past max_expires_at. At most 500 active tokens per account; a new mint reclaims the active token(s) with the least remaining life (sooner of idle deadline and absolute expiry), never the caller''s own token. Errors use `{ "error": { "code", "message", "details"? } }` (see components.schemas.Error). Documented 4xx/5xx responses reference that schema. Requests are rate limited per IP (600/min) and per token (300/min); HTTP 429 includes `Retry-After`. Edge-generated 429 responses also include a `RateLimit-Policy` advertisement; entitlement 429s send `Retry-After` only. `operationId` values match Kody capability names, except deprecated forwarders, which keep their old ids and forward to the capability their description names. Every id, deprecated ones included, works with the MCP `api` tool (`{ operationId, params }`, where params hold path, query, and body fields flat). Interactive docs: https://api-docs.kody.codes
Scopes:
- `file:read`: Granted `file:read` in this org. - `file:comment`: Granted `file:comment` in this org. - `file:write`: Granted `file:write` in this org. - `file:delete`: Granted `file:delete` in this org. - `file:manage_access`: Granted `file:manage_access` in this org. - `package:read`: Read saved packages and package-backed resources. - `package:execute`: Execute saved packages. - `package:write`: Change saved packages and package-backed resources. - `package:delete`: Delete saved packages. - `package:publish`: Publish packages to the community catalog. - `package:manage_access`: Manage package access grants. - `app:read`: Read package apps. - `app:execute`: Run package apps. - `app:write`: Granted `app:write` in this org. - `app:delete`: Granted `app:delete` in this org. - `app:manage_access`: Granted `app:manage_access` in this org. - `job:read`: Read package jobs and workflow runs. - `job:execute`: Run package jobs. - `job:write`: Granted `job:write` in this org. - `job:manage_access`: Granted `job:manage_access` in this org. - `secret:use`: Use secrets without reading plaintext. - `secret:read`: Granted `secret:read` in this org. - `secret:read_local`: Read secret values on this machine with the Kody CLI, only for secrets a person turned on local reads for. - `secret:write`: Change existing secrets (plaintext is never returned). - `secret:delete`: Granted `secret:delete` in this org. - `secret:manage_access`: Granted `secret:manage_access` in this org. - `integration:use`: Use connected integrations. - `integration:read`: Read OAuth integrations and connected MCP servers. - `integration:write`: Granted `integration:write` in this org. - `integration:delete`: Granted `integration:delete` in this org. - `integration:manage_access`: Granted `integration:manage_access` in this org. - `memory:read`: Read memories and MCP server instructions. - `memory:write`: Change existing memories. - `memory:delete`: Granted `memory:delete` in this org. - `memory:manage_access`: Granted `memory:manage_access` in this org. - `email:read`: Read inboxes and messages. - `email:send`: Send email. - `email:write`: Granted `email:write` in this org. - `email:delete`: Granted `email:delete` in this org. - `email:manage_access`: Granted `email:manage_access` in this org.'
servers:
- url: https://api.kody.codes
security:
- apiToken: []
tags:
- name: capability-proxy
description: 'Platform I/O for a local execute venue: CapabilityProxy hops (`kody:runtime` calls) and `POST /v1/local-execute/package-graph` (stamped `kody:@…` module download). Requires `org:execute` and a scoped API token or CLI `kody login` MCP OAuth bearer.'
paths:
/v1/capability-proxy/session:
get:
operationId: capabilityProxySession
summary: 'Preflight for local execute: confirms the bearer is valid (scoped `kody_at_`…'
description: 'Preflight for local execute: confirms the bearer is valid (scoped `kody_at_` with `org:execute`, or CLI `kody login` MCP OAuth). Returns scopes, expiry, and proxy limits. Call before starting user code.
Org permission: `org:execute`.'
tags:
- capability-proxy
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
scopes:
type: array
items:
type: string
expiresAt:
type: string
description: Sliding expiry; every proxied call pushes it forward.
maxExpiresAt:
type: string
description: Absolute expiry of the token.
idleTtlSeconds:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
user:
type: object
properties:
userId:
type: string
email:
type: string
required:
- userId
- email
additionalProperties: false
features:
type: array
items:
type: string
description: Optional host features this proxy serves, e.g. `credential-call-map` (the `credentials` call field and `kody.credentialClientCheck`).
limits:
type: object
properties:
maxPathSegments:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
maxArgs:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
maxRequestBytes:
type: integer
minimum: -9007199254740991
maximum: 9007199254740991
required:
- maxPathSegments
- maxArgs
- maxRequestBytes
additionalProperties: false
required:
- scopes
- expiresAt
- maxExpiresAt
- idleTtlSeconds
- user
- features
- limits
additionalProperties: false
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
default:
$ref: '#/components/responses/Error'
security:
- apiToken: []
x-kody-permission: org:execute
x-kody-read-only: true
/v1/capability-proxy/call:
post:
operationId: capabilityProxyCall
summary: 'Run one `kody:runtime` call from a local execute venue: `path` is the runtime…'
description: 'Run one `kody:runtime` call from a local execute venue: `path` is the runtime property path (`[''kody'',''emailSend'']`, `[''kody'',''authenticatedFetch'']`, `[''kody'',''oauthClientCredentials'']`, `[''kody'',''mcp'',server,tool]`, `[''kody'',''packageStorageGet'']`, `[''workflows'',''create'']`) and `args` the positional arguments. Behaves like the same call inside cloud execute. Authenticated fetch, OAuth client-credentials grants, and stamped packageStorage / packageSecrets hop here so OAuth tokens and secret plaintext stay on origin. Accepts a scoped API token or CLI MCP OAuth. Errors use the standard envelope; capability failures return `capability_error` with the capability''s message.
Org permission: `org:execute`.'
tags:
- capability-proxy
requestBody:
required: true
content:
application/json:
schema:
type: object
additionalProperties: false
properties:
path:
minItems: 2
maxItems: 8
type: array
items:
type: string
minLength: 1
maxLength: 200
description: '`kody:runtime` property path, e.g. `[''kody'',''emailSend'']`, `[''kody'',''mcp'',''home'',''lights_on'']`, or `[''workflows'',''create'']`.'
args:
maxItems: 8
type: array
items: {}
description: Positional arguments passed to the runtime function.
conversationId:
description: Optional MCP conversation id to attribute the call to.
type: string
minLength: 1
maxLength: 64
credentials:
description: Credential picks for this local run, by need key (CLI `--credential key=name`), read by `kody.credentialClient*` calls. Same shape as `execute` `credentials`. Picks choose only among credentials you can Use.
type: object
propertyNames:
type: string
pattern: ^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$
additionalProperties:
anyOf:
- anyOf:
- type: string
minLength: 1
maxLength: 100
- type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
description: Credential name to pick for this need key (must match a credential the actor can Use).
scope:
description: When an org credential and a personal credential share the name, choose which one. Omit when the name alone is unique.
type: string
enum:
- org
- personal
required:
- name
additionalProperties: false
- maxItems: 16
type: array
items:
anyOf:
- type: string
minLength: 1
maxLength: 100
- type: object
properties:
name:
type: string
minLength: 1
maxLength: 100
description: Credential name to pick for this need key (must match a credential the actor can Use).
scope:
description: When an org credential and a personal credential share the name, choose which one. Omit when the name alone is unique.
type: string
enum:
- org
- personal
required:
- name
additionalProperties: false
required:
- path
- args
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
result:
description: Return value of the runtime call (JSON).
required:
- result
additionalProperties: false
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
default:
$ref: '#/components/responses/Error'
security:
- apiToken: []
x-kody-permission: org:execute
x-kody-read-only: false
/v1/capability-proxy/gateway-fetch:
post:
operationId: capabilityProxyGatewayFetch
summary: 'Native streaming hop for local execute: the request body is the outbound fetch…'
description: 'Native streaming hop for local execute: the request body is the outbound fetch body (raw bytes, no JSON wrapper). Hop metadata is in `X-Kody-Gateway-Url` (required), `X-Kody-Gateway-Method`, `X-Kody-Gateway-Package-Id`, `X-Kody-Gateway-Headers`, and `x-kody-secret-resolution`. A successful response is the upstream HTTP response, streamed — not `{ status, headers, bodyBase64 }`. Requires `org:execute` and a scoped API token or CLI MCP OAuth bearer. Not available as a JSON MCP `api` invoke; use `POST /v1/capability-proxy/gateway-fetch`.
Org permission: `org:execute`.'
tags:
- capability-proxy
parameters:
- name: X-Kody-Gateway-Url
in: header
required: true
description: Absolute outbound URL. May contain literal `{{secret:…}}` / `{{integration-token:…}}` placeholders.
schema:
type: string
- name: X-Kody-Gateway-Method
in: header
required: false
description: Outbound HTTP method. Defaults to GET.
schema:
type: string
- name: X-Kody-Gateway-Package-Id
in: header
required: false
description: Claimed package stamp. Origin verifies `package:execute` for that id.
schema:
type: string
- name: X-Kody-Gateway-Headers
in: header
required: false
description: JSON object of outbound header name → string value. Invalid JSON or non-string values are `400 invalid_request`.
schema:
type: string
- name: x-kody-secret-resolution
in: header
required: false
description: '`on` (default), `headers-only`, or `off`. Origin strips this header before the request leaves.'
schema:
type: string
requestBody:
required: false
description: Raw outbound fetch body, streamed. No JSON wrapper and no base64. Set `Content-Type` to the outbound value.
content:
'*/*':
schema:
type: string
format: binary
description: Raw outbound bytes (may be multipart).
responses:
'200':
description: 'Upstream HTTP response: status, headers, and body, streamed. Not a JSON envelope. Upstream 4xx/5xx (including 429) are forwarded as the stream, not the JSON Error envelope.'
content:
'*/*':
schema:
type: string
format: binary
description: Upstream response body, streamed.
default:
description: Origin-side failure before the upstream stream starts (auth, validation, etc.). Upstream 4xx/5xx are not this response — they are forwarded on the 200 stream with the upstream status, headers, and body.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
security:
- apiToken: []
x-kody-permission: org:execute
x-kody-read-only: false
/v1/local-execute/package-graph:
post:
operationId: localExecutePackageGraph
summary: Resolve published, stamped `kody:@…` importable-module artifacts for an ad hoc…
description: 'Resolve published, stamped `kody:@…` importable-module artifacts for an ad hoc execute module so `@kodycodes/cli execute --local` / `kody dev` can embed them in workerd. Uses the same static-import scanner and resolution policy as cloud execute (packages resolve only in the caller org). Pass inline `code` (up to just under the Open API JSON body limit of 5 MiB, leaving room for the JSON wrapper) and/or `imports`; when only `imports` is set, origin synthesizes a tiny entry so multi-megabyte worker bundles (TanStack / React apps) do not need to be posted. Does **not** execute the user module and does not meter `dynamic_worker_day`. Builds run in an isolated builder and are cached per imported package commit; a build over the builder limits answers `400 package_graph_resource_limit` naming the packages. CapabilityProxy remains for per-call `kody:runtime` hops during the later local run. Requires `org:execute` and a scoped API token or CLI MCP OAuth bearer.
Org permission: `org:execute`.'
tags:
- capability-proxy
requestBody:
required: true
content:
application/json:
schema:
anyOf:
- type: object
properties:
code:
type: string
minLength: 1
maxLength: 5177344
imports:
maxItems: 64
type: array
items:
type: string
minLength: 1
maxLength: 512
conversationId:
type: string
minLength: 1
maxLength: 128
required:
- code
additionalProperties: false
- type: object
properties:
imports:
maxItems: 64
type: array
items:
type: string
minLength: 1
maxLength: 512
code:
type: string
minLength: 1
maxLength: 5177344
conversationId:
type: string
minLength: 1
maxLength: 128
required:
- imports
additionalProperties: false
responses:
'200':
description: Success.
content:
application/json:
schema:
type: object
properties:
modules:
type: array
items:
type: object
properties:
name:
type: string
minLength: 1
esModule:
type: string
required:
- name
- esModule
additionalProperties: false
imports:
type: array
items:
type: string
warnings:
type: array
items:
type: string
packageBindings:
type: object
propertyNames:
type: string
additionalProperties:
type: string
packageIdsByImport:
type: object
propertyNames:
type: string
additionalProperties:
type: string
required:
- modules
- imports
- warnings
- packageBindings
- packageIdsByImport
additionalProperties: false
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'403':
$ref: '#/components/responses/Error'
'404':
$ref: '#/components/responses/Error'
'409':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
default:
$ref: '#/components/responses/Error'
security:
- apiToken: []
x-kody-permission: org:execute
x-kody-read-only: true
components:
responses:
Error:
description: 'Error envelope `{ "error": { "code", "message", "details"? } }`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
minimum: 1
RateLimit-Policy:
description: 'Edge-generated 429s only: advertised policies (`ip` 600/min, `token` 300/min). Remaining counts are not exposed. Entitlement 429s omit this header.'
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_request
- unauthorized
- insufficient_scope
- profile_grant
- profile_inactive
- email_verification_required
- account_suspended
- guest_not_allowed
- guest_claim_required
- feature_unavailable
- feature_disabled
- not_found
- method_not_allowed
- account_deleting
- payload_too_large
- unsupported_media_type
- rate_limited
- entitlement_limit
- capability_error
- quarantined_inbound_reply
- package_import_unresolved
- package_import_unpublished
- unsupported_dynamic_package_import
- package_graph_resource_limit
- publish_not_applied
- internal_error
- not_granted
- context_revoked
- chain_changed
- chain_too_long
- context_not_usable
- no_execution_context_available
- execution_context_unavailable
- execution_context_binding_unavailable
- execution_context_lease_invalid
- execution_context_access_lost
- context_not_revoked
- commands_opt_in_local
- commands_operator_only
- execution_context_commands_off
- execution_context_command_not_granted
- execution_context_command_requires_context
- context_paused
- context_offline
- not_service_managed
- daemon_busy
- daemon_outdated
- daemon_timeout
- daemon_control_failed
message:
type: string
details: {}
securitySchemes:
apiToken:
type: http
scheme: bearer
bearerFormat: kody_at_<id>_<secret>
description: Scoped Kody API token. Each operation lists its required org permission in `x-kody-permission`. Credential scopes narrow that permission.
externalDocs:
description: Interactive Kody API docs (Scalar)
url: https://api-docs.kody.codes