StatusDashboard
DashboardsWidget

Get dashboard widget

Retrieve the widget configuration for a dashboard.

View Markdown

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

ParameterDescription
idThe 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:

FieldTypeDescription
subdomainstringDashboard subdomain slug (e.g. acme). Included so you can build the widget embed script URL.
customDomainstring | omittedCustom domain when configured. Omitted when unset.
customDomainStatusstring | omittedOne of awaiting_dns, validating, active, removing, failed. Omitted when no custom domain is set. See Get dashboard domains.

Error responses

StatusWhen
403Insufficient permissions, or the Widget feature is not enabled.
404Dashboard not found or does not belong to the caller's organization.

On this page

We use cookies

We use essential cookies to keep the site working, and optional analytics cookies to understand how it's used. Read our Privacy Policy.