> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Application Environment Variables

> Retrieves all environment variables for an application by its ID.

<ParamField path="id" type="string" required>
  The application ID to retrieve environment variables. If the application belongs to a workspace, include the workspace ID in the format `appId-workspaceId`.
</ParamField>

### Response

<ResponseField name="response" type="array">
  An array of environment variable objects.

  <Expandable title="Toggle object">
    <ResponseField name="id" type="string">
      The environment variable ID.
    </ResponseField>

    <ResponseField name="key" type="string">
      The environment variable key.
    </ResponseField>

    <ResponseField name="value" type="string">
      The environment variable value (decrypted).
    </ResponseField>

    <ResponseField name="note" type="string | null">
      The optional note or description for the environment variable.
    </ResponseField>

    <ResponseField name="created_at" type="string" format="date-time">
      The timestamp when the environment variable was created.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "response": [
      {
        "id": "env-abc123",
        "key": "API_KEY",
        "value": "secret123",
        "note": "API key for external service",
        "created_at": "2026-03-20T19:58:00Z"
      },
      {
        "id": "env-xyz789",
        "key": "DATABASE_URL",
        "value": "mysql://user:pass@localhost/db",
        "note": null,
        "created_at": "2026-03-20T19:58:00Z"
      }
    ]
  }
  ```
</ResponseExample>

### Error Responses

<ResponseField name="code" type="string">
  The error code indicating the reason for the failure. Possible values:

  * `UNAUTHORIZED`: The user is not authenticated or does not have sufficient permissions.
  * `FORBIDDEN`: The user does not have permission to access the application.
  * `APP_NOT_FOUND`: The specified application does not exist.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message providing additional details about the error.
</ResponseField>

<ResponseExample>
  ```json Error Response (403) theme={null}
  {
    "code": "UNAUTHORIZED"
  }
  ```

  ```json Error Response (404) theme={null}
  {
    "code": "APP_NOT_FOUND"
  }
  ```
</ResponseExample>
