Get database
curl --request GET \
--url https://api.example.com/api/v2/tenants/{tenant}/databases/{database} \
--header 'x-chroma-token: <api-key>'import requests
url = "https://api.example.com/api/v2/tenants/{tenant}/databases/{database}"
headers = {"x-chroma-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-chroma-token': '<api-key>'}};
fetch('https://api.example.com/api/v2/tenants/{tenant}/databases/{database}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));false{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tenant": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Database
Get database
Returns a database by name.
GET
/
api
/
v2
/
tenants
/
{tenant}
/
databases
/
{database}
Get database
curl --request GET \
--url https://api.example.com/api/v2/tenants/{tenant}/databases/{database} \
--header 'x-chroma-token: <api-key>'import requests
url = "https://api.example.com/api/v2/tenants/{tenant}/databases/{database}"
headers = {"x-chroma-token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-chroma-token': '<api-key>'}};
fetch('https://api.example.com/api/v2/tenants/{tenant}/databases/{database}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));false{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"tenant": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Was this page helpful?