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));