GET
/
v1
/
apps
/
{id}
/
environments
Get Application Environments
curl --request GET \
  --url https://api.vertracloud.app/v1/apps/{id}/environments \
  --header 'Authorization: Bearer <token>'
{
  "status": "success",
  "response": [
    {
      "id": "env123",
      "key": "API_KEY",
      "value": "secret123",
      "note": "API key for external service",
      "created_at": "2025-08-14T19:58:00Z"
    },
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2025-08-14T19:58:00Z"
    }
  ]
}
id
string
required
The ID of the application to retrieve environment variables for. If the application belongs to an organization, include the organization ID in the format appId-orgId.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
response
array
An array of environment variable objects.
{
  "status": "success",
  "response": [
    {
      "id": "env123",
      "key": "API_KEY",
      "value": "secret123",
      "note": "API key for external service",
      "created_at": "2025-08-14T19:58:00Z"
    },
    {
      "id": "env456",
      "key": "DATABASE_URL",
      "value": "mysql://user:pass@localhost/db",
      "note": null,
      "created_at": "2025-08-14T19:58:00Z"
    }
  ]
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated or lacks sufficient permissions.
  • FORBIDDEN: The user does not have permission to access the application.
  • APP_NOT_FOUND: The specified application does not exist.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}