curl -L 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}' \
-H 'Authorization: Bearer TOKEN'
{
"database": {
"Name": "my-db",
"DbId": "0eb771dd-6906-11ee-8553-eaa7715aeaf2",
"Hostname": "[databaseName]-[organizationSlug].turso.io",
"block_reads": false,
"block_writes": false,
"regions": [
"lhr",
"bos",
"nrt"
],
"primaryRegion": "lhr",
"group": "default",
"delete_protection": false,
"parent": {
"id": "<string>",
"name": "<string>",
"branched_at": "2025-04-15T13:14:34.468213117Z"
}
}
}Returns a database belonging to the organization or user.
curl -L 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}' \
-H 'Authorization: Bearer TOKEN'
{
"database": {
"Name": "my-db",
"DbId": "0eb771dd-6906-11ee-8553-eaa7715aeaf2",
"Hostname": "[databaseName]-[organizationSlug].turso.io",
"block_reads": false,
"block_writes": false,
"regions": [
"lhr",
"bos",
"nrt"
],
"primaryRegion": "lhr",
"group": "default",
"delete_protection": false,
"parent": {
"id": "<string>",
"name": "<string>",
"branched_at": "2025-04-15T13:14:34.468213117Z"
}
}
}curl -L 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}' \
-H 'Authorization: Bearer TOKEN'
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The slug of the organization or user account.
The name of the database.
Successful response
Show child attributes
The database name, unique across your organization.
"my-db"
The database universal unique identifier (UUID).
"0eb771dd-6906-11ee-8553-eaa7715aeaf2"
The DNS hostname used for client libSQL and HTTP connections.
"[databaseName]-[organizationSlug].turso.io"
The current status for blocked reads.
false
The current status for blocked writes.
false
A list of regions for the group the database belongs to.
["lhr", "bos", "nrt"]The primary region location code the group the database belongs to.
"lhr"
The name of the group the database belongs to.
"default"
The current status for delete protection. If enabled, the database cannot be deleted.
false
Was this page helpful?