Request
GET https://repopack.com/api/v0/projects/<key>/releases/products/<product>/channel-inventory
Authorization: Bearer <token>
This management read requires an API token with project release.read permission. It lists configured live channels, including empty public and project-only channels and rolling channels with no eligible Run. It is not the anonymous version-2 distribution discovery; discovery intentionally lists only installable channels. Use the permanent project key. A browser session cookie does not authorize this /api endpoint.
Response
200 returns a private, no-store JSON object with schema: "repopack.release.channel-inventory", version: 1, project, key, product, and channels (an array, empty when no live channels exist). Each entry is the management channel detail: numeric id, name, kind (release or rolling), visibility (public or project), description, version (a string or null for an empty Release channel), job (the rolling Job or null), member_count, revision, history, and canonical URLs. A rolling channel with no eligible Run remains listed; its current Run is a separate live lookup. Deleted rolling channels are excluded. Do not use this response to choose an installable download.
{
"schema": "repopack.release.channel-inventory",
"version": 1,
"project": "demo",
"key": "demo",
"product": "cli",
"channels": [
{ "id": 5, "name": "stable", "kind": "release", "visibility": "public", "version": null, "job": null, "member_count": 0, "revision": 1, "description": "", "history": [] }
]
}
The example entry omits additional metadata, history and URL fields. A successful empty inventory uses "channels": []; this differs from a distribution discovery response with no installable channels.
Errors and safety
401 means there is no valid token or the caller cannot read the project; 403 means the caller can read the project but lacks release.read; 404 means the product does not exist for an authorized caller. These refusals do not disclose private channels. Inventory is read-only and does not create channels or confirm guarded actions. rp release channel list/show/update use this management read before operating on a channel; reads do not imply that later guarded writes will succeed.