DashboardsCustom Code
Get dashboard custom code
Retrieve the custom code configuration for a dashboard.
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
| 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/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
| Status | When |
|---|---|
403 | Insufficient permissions, or the Custom Code feature is not enabled. |
404 | Dashboard not found or does not belong to the caller's organization. |

