Capgo Bundles API
Live update bundle registration, metadata, and channel assignment.
Live update bundle registration, metadata, and channel assignment.
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/capgo-app:capgo-app-bundles-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: Capgo Public Bundles API
summary: REST API for managing Capgo organizations, apps, live update channels, bundles, devices, analytics, and API keys.
description: 'Use this API to automate Capgo Cloud instead of clicking through the dashboard.
## Authentication
Send a Capgo API key in the `x-api-key` header, or as `Authorization: Bearer `. The legacy `authorization` header with the raw key (no Bearer prefix) is still accepted. Generate keys at https://console.capgo.app/settings/organization/api-keys. Each key carries role bindings (organization, app or channel roles such as `org_admin`, `app_developer` or `app_reader`), so a key only reaches the organizations, apps and channels it was granted.
Agents can also get a key through OAuth 2.0: authorization code with PKCE (S256) and dynamic client registration, issuer `https://capgo.app` (metadata at https://capgo.app/.well-known/oauth-authorization-server). The user picks which organizations to grant on the consent screen, and the access token is a Capgo API key sent as a Bearer token. The only OAuth scope is `capgo`; access is narrowed by the organizations the user selects, not by scope.
## Versioning and deprecation
The API is versioned by date. Pin a version with the `capgo_api` request header, for example `capgo_api: 2025-10-01`; without the header you get the default version, currently `2025-10-01`. Changes within a version are additive: new endpoints, new optional parameters and new response fields. A breaking change ships as a new dated version, and clients pinned to an older date keep the old behavior. An unknown or malformed version is rejected with `400 unsupported_capgo_api_version` or `400 invalid_capgo_api_version`. Removing an operation or field is a breaking change, so it only happens in a new dated version. Nothing is deprecated today. When something is, the operation will be marked `deprecated: true` in this spec, its responses will carry the `Deprecation` header (RFC 9745) and a `Sunset` header (RFC 8594) with the date the old behavior ends, and the change will be announced in the release notes at https://github.com/Cap-go/capgo.app/releases.
## Rate limits
Each API key may send 2,000 requests per minute (20,000 per minute on bundle upload routes). Responses report the quota with the `RateLimit-Policy` and `RateLimit` headers (IETF draft-ietf-httpapi-ratelimit-headers), for example `RateLimit-Policy: "apikey";q=2000;w=60` and `RateLimit: "apikey";r=1995;t=42` (r = requests left, t = seconds until the window resets). An IP address that sends 20 invalid keys within 15 minutes is blocked for 15 minutes. A 429 response includes `Retry-After` in seconds.
## Errors
Every error response is JSON with a machine-readable `error` code, a human-readable `message`, and optional `moreInfo` details, for example `{"error":"invalid_apikey","message":"Invalid apikey","moreInfo":{}}`.'
version: '2025-10-01'
servers:
- url: https://api.capgo.app
description: Production
security:
- CapgoApiKeyAuth: []
- CapgoBearerAuth: []
- CapgoOAuth:
- capgo
- CapgoLegacyAuthorization: []
tags:
- name: Bundles
description: Live update bundle registration, metadata, and channel assignment.
paths:
/bundle/:
get:
tags:
- Bundles
operationId: listBundles
summary: List or look up bundles for one app
parameters:
- name: app_id
in: query
required: true
schema:
type: string
- $ref: '#/components/parameters/PageParam'
- name: version
in: query
required: false
description: Exact bundle version name (app_versions.name). Returns zero or one bundle in the same response shape as the list.
schema:
type: string
minLength: 1
- name: id
in: query
required: false
description: Numeric bundle id (app_versions.id). Returns zero or one bundle in the same response shape as the list.
schema:
type: integer
minimum: 1
- $ref: '#/components/parameters/CapgoApiVersion'
responses:
'200':
description: Bundles.
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Bundle'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'400':
description: The request body or query parameters were invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'401':
description: The API key is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'403':
description: The API key is valid but lacks the required scope or org access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'429':
description: Too many requests. Back off and retry later.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected Capgo server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
default:
description: Any other error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: List uploaded live-update bundles for one app, including versions, checksums, and metadata. Optional version or id query parameters return at most one matching bundle for that app. Values rejected by query-schema validation return invalid_query.
post:
tags:
- Bundles
operationId: createBundle
summary: Register a new bundle using an externally hosted zip URL and checksum
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BundleCreate'
responses:
'200':
description: Bundle created.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'400':
description: The request body or query parameters were invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'401':
description: The API key is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'403':
description: The API key is valid but lacks the required scope or org access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'429':
description: Too many requests. Back off and retry later.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected Capgo server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
default:
description: Any other error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Register a new bundle from an externally hosted zip URL plus checksum. This does not by itself make the bundle live on a channel.
parameters:
- $ref: '#/components/parameters/CapgoApiVersion'
put:
tags:
- Bundles
operationId: setBundleChannel
summary: Attach a bundle to a channel
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BundleChannelSet'
responses:
'200':
description: Bundle assigned to channel.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'400':
description: The request body or query parameters were invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'401':
description: The API key is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'403':
description: The API key is valid but lacks the required scope or org access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'429':
description: Too many requests. Back off and retry later.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected Capgo server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
default:
description: Any other error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Attach an existing bundle to a channel so devices on that channel download it on the next update check.
parameters:
- $ref: '#/components/parameters/CapgoApiVersion'
delete:
tags:
- Bundles
operationId: deleteBundle
summary: Delete one bundle or all bundles for an app
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BundleDelete'
responses:
'200':
description: Bundle deletion accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'400':
description: The request body or query parameters were invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'401':
description: The API key is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'403':
description: The API key is valid but lacks the required scope or org access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'429':
description: Too many requests. Back off and retry later.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected Capgo server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
default:
description: Any other error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Delete one bundle or all bundles for an app. Bundles still assigned to a channel should be unassigned first.
parameters:
- $ref: '#/components/parameters/CapgoApiVersion'
/bundle/metadata:
post:
tags:
- Bundles
operationId: updateBundleMetadata
summary: Update bundle metadata such as release link or comment
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BundleMetadataUpdate'
responses:
'200':
description: Bundle metadata updated.
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'400':
description: The request body or query parameters were invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'401':
description: The API key is missing, invalid, or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'403':
description: The API key is valid but lacks the required scope or org access.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
'429':
description: Too many requests. Back off and retry later.
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Unexpected Capgo server error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
headers:
RateLimit:
$ref: '#/components/headers/RateLimit'
RateLimit-Policy:
$ref: '#/components/headers/RateLimit-Policy'
default:
description: Any other error.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Update bundle metadata such as an external release link or comment without changing the zip bytes.
parameters:
- $ref: '#/components/parameters/CapgoApiVersion'
components:
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
RateLimit-Policy:
description: 'Quota policy (draft-ietf-httpapi-ratelimit-headers): `"<policy>";q=<requests>;w=<window seconds>`.'
schema:
type: string
example: '"apikey";q=2000;w=60'
RateLimit:
description: 'Remaining quota for the current window (draft-ietf-httpapi-ratelimit-headers): `"<policy>";r=<requests left>;t=<seconds until reset>`.'
schema:
type: string
example: '"apikey";r=1995;t=42'
schemas:
StatusResponse:
type: object
properties:
status:
type: string
required:
- status
additionalProperties: true
ErrorResponse:
type: object
description: Error body returned by every 4xx and 5xx response.
properties:
error:
type: string
description: Machine-readable error code, for example `invalid_apikey`, `no_key_provided`, `too_many_requests`.
message:
type: string
description: Human-readable explanation.
moreInfo:
type: object
description: Optional structured details, such as `retryAfterSeconds` on a 429.
additionalProperties: true
required:
- error
- message
additionalProperties: true
Bundle:
type: object
properties:
id:
type: integer
app_id:
type: string
name:
type: string
checksum:
type:
- string
- 'null'
minUpdateVersion:
type:
- string
- 'null'
storage_provider:
type: string
external_url:
type:
- string
- 'null'
format: uri
deleted:
type: boolean
created_at:
type:
- string
- 'null'
format: date-time
updated_at:
type:
- string
- 'null'
format: date-time
required:
- id
- app_id
- name
BundleMetadataUpdate:
type: object
additionalProperties: false
properties:
app_id:
type: string
version_id:
type: integer
link:
type: string
format: uri
comment:
type: string
required:
- app_id
- version_id
BundleChannelSet:
type: object
additionalProperties: false
properties:
app_id:
type: string
version_id:
type: integer
channel_id:
type: integer
required:
- app_id
- version_id
- channel_id
BundleCreate:
type: object
additionalProperties: false
properties:
app_id:
type: string
version:
type: string
external_url:
type: string
format: uri
checksum:
type: string
required:
- app_id
- version
- external_url
- checksum
BundleDelete:
type: object
additionalProperties: false
properties:
app_id:
type: string
version:
type: string
required:
- app_id
parameters:
CapgoApiVersion:
name: capgo_api
in: header
required: false
description: Date-based API version to pin. Defaults to the current version when omitted.
schema:
type: string
pattern: ^\d{4}-\d{2}-\d{2}$
default: '2025-10-01'
example: '2025-10-01'
PageParam:
name: page
in: query
schema:
type: integer
minimum: 0
securitySchemes:
CapgoApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Send the raw Capgo API key in the `x-api-key` header. Generate or rotate keys at https://console.capgo.app/settings/organization/api-keys.
CapgoBearerAuth:
type: http
scheme: bearer
bearerFormat: Capgo API key
description: 'Send a Capgo API key, or an access token from the Capgo OAuth flow, as `Authorization: Bearer <key>`.'
CapgoOAuth:
type: oauth2
description: 'OAuth 2.0 authorization code flow with PKCE (S256) and dynamic client registration (https://api.capgo.app/mcp/oauth/register). Issuer: https://capgo.app. The access token is a Capgo API key limited to the organizations the user selects on the consent screen; send it as a Bearer token.'
flows:
authorizationCode:
authorizationUrl: https://api.capgo.app/mcp/oauth/authorize
tokenUrl: https://api.capgo.app/mcp/oauth/token
scopes:
capgo: Act on the organizations the user selects on the consent screen, with the user's role in each of them.
CapgoLegacyAuthorization:
type: apiKey
in: header
name: authorization
description: Legacy raw API key in the `authorization` header without a Bearer prefix. Prefer `x-api-key`.
externalDocs:
description: Capgo public API documentation
url: https://capgo.app/docs/public-api/