Status pages
Create a status page
Creates the page on <slug>.spectate.page; without a slug it is derived from the name. Add components next (createStatusPageComponent). The plan limits the number of pages (403 PLAN_LIMIT_REACHED); private pages, password protection and custom domains need a plan that includes them (403 PLAN_FEATURE_UNAVAILABLE). Escalation paths must belong to the team.
post/status-pages
Request
- Base URLhttps://api.spectate.net/v1
- AuthHTTP bearer
Request body
Example request
{
"name": "Acme status",
"slug": "acme",
"custom_domain": "status.acme.com",
"password": "correct-horse-battery",
"logo_link_url": "https://acme.com",
"contact_url": "mailto:support@acme.com",
"theme": {
"accent": "#0f766e",
"light": {
"background": "#ffffff",
"surface": "#f8fafc",
"foreground": "#0f172a",
"muted": "#64748b",
"border": "#e2e8f0",
"success": "#16a34a",
"warning": "#ca8a04",
"partial": "#ea580c",
"danger": "#dc2626",
"info": "#2563eb"
},
"dark": {
"background": "#ffffff",
"surface": "#f8fafc",
"foreground": "#0f172a",
"muted": "#64748b",
"border": "#e2e8f0",
"success": "#16a34a",
"warning": "#ca8a04",
"partial": "#ea580c",
"danger": "#dc2626",
"info": "#2563eb"
}
},
"automation_down_message": "We're looking into problems with {component}.",
"automation_recovered_message": "{component} is working again."
}Response
The new status page.
Example response
{
"name": "Acme status",
"slug": "acme",
"public_url": "https://acme.spectate.page",
"custom_domain": "status.acme.com",
"custom_domain_verification": {
"txt_record_name": "_spectate.status.example.com",
"txt_record_value": "spectate-verify=4f1c0c2e9b7a4d3f8e6a5b2c1d0e9f8a",
"cname_target": "4f1c0c2e9b7a4d3f.custom.spectate.page"
},
"logo_link_url": "https://acme.com",
"contact_url": "mailto:support@acme.com",
"theme": {
"accent": "#0f766e",
"light": {
"background": "#ffffff",
"surface": "#f8fafc",
"foreground": "#0f172a",
"muted": "#64748b",
"border": "#e2e8f0",
"success": "#16a34a",
"warning": "#ca8a04",
"partial": "#ea580c",
"danger": "#dc2626",
"info": "#2563eb"
},
"dark": {
"background": "#ffffff",
"surface": "#f8fafc",
"foreground": "#0f172a",
"muted": "#64748b",
"border": "#e2e8f0",
"success": "#16a34a",
"warning": "#ca8a04",
"partial": "#ea580c",
"danger": "#dc2626",
"info": "#2563eb"
}
},
"automation_down_message": "We're looking into problems with {component}.",
"automation_recovered_message": "{component} is working again.",
"escalation_paths": [
{
"name": "On-call engineers"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.