Datasource APIs
List Datasources
Retrieve a list of all datasources in your organization. Supports optional pagination for large datasets.
GET
Get a list of all datasources configured in your organization. Useful for managing datasources, verifying configurations, and identifying datasource names for use in other APIs.
This endpoint returns all datasources you have access to within your organization. The response includes only the datasource names for security reasons - full credentials are never returned.
Endpoint
Self-hosted Databrain Endpoint
Authentication
This endpoint requires a service token in the Authorization header. Service tokens differ from data app API keys and provide organization-level permissions. To access your service token:- In Settings page, navigate to the Service Tokens section.
- Click the “Generate Token” button to create a new service token if you don’t have one already.
Headers
Bearer token for API authentication. Use your service token.
Query Parameters
Enable pagination for the results. Pass
"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).Page number to retrieve (1-based). Only used when
isPagination is "true". Must be a numeric string (e.g., "1", "2", "3").Response
Array of datasource objects. Each object contains only the datasource name for security reasons.
The name of the datasource. This name can be used in other APIs to reference the datasource.
Error field, null when successful. Not included in successful responses.
Examples
Error Codes
| 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 |
Next Steps
Create Datasource
Create new datasources for your organization
Update Datasource
Update existing datasource credentials
Delete Datasource
Remove datasources you no longer need
Sync Datasource
Sync datasource schema after changes

