StatusDashboard
DashboardsCustom Code

Get dashboard custom code

Retrieve the custom code configuration for a dashboard.

View Markdown

GET /app/dashboards/{id}/custom-code

Returns the custom CSS, JavaScript, header HTML, and footer HTML for a dashboard. Requires the Custom Code 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/custom-code \
  -H "Authorization: Bearer bcf847abf5c6:def456"

Sample response

Status: 200 OK

{
  "css": "body { font-family: Inter, sans-serif; }",
  "js": "console.log('Status dashboard loaded');",
  "headerHtml": "<div class=\"banner\">Scheduled maintenance this weekend.</div>",
  "footerHtml": "<p>For urgent issues, contact support@acme.com</p>"
}

When no custom code has been set, returns { css: '', js: '', headerHtml: '', footerHtml: '' }.


Response fields

Same fields as Update dashboard custom code.


Error responses

StatusWhen
403Insufficient permissions, or the Custom Code 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.