curl --request GET \
--url https://api.usedatabrain.com/api/v2/datasource \
--header 'Authorization: Bearer dbn_live_abc123...'
{
"data": [
{
"name": "production-postgres"
},
{
"name": "analytics-snowflake"
},
{
"name": "warehouse-bigquery"
}
]
}
curl --request GET \
--url https://api.usedatabrain.com/api/v2/datasource \
--header 'Authorization: Bearer dbn_live_abc123...'
{
"data": [
{
"name": "production-postgres"
},
{
"name": "analytics-snowflake"
},
{
"name": "warehouse-bigquery"
}
]
}
Retrieve a list of all datasources in your organization. Supports optional pagination for large datasets.
curl --request GET \
--url https://api.usedatabrain.com/api/v2/datasource \
--header 'Authorization: Bearer dbn_live_abc123...'
{
"data": [
{
"name": "production-postgres"
},
{
"name": "analytics-snowflake"
},
{
"name": "warehouse-bigquery"
}
]
}
curl --request GET \
--url https://api.usedatabrain.com/api/v2/datasource \
--header 'Authorization: Bearer dbn_live_abc123...'
{
"data": [
{
"name": "production-postgres"
},
{
"name": "analytics-snowflake"
},
{
"name": "warehouse-bigquery"
}
]
}
GET https://api.usedatabrain.com/api/v2/datasource
GET <SELF_HOSTED_URL>/api/v2/datasource
Authorization: Bearer dbn_live_abc123...
"true" to enable pagination with a limit of 10 datasources per page.Note: Query parameters are passed as strings. Use "true" or "false" (not boolean values).isPagination is "true". Must be a numeric string (e.g., "1", "2", "3").Show Pagination details
"1" (not "0")isPagination is "true"| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Invalid pagination parameters |
AUTHENTICATION_ERROR | 401 | Invalid or missing service token |
INTERNAL_SERVER_ERROR | 500 | Server error occurred |