Resources
Organizations
- Organizations
- Members
- Invites
- Audit Logs
API Tokens
- API Tokens
Retrieve Database
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
}
}
curl -L 'https://api.turso.tech/v1/organizations/{organizationSlug}/databases/{databaseName}' \
-H 'Authorization: Bearer TOKEN'
Path Parameters
The slug of the organization or user account.
The name of the database.
Response
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?
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
}
}