Coelevate Documentation
API ReferenceContext Repository

Export a kit

Returns the kit and the skills it holds as a ZIP archive, packaged as an agent plugin that can be installed elsewhere.

GET /context/v1/kits/{kit_id}/export

Returns the kit and the skills it holds as a ZIP archive, packaged as an agent plugin that can be installed elsewhere. The response is a file, not JSON. Pass version to export an earlier version of the kit.

Requires the context:read scope.

Parameters

ParameterLocationRequiredDescription
kit_idpathyesThe kit's id.
versionquerynoExport this version of the kit instead of the current one.
releasequerynoResolve the kit's assets as this release published them (a number). Omit, with no tag, for the latest release. Cannot be combined with tag.
tagquerynoResolve the kit's assets as the release holding this tag published them. A tag no release holds is a 404. Cannot be combined with release.

Responses

StatusMeaning
200The kit as a ZIP archive.
401The token is missing, expired or invalid.
403The token does not carry the scope this operation requires.
404No such project, or the token belongs to a different project.
422The request was not valid: a parameter or the body failed validation.

Example

curl -sS "$API_URL/context/v1/kits/$KIT_ID/export" \
  -H "Authorization: Bearer $TOKEN"