List data source catalog
curl --request GET \
--url https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "schema",
"id": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"displayName": "<string>",
"description": "<string>",
"descriptionInDb": "<string>",
"visible": true,
"dataType": "<string>"
}
],
"pagination": {
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "RateLimitExceeded",
"detail": "<string>",
"retryAfterMs": 123,
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}Data Sources
List data source catalog
Lists a data source’s schemas, tables and columns as found by its last schema sync, with the AI context (description), display names and visibility set on them in Basedash. Requires admin access to the organization.
Objects are listed schemas first, then tables, then columns, and the order within each kind is stable but not alphabetical. Hidden objects are listed with visible: false. Objects dropped from the database are not listed.
AI sees both description and the database comment (descriptionInDb); only description can be changed, with the update endpoint.
GET
/
api
/
public
/
organizations
/
{orgId}
/
data-sources
/
{id}
/
catalog
List data source catalog
curl --request GET \
--url https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog \
--header 'Authorization: Bearer <token>'import requests
url = "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://charts.basedash.com/api/public/organizations/{orgId}/data-sources/{id}/catalog")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"kind": "schema",
"id": "<string>",
"schemaName": "<string>",
"tableName": "<string>",
"columnName": "<string>",
"displayName": "<string>",
"description": "<string>",
"descriptionInDb": "<string>",
"visible": true,
"dataType": "<string>"
}
],
"pagination": {
"nextCursor": "<string>",
"hasMore": true
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "RateLimitExceeded",
"detail": "<string>",
"retryAfterMs": 123,
"code": "<string>",
"ip": "<string>"
}
}{
"error": {
"title": "<string>",
"detail": "<string>",
"code": "<string>",
"ip": "<string>"
}
}