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,
"allow_attach": false,
"regions": [
"lhr",
"bos",
"nrt"
],
"primaryRegion": "lhr",
"type": "logical",
"version": "0.22.22",
"group": "default",
"is_schema": false,
"schema": "",
"archived": 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
The current status for allowing the database to be attached to another.
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 string representing the object type.
"logical"
The current libSQL version the database is running.
"0.22.22"
The name of the group the database belongs to.
"default"
If this database controls other child databases then this will be true
. See Multi-DB Schemas.
false
The name of the parent database that owns the schema for this database. See Multi-DB Schemas.
""
The current status of the database. If true
, the database is archived and requires a manual unarchive step.
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,
"allow_attach": false,
"regions": [
"lhr",
"bos",
"nrt"
],
"primaryRegion": "lhr",
"type": "logical",
"version": "0.22.22",
"group": "default",
"is_schema": false,
"schema": "",
"archived": false
}
}