DashboardsWidget
Get dashboard widget
Retrieve the widget configuration for a dashboard.
GET /app/dashboards/{id}/widget
Returns the embeddable widget configuration for a dashboard. Also includes the dashboard's subdomain and customDomain fields needed to generate the widget embed script. Requires the Widget feature entitlement.
Path parameters
| Parameter | Description |
|---|---|
id | The UUID of the dashboard. |
Request
See API Basics for required headers.
This endpoint takes no request body.
Sample request
curl https://api.statusdashboard.com/app/dashboards/a1b2c3d4-e5f6-7890-abcd-ef1234567890/widget \
-H "Authorization: Bearer bcf847abf5c6:def456"Sample response
Status: 200 OK
{
"enabled": true,
"mode": "badge",
"title": "System Status",
"components": [],
"theme": {
"primaryColor": "#2d7a7b",
"backgroundColor": "#ffffff",
"textColor": "#111827"
},
"pollingInterval": 60,
"subdomain": "acme",
"customDomain": "status.acme.com",
"customDomainStatus": "active"
}The subdomain, customDomain, and customDomainStatus fields are included to allow generating the correct widget embed script URL.
Response fields
Same fields as Update dashboard widget, plus:
| Field | Type | Description |
|---|---|---|
subdomain | string | Dashboard subdomain slug (e.g. acme). Included so you can build the widget embed script URL. |
customDomain | string | omitted | Custom domain when configured. Omitted when unset. |
customDomainStatus | string | omitted | One of awaiting_dns, validating, active, removing, failed. Omitted when no custom domain is set. See Get dashboard domains. |
Error responses
| Status | When |
|---|---|
403 | Insufficient permissions, or the Widget feature is not enabled. |
404 | Dashboard not found or does not belong to the caller's organization. |

