---
title: "Gets the project variables associated with the tenant."
method: GET
path: "/tenants/{tenantId}/projectvariables"
tags: ["Tenants"]
---

# Gets the project variables associated with the tenant.

`GET /tenants/{tenantId}/projectvariables`

## Path parameters

- `tenantId` string, required

## Query parameters

- `includeMissingVariables` boolean

## Response `200`

The project variables associated with a tenant.

- GetProjectVariablesByTenantIdResponse
  - `ConcurrencyToken` string, required
  - `MissingVariables` MissingTenantProjectVariable[]
    - `ProjectId` string, required
    - `ProjectName` string
    - `Scope` ProjectVariableScope, required
      - `EnvironmentIds` string[], required
    - `Template` ActionTemplateParameterResource
      - `DefaultValue` PropertyValueResource
        - `IsSensitive` boolean
        - `SensitiveValue` SensitiveValue
          - `HasValue` boolean
          - `Hint` string
          - `NewValue` string
        - `Value` string
      - `DisplaySettings` object
      - `HelpText` string
      - `Id` string
      - `Label` string
      - `Name` string
    - `TemplateId` string, required
    - `Value` PropertyValueResource, required
      - `IsSensitive` boolean
      - `SensitiveValue` SensitiveValue
        - `HasValue` boolean
        - `Hint` string
        - `NewValue` string
      - `Value` string
  - `TenantId` string, required
  - `Variables` TenantProjectVariableV2[], required
    - `Id` string, required
    - `ProjectId` string, required
    - `ProjectName` string
    - `Scope` ProjectVariableScope, required
      - `EnvironmentIds` string[], required
    - `Template` ActionTemplateParameterResource
      - `DefaultValue` PropertyValueResource
        - `IsSensitive` boolean
        - `SensitiveValue` SensitiveValue
          - `HasValue` boolean
          - `Hint` string
          - `NewValue` string
        - `Value` string
      - `DisplaySettings` object
      - `HelpText` string
      - `Id` string
      - `Label` string
      - `Name` string
    - `TemplateId` string, required
    - `Value` PropertyValueResource, required
      - `IsSensitive` boolean
      - `SensitiveValue` SensitiveValue
        - `HasValue` boolean
        - `Hint` string
        - `NewValue` string
      - `Value` string

## Other responses

- `400` — Bad request. Either the payload was not structurally valid or business rules did not permit the operation.
- `404` — Not found. One or more of the entities involved in the operation was not found.

---

[API](https://skmtc.net/octopus/apis/octopus-server-api.md) · [All operations](https://skmtc.net/octopus/apis/octopus-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/octopus/octopus-server-api/versions/835047dab520/schema)
