Get Project Dashboard Data
The ID of the project whose dashboard data to retrieve
Request
Authentication
Requires an active session. Users can only access dashboard data for projects they own.Response
Complete project information including connections
Project identifier
Project title
Project description
Public visibility status
Public sharing ID (null if not public)
Array of widget IDs in display order
Array of decrypted database connection objects
Array of database connection objects (same as project.databases)
Array of widget IDs in their display order
Example
Database connection passwords are always returned as empty strings for security. The schemas object only includes connections that have been successfully validated and introspected.
Update Widget Order
The ID of the project whose widget order to update
Array of widget IDs in the desired display order
Request
Authentication
Requires an active session. Only the project owner can update widget order.Request Body
Response
Indicates if the operation was successful
Example
The widget order determines how widgets are displayed on the project dashboard. The order is preserved in the project’s
orderedWidgetIds field.Use Cases
Loading a Dashboard
To load a complete dashboard with all necessary data:-
Call
GET /api/projects/{projectId}/dashboardto fetch:- Project metadata and settings
- All widgets with their configurations
- Database schemas for building queries
- Widget display order
-
Use the
orderedWidgetIdsarray to display widgets in the correct order -
Reference the
schemasobject when building or editing SQL queries
Reordering Widgets
When users drag and drop widgets to reorder them:- Update the local state with the new order
- Call
PUT /api/projects/{projectId}/widgets/orderwith the neworderedWidgetIdsarray - The dashboard will reflect the new order on next load
Security Considerations
- Database credentials are encrypted in the database
- Passwords are never returned in API responses (always empty strings)
- Only validated database connections are included in schemas
- SQL queries are executed server-side to prevent direct database access
