curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/export-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{"dashboardId":"sales-dashboard-1","workspaceName":"Sales Workspace"}' \
--output dashboard-sales-dashboard-1.json
{
"_meta": {
"exportedAt": "2025-02-13T10:00:00.000Z",
"workspaceName": "Sales Workspace",
"dashboardId": "sales-dashboard-1"
},
"data": {
"layout": [...],
"filters": [...],
...
}
}
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/export-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{"dashboardId":"sales-dashboard-1","workspaceName":"Sales Workspace"}' \
--output dashboard-sales-dashboard-1.json
{
"_meta": {
"exportedAt": "2025-02-13T10:00:00.000Z",
"workspaceName": "Sales Workspace",
"dashboardId": "sales-dashboard-1"
},
"data": {
"layout": [...],
"filters": [...],
...
}
}
Export a dashboard from a workspace as a JSON file for backup, migration, or import into another workspace.
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/export-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{"dashboardId":"sales-dashboard-1","workspaceName":"Sales Workspace"}' \
--output dashboard-sales-dashboard-1.json
{
"_meta": {
"exportedAt": "2025-02-13T10:00:00.000Z",
"workspaceName": "Sales Workspace",
"dashboardId": "sales-dashboard-1"
},
"data": {
"layout": [...],
"filters": [...],
...
}
}
curl --request POST \
--url 'https://api.usedatabrain.com/api/v2/data-app/export-dashboard' \
--header 'Authorization: Bearer dbn_live_...' \
--header 'Content-Type: application/json' \
--data '{"dashboardId":"sales-dashboard-1","workspaceName":"Sales Workspace"}' \
--output dashboard-sales-dashboard-1.json
{
"_meta": {
"exportedAt": "2025-02-13T10:00:00.000Z",
"workspaceName": "Sales Workspace",
"dashboardId": "sales-dashboard-1"
},
"data": {
"layout": [...],
"filters": [...],
...
}
}
Authorization header. See Create Service Token for how to obtain a service token.
Authorization: Bearer dbn_live_...
application/json when sending a JSON body.Content-Type: application/json
application/jsonattachment; filename="dashboard-{dashboardId}.json"importDashboardData.error.code and error.message.
| Status Code | Description |
|---|---|
200 | OK – Dashboard exported successfully; response is a JSON file (attachment) |
400 | Bad Request – Invalid or missing parameters, invalid token, or dashboard/workspace not found |
500 | Internal Server Error – Server error during export |
| Code | Message | HTTP Status |
|---|---|---|
INVALID_REQUEST_BODY | Joi validation message (e.g. "dashboardId" is required) | 400 |
AUTH_ERROR | Invalid Service Token | 400 |
DATA_APP_NOT_FOUND | Data app not found | 400 |
INTERNAL_SERVER_ERROR | Server error message | 500 |
dashboardId values