Skip to main content

Dashboards

Create, read, update, and delete dashboards within your projects.

List All Dashboards

List dashboards across all projects in the workspace.

HTTP Request:

GET /api/v1/dashboards/list?scope=user

Query Parameters:

ParameterTypeRequiredDescription
scopestringNoDatabase scope. Default: "user"

Response:

{
"data": [
{
"id": "dashboard-uuid",
"project_id": "project-uuid",
"name": "My Dashboard",
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-04-10T14:20:00Z"
}
],
"message": "All dashboards listed successfully",
"status": "success"
}

List Project Dashboards

List dashboards within a specific project (metadata only, no full definitions).

HTTP Request:

GET /api/v1/dashboards/{project_id}/list?scope=user

Path Parameters:

ParameterTypeRequiredDescription
project_idstringYesThe ID of the project

Query Parameters:

ParameterTypeRequiredDescription
scopestringNoDatabase scope. Default: "user"

Get Dashboard

Load a single dashboard with its full definition.

HTTP Request:

GET /api/v1/dashboards/{project_id}/{dashboard_id}?scope=user

Path Parameters:

ParameterTypeRequiredDescription
project_idstringYesThe ID of the project
dashboard_idstringYesThe ID of the dashboard

Query Parameters:

ParameterTypeRequiredDescription
scopestringNoDatabase scope. Default: "user"

Save Dashboard

Create or update a dashboard. When dashboard.id is omitted, a new UUID is generated server-side.

HTTP Request:

POST /api/v1/dashboards/{project_id}/save

Path Parameters:

ParameterTypeRequiredDescription
project_idstringYesThe ID of the project

Request Body:

{
"scope": "user",
"dashboard": {
"id": "existing-dashboard-id",
"name": "My Dashboard",
"definition": { }
}
}
FieldTypeRequiredDescription
scopestringNoDatabase scope. Default: "user"
dashboardobjectYesThe dashboard definition object

Response:

{
"data": { "id": "dashboard-uuid" },
"message": "Dashboard 'dashboard-uuid' saved successfully",
"status": "success"
}

Delete Dashboard

Permanently delete a dashboard.

HTTP Request:

DELETE /api/v1/dashboards/{project_id}/{dashboard_id}?scope=user

Path Parameters:

ParameterTypeRequiredDescription
project_idstringYesThe ID of the project
dashboard_idstringYesThe ID of the dashboard

Query Parameters:

ParameterTypeRequiredDescription
scopestringNoDatabase scope. Default: "user"

Complete Workflow Example

# 1. List all dashboards
curl -X GET "https://api.prometheux.ai/jarvispy/my-org/my-user/api/v1/dashboards/list?scope=user" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

# 2. Save a new dashboard
curl -X POST "https://api.prometheux.ai/jarvispy/my-org/my-user/api/v1/dashboards/my-project-id/save" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-d '{
"scope": "user",
"dashboard": {
"name": "Sales Overview",
"definition": { }
}
}'

# 3. Load a dashboard
curl -X GET "https://api.prometheux.ai/jarvispy/my-org/my-user/api/v1/dashboards/my-project-id/dashboard-uuid?scope=user" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"

# 4. Delete a dashboard
curl -X DELETE "https://api.prometheux.ai/jarvispy/my-org/my-user/api/v1/dashboards/my-project-id/dashboard-uuid?scope=user" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"