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

# Get Company

Returns the details of the logged-in tenant.

The response includes some nested elements and overall statistics, like the number of assets the company controls (cabinets, batteries, etc) and details about its data centers and metric thresholds.

<Image align="center" border={false} caption="Overview of the company assets" src="https://files.readme.io/66887dbd117140e62ad994f8cac9b39eb51d0fb0b84a24b014a6793d224a0d43-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": {
    "/company": {
      "get": {
        "summary": "Get Company",
        "description": "Returns the details of the logged-in tenant.",
        "operationId": "getCompany",
        "tags": [
          "Standard"
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            }
          },
          "404": {
            "description": "Company not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Company": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 10
          },
          "name": {
            "type": "string",
            "example": "CompanyABC"
          },
          "thresholds": {
            "$ref": "#/components/schemas/ArrayOfThresholds"
          },
          "numberOfDatacenters": {
            "type": "integer",
            "example": 2,
            "format": "int64"
          },
          "numberOfCountries": {
            "type": "integer",
            "example": 2,
            "format": "int64"
          },
          "numberOfCabinets": {
            "type": "integer",
            "example": 2,
            "format": "int64"
          },
          "numberOfBatteries": {
            "type": "integer",
            "example": 2,
            "format": "int64"
          },
          "dataCenters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataCenter"
            }
          }
        }
      },
      "DataCenter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "example": 100000
          },
          "name": {
            "type": "string",
            "example": "DataCenterABC"
          },
          "companyId": {
            "type": "integer",
            "format": "int64",
            "example": 10
          },
          "countryCode": {
            "type": "string",
            "example": "US"
          },
          "cityName": {
            "type": "string",
            "example": "New York"
          },
          "groupName": {
            "type": "string",
            "example": "Manhattan"
          },
          "location": {
            "type": "string",
            "example": "37.926868, -78.024902"
          },
          "numberOfOffline": {
            "type": "integer",
            "example": 25,
            "format": "int64"
          },
          "numberOfAlerts": {
            "type": "integer",
            "example": 25,
            "format": "int64"
          },
          "numberOfWarnings": {
            "type": "integer",
            "example": 25,
            "format": "int64"
          },
          "numberOfStable": {
            "type": "integer",
            "example": 25,
            "format": "int64"
          }
        }
      },
      "ArrayOfThresholds": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/Threshold"
        }
      },
      "Threshold": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "low": {
            "type": "number",
            "format": "float"
          },
          "max": {
            "type": "number",
            "format": "float"
          }
        },
        "example": {
          "name": "voltage_warning",
          "low": 10,
          "max": 20
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ]
}
```