> ## Documentation Index
> Fetch the complete documentation index at: https://docs.korve.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# List

> List the project's databases across all environments — names and statuses, never credentials.



## OpenAPI

````yaml /openapi.json get /v1/orgs/{orgId}/projects/{projectId}/databases
openapi: 3.1.0
info:
  title: Korve API
  version: 0.1.0
  description: >-
    Typed control plane for deploying applications and explicitly provisioning
    their managed infrastructure.
servers:
  - url: https://api.korve.dev
security: []
paths:
  /v1/orgs/{orgId}/projects/{projectId}/databases:
    get:
      tags:
        - databases
      summary: List
      description: >-
        List the project's databases across all environments — names and
        statuses, never credentials.
      operationId: databases.list
      parameters:
        - name: orgId
          in: path
          required: true
          schema:
            type: string
          description: The organization's id (UUID) or slug — either form is accepted.
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: The project's id (UUID) or slug — either form is accepted.
        - name: environment
          in: query
          required: false
          schema:
            type: string
            pattern: ^[a-z][a-z0-9-]{0,38}$
          description: >-
            Environment slug to filter by. Omitted, databases from every
            environment are listed. An environment that does not exist on the
            project answers 404.
      responses:
        '200':
          description: Databases, oldest first.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                      pattern: ^[a-z][a-z0-9-]{1,61}$
                      description: >-
                        Customer-chosen database name — unique within the
                        environment. 2-62 chars of lowercase letters, digits,
                        and hyphens, starting with a letter.
                    environment:
                      type: string
                      pattern: ^[a-z][a-z0-9-]{0,38}$
                      description: Slug of the environment the database belongs to.
                    provider:
                      type: string
                      description: >-
                        Database backend generation the row lives on. Set at
                        provisioning.
                    sku:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Database SKU id (see the rate card via billing.get);
                        null on legacy databases.
                    targetSku:
                      type:
                        - string
                        - 'null'
                      description: >-
                        Requested SKU while a zero-downtime HA resize is
                        running; otherwise null.
                    allocatedStorageGb:
                      type:
                        - integer
                        - 'null'
                      description: >-
                        Actual allocated data-disk capacity; durable volumes
                        grow but do not shrink.
                    resize:
                      type:
                        - object
                        - 'null'
                      description: >-
                        Durable progress for an active rolling resize; null when
                        no resize is running.
                      properties:
                        direction:
                          type: string
                          enum:
                            - up
                            - down
                        phase:
                          type: string
                          enum:
                            - queued
                            - preparing
                            - growing-storage
                            - resizing-replicas
                            - switching-primary
                            - resizing-former-primary
                            - verifying
                            - retrying
                        progressPercent:
                          type: integer
                        startedAt:
                          type: string
                          format: date-time
                        estimatedCompletedAt:
                          type: string
                          format: date-time
                      required:
                        - direction
                        - phase
                        - progressPercent
                        - startedAt
                        - estimatedCompletedAt
                    region:
                      type: string
                      description: >-
                        Database region id (see regions.list). Immutable after
                        provisioning.
                    status:
                      type: string
                      enum:
                        - provisioning
                        - resizing
                        - ready
                        - failed
                    replicas:
                      type: integer
                      enum:
                        - 0
                        - 2
                      description: >-
                        Topology: 0 creates a single-node database; 2 creates
                        one primary plus two data replicas with synchronous
                        quorum commits and continuous recovery.
                    createdAt:
                      type: string
                      format: date-time
                  required:
                    - id
                    - name
                    - environment
                    - provider
                    - sku
                    - targetSku
                    - allocatedStorageGb
                    - resize
                    - region
                    - status
                    - replicas
                    - createdAt
        '404':
          description: No such project or environment in this organization.
      security:
        - apiKey: []
        - session: []
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: korve_api_key
    session:
      type: apiKey
      in: cookie
      name: korve.session_token

````