Cabinets
A directory of the Cabinets inside the Cabinet Boundary, Page by Page: the Key, the slug and the name. With cabinet, only these Cabinets, by Key or slug; unknown Cabinets and Cabinets outside the Cabinet Boundary are skipped, and if all of them are skipped, the Page is empty. This Operation does not accept words: search for a Cabinet by words with search in the cabinets section. It has no totals: the number of Releases per Cabinet is the cabinets facet of releases with limit=0&include=counts.
Request
GET /api/v1/cabinets| Parameter | Type | Default | Description |
|---|---|---|---|
x-cabinets | string | This header is required. The Cabinet Boundary: Cabinet slugs or Cabinet Keys cabinet:<slug> separated by commas, at most 250. * means the whole catalog. A response contains only data of these Cabinets. The Consumer decides the list and never sends an empty one. Example: label-one,label-two. | |
traceparent | string | This is a header. Tracing of the call (W3C Trace Context). The API writes the trace-id to its log, and the response returns the same header. The API drops an invalid header without an error. Example: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01. | |
Accept-Language | string | This is a header. The language of the labels for people in the response (RFC 9110): en or ru. The API picks the supported language with the highest q weight, ignoring case, and ru-RU counts as ru. If the header is missing or names no supported language, the labels are in en: this is not an error. Example: ru. | |
cabinet | string[] | Cabinets as Keys cabinet:<slug> or slugs, at most 50: only these Cabinets inside the Cabinet Boundary. Without this parameter, the response covers all Cabinets of the Cabinet Boundary. Example: cabinet:label-one. | |
limit | integer | 20 | The number of rows on the Page: 20 by default, at most 1000. A Page is at most 3 MB, so heavy rows can end the Page with nextCursor before limit rows. Example: 100. |
cursor | string | The nextCursor of the previous Page with the same Selection and order: the API returns the next Page. A cursor from another Selection or a damaged cursor returns invalid_input: start again without cursor. Example: WyJyZWxlYXNlcyIsImNhNDJreWlTRWVNYWNCVFMiLDAsIjIwMjYtMTAtMDMiLCJjMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiXQ. |
Response
A directory of Cabinets, ordered by name and then by slug. Cabinets without a name are ordered by slug.
| Field | Type | Description |
|---|---|---|
copyVersion | string | The Copy Version that the response was read from. Example: 100. |
ruleVersion | string | The version of the rules that the API applies to build Windows. When it changes, the meaning of saved Windows changes: discard the Windows you saved, including a persisted cache, and read them again. Example: 7372a7633e60b7b5. |
dataAsOf | string (date-time) | The time at which the Catalog Copy is correct, in ISO 8601 UTC. Example: 2026-09-29T07:00:00.000Z. |
items | object[] | The rows of the Page in the order of the Window: at most limit rows and at most 3 MB. |
items[].key | string | The Cabinet Key cabinet:<slug>. The cabinet parameter of Operations accepts it. Example: cabinet:label-one. |
items[].slug | string | The Cabinet slug in Release Management: a short readable name of the Cabinet. Example: label-one. |
items[].name | string | null | The Cabinet name. null means that Release Management has no name for it. |
nextCursor | string | The cursor of the next Page. Pass it in cursor with the same Selection and order. A response without nextCursor is the last Page of the Window. Example: WyJyZWxlYXNlcyIsImNhNDJreWlTRWVNYWNCVFMiLDAsIjIwMjYtMTAtMDMiLCJjMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDEiXQ. |
Errors
| Code | When | What to do |
|---|---|---|
invalid_input | The input failed validation (HTTP 422). | Fix the fields listed in errors and send the request again. |
unauthorized | The token was not accepted (HTTP 401). | Get a new M2M token for the machine and send the request again. |
forbidden | The machine is not allowed (HTTP 403). | Do not retry the request. The machine is not listed in MACHINES, or the scopes of its token do not include the API machine. |
not_found | The path or the Key was not found (HTTP 404). | If the response has details.key, the Catalog Copy has no item with that Key: find the item again with search. Otherwise the path does not exist: Operations are available at /api/v1/<name>, and /api/v1/openapi.json lists them. |
method_not_allowed | The method is not allowed (HTTP 405). | Send the request again with GET or HEAD: the API only reads, and the Allow header lists these methods. |
rate_limited | The machine made too many calls (HTTP 429). | Wait for the number of seconds in Retry-After, which is the time until the machine's next allowed call, and send the request again. |
timeout | The request did not finish in time (HTTP 504). | The API did not retry the request. Narrow it with a shorter period, a smaller limit or fewer Parts in include, and send it again: the same request will most likely exceed 5 s again. |
unavailable | The Catalog Copy is unavailable (HTTP 503). | Wait for the number of seconds in Retry-After and retry the request once. The connection to the Catalog Copy was lost, or the database is overloaded or starting after a pause, and the API has already retried once. |
internal | The API failed with an internal error (HTTP 500). | Do not retry the request: the API did not retry it, and the same request will fail the same way. Report the requestId. |
Example
curl -s "https://rm-api.ovkch.com/api/v1/cabinets" \
-H "Authorization: Bearer $TOKEN" \
-H "x-cabinets: label-one"