---
title: "GET /api/sql-databases"
method: GET
path: "/api/sql-databases"
tags: ["sql-databases"]
---

# GET /api/sql-databases

`GET /api/sql-databases`

## Request

- The document declares no server URL.
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/fermyon/apis/fermyon-cloud-api/docs/api/sql-databases/get.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `appId` string, uuid

## Headers

- `Api-Version` string

## Request body

- GetSqlDatabasesQuery
  - `appId` string, uuid, nullable

## Response `200`

Success

- DatabasesList
  - `databases` Database[], required
    - `name` string, required
    - `default` boolean
    - `links` ResourceLabel[], required
      - `label` string, required
      - `appId` string, uuid, required
      - `appName` string

## Changes

- **2024-01-18** `902971e033f7`: 2 info
  - added the new optional `query` request parameter `appId`
  - request body became optional
- **2023-09-28** `da6d9622301d`: 3 breaking, 3 info
  - the response property `databases/items/default` became optional for the status `200` (media type: text/plain)
  - the response property `databases/items/default` became optional for the status `200` (media type: application/json)
  - the response property `databases/items/default` became optional for the status `200` (media type: text/json)
  - added the required property `databases/items/links` to the response with the `200` status (media type: text/plain)
  - …2 more
- **2023-07-21** `a75f8f8ae123`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/changes/api/sql-databases/get.md)

---

[API](https://skmtc.dev/fermyon/apis/fermyon-cloud-api.md) - [All operations](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fermyon/apis/fermyon-cloud-api/revisions/78d366daf86a?raw)
