---
title: "List all databases. Filter by hosting_account_id."
method: GET
path: "/api/hosting-account/databases"
tags: ["Admin - Hosting Account Databases"]
---

# List all databases. Filter by hosting_account_id.

`GET /api/hosting-account/databases`

## Query parameters

- `hosting_account_id` integer, required

## Response `200`

List of databases

- HostingAccountDatabase[]
  - `id` integer — ID of the database
  - `hosting_account_id` integer — ID of the related hosting account
  - `database_name` string — Name of the database
  - `database_name_prefix` string — Prefix for the database name
  - `description` string, nullable — Description of the database (nullable)

## Other responses

- `400` — Hosting account ID is required
- `403` — Unauthorized access to hosting account
- `404` — No databases found

---

[API](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation.md) · [All operations](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adminbolt/adminbolt-api-documentation/revisions/bf4f36fbfbd3/schema)
