Embedding APIs
Retrieve dashboards and metrics from workspaces
Overview
The Databrain API provides endpoints for retrieving dashboards and metrics from workspaces in both Cloud Databrain and self-hosted Databrain environments. To use the API, you need to pass a workspaceName
along with other optional parameters.
API Endpoints
Cloud Databrain Endpoint
Self-hosted Databrain Endpoint
Headers
Authorization*
String
API Methods
Fetch Dashboards by Workspace
Endpoint:
Request Body:
Response:
Error Response:
Fetch Metrics by Workspace
Endpoint:
Request Body:
Response:
Error Response:
Error Codes
INVALID_REQUEST_BODY: The request body is invalid.
WORKSPACE_ID_ERROR: The workspace name provided does not exist.
Validation Schema
The request body must conform to the following schema:
workspaceName
(required): Name of the workspace.isPagination
(optional): Boolean flag to enable pagination.pageNumber
(optional): Page number when pagination is enabled.
Example Use Cases
Fetching Dashboards
Request
Response
Fetching Metrics
Request
Response
Fetch Metrics by Workspace and Dashboard
Endpoint:
Request Body:
Response:
Error Response:
Error Codes
INVALID_REQUEST_BODY: The request body is invalid.
WORKSPACE_ID_ERROR: The workspace name provided does not exist.
DASHBOARD_PARAM_ERROR: The provided
dashboardId
is not valid or does not exist in the given workspace.
Validation Schema The request body must conform to the following schema:
workspaceName (required): Name of the workspace.
dashboardId (required): Dashboard identifier.
isPagination (optional): Boolean flag to enable pagination.
pageNumber (optional): Page number when pagination is enabled.
Example Use Cases
Fetching Metrics by Workspace and Dashboard
Request:
Response:
Last updated