---
updatedAt: 2025-07-02T09:02:12.000Z
agentTools:
  projectIndex: https://docs.vitro.io/llms.txt
---

# Get cabinet

Returns a single cabinet by its identifier.

The cabinet API

![](https://files.readme.io/ab43330ca146d4fddb8a1c282acae9904e7692360906eb31f6557d40e80baf4c-image.png)

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Astra HTTP API",
    "description": "API Specification for the ASTRA backend, which will expose datacenters and battery information for the UI application to construct dashboards. ",
    "contact": {
      "email": "rafal@kult.io"
    },
    "version": "1.0-BETA"
  },
  "servers": [
    {
      "url": "https://api.dev.vitro.link/api/",
      "description": "Development"
    }
  ],
  "tags": [
    {
      "name": "Standard"
    }
  ],
  "paths": {
    "/cabinet/{cabinetId}": {
      "get": {
        "summary": "Get cabinet",
        "description": "Returns a single cabinet by its identifier.",
        "operationId": "getCabinetById",
        "tags": [
          "Standard"
        ],
        "parameters": [
          {
            "name": "cabinetId",
            "in": "path",
            "description": "ID of cabinet to return",
            "required": true,
            "schema": {
              "type": "string",
              "example": "012340C7B4CDD8F4EE"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cabinet"
                }
              }
            }
          },
          "400": {
            "description": "Invalid ID supplied"
          },
          "404": {
            "description": "Cabinet not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Cabinet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 100000
          },
          "dataCenterId": {
            "type": "integer",
            "format": "int64",
            "example": 100000
          },
          "group": {
            "type": "string",
            "example": "Building 1"
          },
          "name": {
            "type": "string",
            "example": 1
          },
          "numberOfShelves": {
            "type": "integer",
            "format": "int64",
            "example": 4
          },
          "shelvesCapacity": {
            "type": "integer",
            "format": "int64",
            "example": 6
          },
          "numberOfAlerts": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "numberOfWarnings": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "numberOfOffline": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "numberOfStable": {
            "type": "integer",
            "format": "int64",
            "example": 1
          },
          "currentTotalVoltage": {
            "type": "number",
            "format": "float",
            "example": 255.4
          },
          "offlineSinceTimestamp": {
            "type": "number",
            "format": "int64",
            "example": 16938354540
          },
          "offlineSinceDatetime": {
            "type": "string",
            "example": "2013-03-01T13:05:16",
            "format": "datetime"
          },
          "latestHeartbeat": {
            "type": "string",
            "example": "2013-03-01T13:05:16",
            "format": "datetime"
          },
          "lastStatus": {
            "type": "string",
            "enum": [
              "OK",
              "WARNING",
              "ALERT",
              "OFFLINE",
              "UNKNOWN"
            ]
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```