---
title: "List all databases for a project"
method: GET
path: "/projects/{id}/databases"
tags: ["Databases"]
---

# List all databases for a project

`GET /projects/{id}/databases`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/databases`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Supports two mutually exclusive pagination modes. Offset mode uses `page`
and `limit`. Cursor mode uses `cursor` and `limit`, supports `search`
(case-insensitive name match), and returns `next_cursor`/`prev_cursor`.
The optional `status` filter applies in both modes and is bound to the
cursor. Sending both `page` and `cursor` (or `page` and `search`) returns 400.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `page` integer
- `limit` integer
- `cursor` string
- `ending_before` string
- `offset` integer
- `search` string
- `status` 'provisioning' | 'active' | 'restoring' | 'failed' | 'deleting'

## Response `200`

Successful response

- PaginatedDatabases
  - `data` Database[], required
    - `id` string, uuid, required
    - `project_id` string, uuid, required
    - `name` string, required: Database name
    - `status` 'provisioning' | 'active' | 'failed' | 'restoring' | 'deleting', required: Database status. `restoring` means a restore is replacing the database's data: it does not accept connections, and the operations that would race the restore are rejected until it finishes. Its branches keep serving throughout.
    - `provisioning_started_at` string, date-time: Timestamp when the current provisioning phase started
    - `connection_string` string: Secure PostgreSQL connection URI for your database. The database is identified by the globally-unique username (`volcano_client_{database_id}`) already in this URI; the `application_name` parameter only selects the access mode: - `volcano_full_access` — Full admin access (DDL, migrations) - `volcano_user_access:{user_id}` — User impersonation (RLS enforced) - `volcano_user_access` — Anonymous access (anon role, RLS enforced)
    - `region` string: Region where the database is hosted
    - `pg_version` string: PostgreSQL major version
    - `database_type` 'volcano-db-xs' | 'volcano-db-s' | 'volcano-db-m' | 'volcano-db-l' | 'volcano-db-xl' | 'volcano-db-2xl': Database size tier that determines available RAM and scaling limits.
    - `storage_bytes` integer: Latest observed storage for this database, in bytes: its own on-disk size, plus what each branch has diverged from it, plus what its backups cost to hold. This is the figure the storage allowance is enforced against, and the stats endpoint breaks it down. A point-in-time gauge recorded by a background pass, so it may be absent until the database has been sampled, and it can trail the stats endpoint's `current_storage_bytes`, which measures on request. Summing the latest samples for every database in a project produces the project's "Database Storage (Bytes)" usage gauge. Populated on database list responses; single-database responses omit it.
    - `last_invoked_at` string, date-time: Most recent request timestamp for this database
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
  - `page` integer, required: Current page number (1-indexed)
  - `limit` integer, required: Number of items per page
  - `total` integer, required: Total number of items across all pages
  - `has_more` boolean, required: Whether there are more pages available
  - `next` string: URL path to next page (only present if has_more is true)
  - `next_cursor` string: Opaque cursor for the next page (cursor pagination only; present if has_more is true)
  - `prev_cursor` string: Opaque cursor for the previous page (cursor pagination only; present when a previous page exists). Send as `ending_before`.

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 2 breaking, 14 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `200`
  - added the new optional `query` request parameter `cursor`
  - added the new optional `query` request parameter `ending_before`
  - …12 more
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - added the new optional `query` request parameter `status`
- **2026-08-27** `bb44e98aba2e`: 6 breaking, 10 warning
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `data` from the response with the `200` status
  - removed the required property `has_more` from the response with the `200` status
  - removed the required property `limit` from the response with the `200` status
  - …12 more
- **2026-07-27** `bb52784e098a`: 6 info
  - added the new optional `query` request parameter `cursor`
  - added the new optional `query` request parameter `ending_before`
  - added the new optional `query` request parameter `offset`
  - added the new optional `query` request parameter `search`
  - …2 more

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/databases/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
