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
| Parameter | Location | Required | Description |
|---|---|---|---|
kit_id | path | yes | The kit's id. |
version | query | no | Export this version of the kit instead of the current one. |
release | query | no | Resolve the kit's assets as this release published them (a number). Omit, with no tag, for the latest release. Cannot be combined with tag. |
tag | query | no | Resolve 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
| Status | Meaning |
|---|---|
200 | The kit as a ZIP archive. |
401 | The token is missing, expired or invalid. |
403 | The token does not carry the scope this operation requires. |
404 | No such project, or the token belongs to a different project. |
422 | The 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"Get a kit's changelog
Returns what changed in a kit over its history, including changes to the assets it holds: a summary with one entry per kit version, and the revisions behind it, newest first.
Get a kit with its assets
Returns one kit together with the body of every asset it holds, grouped by type, in one call.