---
title: "Retrieve Database"
method: GET
path: "/v1/organizations/{organizationSlug}/databases/{databaseName}"
---

# Retrieve Database

`GET /v1/organizations/{organizationSlug}/databases/{databaseName}`

Returns a database belonging to the organization or user.

## Path parameters

- `organizationSlug` string, required
- `databaseName` string, required

## Response `200`

Successful response

- object
  - `database` Database
    - `Name` string — The database name, **unique** across your organization.
    - `DbId` string — The database universal unique identifier (UUID).
    - `Hostname` string — The DNS hostname used for client libSQL and HTTP connections.
    - `block_reads` boolean — The current status for blocked reads.
    - `block_writes` boolean — The current status for blocked writes.
    - `regions` string[] — A list of regions for the group the database belongs to.
    - `primaryRegion` string — The primary region location code the group the database belongs to.
    - `group` string — The name of the group the database belongs to.
    - `delete_protection` boolean — The current status for delete protection. If enabled, the database cannot be deleted.
    - `parent` object, nullable
      - `id` string — The parent database identifier.
      - `name` string — The name of the parent database.
      - `branched_at` string, date-time — The timestamp when the database was branched from the parent.

## Other responses

- `404` — Database not found

---

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