---
title: "Get environment variables for Postgres"
method: GET
path: "/api/projects/{projectName}/postgres/{postgresName}/env"
tags: ["postgres", "env"]
---

# Get environment variables for Postgres

`GET /api/projects/{projectName}/postgres/{postgresName}/env`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/postgres/{postgresName}/env`
- Auth: HTTP bearer

Returns environment variables for a specific Postgres instance

## Path parameters

- `projectName` string, required
- `postgresName` string, required

## Response `200`

OK

- EnvVar[]
  - `name` string, required: The env var name
  - `value` string, required: The env var value

## Other responses

- `401`: User is not authorized
- `404`: Postgres not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
