---
title: "Get postgres credentials"
method: GET
path: "/api/projects/{projectName}/postgres/{postgresName}/credentials"
tags: ["postgres"]
---

# Get postgres credentials

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

## Request

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

## Path parameters

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

## Response `200`

OK

- PostgresCredentials
  - `hostname` string, required: The PostgreSQL hostname
  - `port` string, required: The PostgreSQL port
  - `username` string, required: The PostgreSQL username
  - `password` string, required: The PostgreSQL password
  - `database` string, required: The PostgreSQL database

## 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)
