We are currently investigating this incident.
", "status": "INVESTIGATING", "notify": true, "started": "2020-09-12T19:05:17.398Z", "ended": null, "duration": 228, "createdAt": "2020-09-12T19:08:50.160Z" }, { "id": "ckf01mnk9eaui0a32mmhgq68g", "message": "This incident has been resolved.", "messageHtml": "This incident has been resolved.
", "status": "RESOLVED", "notify": true, "started": "2020-09-12T19:09:04.498Z", "ended": null, "duration": null, "createdAt": "2020-09-12T19:09:13.545Z" } ], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "PARTIALOUTAGE", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null }, "customImpactPercentage": 40 } ], "user": { "id": "ckf01g7m4eaqb0a32fl7jl1xx", "name": "Buzz Aldrin", "email": "buzz@nasa.com" } } ] ``` You can add `status` and `!status` query parameters to restrict the results to incidents that have or have not (respectively) one of comma-separated status list. `user` is the team member who created the incident. It is `null` when the incident was created automatically (by a monitor, third-party integration, or email). ## Get an incident **Endpoint:** ```bash GET /v1/:page_id/incidents/:incident_id ``` **Example response:** ```json { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "status": "RESOLVED", "started": "2020-09-12T19:05:17.398Z", "resolved": "2020-09-12T19:09:04.498Z", "updates": [ { "id": "ckf01m5ioeaqi0a32jtv8ovp8", "message": "We are currently investigating this incident.", "messageHtml": "We are currently investigating this incident.
", "status": "INVESTIGATING", "notify": true, "started": "2020-09-12T19:05:17.398Z", "ended": null, "duration": 228, "createdAt": "2020-09-12T19:08:50.160Z" }, { "id": "ckf01mnk9eaui0a32mmhgq68g", "message": "This incident has been resolved.", "messageHtml": "This incident has been resolved.
", "status": "RESOLVED", "notify": true, "started": "2020-09-12T19:09:04.498Z", "ended": null, "duration": null, "createdAt": "2020-09-12T19:09:13.545Z" } ], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "MAJOROUTAGE", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ], "user": { "id": "ckf01g7m4eaqb0a32fl7jl1xx", "name": "Buzz Aldrin", "email": "buzz@nasa.com" } } ``` ## Add an incident **Endpoint:** ```bash POST /v1/:page_id/incidents ``` **Example request:** ```json { "name": "Test incident", "message": "We're currently investigating an issue with the Website", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "status": "INVESTIGATING", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "PARTIALOUTAGE", "customImpactPercentage": 40 } ], "translations": { "name": { "fr": "Incident de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` Incidents are published to your status page by default. If you would like to create an unpublished incident then you'll need to include and set `shouldPublish` to `false`. **Example response:** ```json { "id": "ckf02l5m8z36j0a35qr9q1tq1", "name": "Test incident", "status": "INVESTIGATING", "started": "2020-09-12T03:38:47.998Z", "resolved": null, "updates": [], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ], "translations": { "name": { "fr": "Incident de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Add an incident with a template **Endpoint:** ```bash POST /v1/:page_id/incidents/:template ``` **Example response:** ```json { "id": "cl8hrdsdsasu441sv26yq", "name": "Investigating Template", "nameTranslationId": null, "notify": false, "status": "INVESTIGATING", "started": "2022-09-25T19:53:20.778Z", "resolved": null, "duration": null, "createdAt": "2022-09-25T19:53:20.800Z", "updatedAt": "2022-09-25T19:53:20.800Z", "automated": false, "impact": "MAJOROUTAGE", "appId": null, "siteId": "cl8hadasdasd6wkxdco", "importedFrom": null } ``` ## Update incident **Endpoint:** ```bash PUT /v1/:page_id/incidents/:incident_id ``` **Example request:** ```json { "name": "Test incident 2", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "status": "INVESTIGATING", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "OPERATIONAL" } ], "translations": { "name": { "fr": "Incident de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` **Example response:** ```json { "id": "ckf02l5m8z36j0a35qr9q1tq1", "name": "Test incident 2", "status": "INVESTIGATING", "started": "2020-09-12T03:38:47.998Z", "resolved": null, "updates": [], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ], "translations": { "name": { "fr": "Incident de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Delete incident **Endpoint:** ```bash DELETE /v1/:page_id/incidents/:incident_id ``` **Example response:** ```json { "id": "ckf02l5m8z36j0a35qr9q1tq1" } ``` ## Get incident responders Who was paged for an incident by on-call, whether anyone has acknowledged it, and who leads it. **Endpoint:** ```bash GET /v1/:page_id/incidents/:incident_id/responders ``` **Example response:** ```json { "incidentId": "ckf02l5m8z36j0a35qr9q1tq1", "paged": true, "acknowledged": true, "lead": { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com" }, "pages": [ { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com", "pagedAt": "2026-11-01T12:01:00.000Z" } ], "responders": [ { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com", "status": "ACKNOWLEDGED", "acknowledgedAt": "2026-11-01T12:05:00.000Z", "declinedAt": null } ] } ``` ## Acknowledge an incident Acknowledge an incident as the API key's user. The first acknowledgement cancels any escalation still waiting to page more people, and makes that person the incident lead if there is none. Nothing changes on the status page. Acknowledging again is safe: `alreadyAcknowledged` is then `true`. **Endpoint:** ```bash POST /v1/:page_id/incidents/:incident_id/acknowledge ``` **Example response:** ```json { "incidentId": "ckf02l5m8z36j0a35qr9q1tq1", "alreadyAcknowledged": false, "paged": true, "acknowledged": true, "lead": { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com" }, "pages": [ { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com", "pagedAt": "2026-11-01T12:01:00.000Z" } ], "responders": [ { "teamMemberId": "clh8nmaan72592bfokqjqd95s1", "name": "Sam Rivera", "email": "sam@example.com", "status": "ACKNOWLEDGED", "acknowledgedAt": "2026-11-01T12:05:00.000Z", "declinedAt": null } ] } ``` --- # Incident Updates API Reference Source: https://instatus.com/help/api/incident-updates ## Get an incident update **Endpoint:** ```bash GET /v1/:page_id/incidents/:incident_id/incident-updates/:incident_update_id ``` **Example response** ```json { "id": "ckf1ew8mol30c0a32w400k6s3", "message": "We're currently investigating an issue with the Website", "messageHtml": "We're currently investigating an issue with the Website
", "status": "INVESTIGATING", "notify": true, "started": "2020-09-12T03:38:47.998Z", "incident": { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "started": "2020-09-12T19:05:17.398Z", "status": "INVESTIGATING", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "PARTIALOUTAGE", "showUptime": true, "site": { "subdomain": "nasa", "logoUrl": null, "name": "Nasa", "slackIntegrations": [], "subscribers": [] }, "customImpactPercentage": 40, "subscribers": [] } ] } } ``` ## Add an incident update **Endpoint:** ```bash POST /v1/:page_id/incidents/:incident_id/incident-updates ``` **Example request** ```json { "message": "We're currently investigating an issue with the Website", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "status": "INVESTIGATING", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "MAJOROUTAGE" } ], "translations": { "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` **Example response** ```json { "id": "ckf1ew8mol30c0a32w400k6s3", "message": "We're currently investigating an issue with the Website", "messageHtml": "We're currently investigating an issue with the Website
", "status": "INVESTIGATING", "notify": true, "started": "2020-09-12T03:38:47.998Z", "incident": { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "started": "2020-09-12T19:05:17.398Z", "status": "INVESTIGATING", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "subdomain": "nasa", "logoUrl": null, "name": "Nasa", "slackIntegrations": [], "subscribers": [] }, "subscribers": [] } ] }, "translations": { "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Resolve an incident with a template **Endpoint:** ```bash POST /v2/:page_id/incidents/:incident_id/incident-updates/:template ``` **Example response** ```json { "id": "cl8hrf2a6dsdsu4xy7vqurh", "message": "This incident has been resolved.", "messageTranslationId": null, "status": "RESOLVED", "notify": false, "started": "2022-09-25T19:54:42.064Z", "ended": null, "duration": null, "createdAt": "2022-09-25T19:54:42.126Z", "updatedAt": "2022-09-25T19:54:42.127Z", "incidentId": "cl8hr8gu40asdasdu4ucisqeo3", "messageHtml": "This incident has been resolved.
", "messageHtmlTranslationId": null, "importedFrom": null } ``` ## Edit an incident update **Endpoint:** ```bash PUT /v1/:page_id/incidents/:incident_id/incident-updates/:incident_update_id ``` **Example request** ```json { "message": "We're currently investigating an issue with the Website", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "status": "INVESTIGATING", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "PARTIALOUTAGE", "customImpactPercentage": 40 } ], "translations": { "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` **Example response** ```json { "id": "ckf1ew8mol30c0a32w400k6s3", "message": "We're currently investigating an issue with the Website", "messageHtml": "We're currently investigating an issue with the Website
", "status": "INVESTIGATING", "notify": true, "started": "2020-09-12T03:38:47.998Z", "incident": { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "started": "2020-09-12T19:05:17.398Z", "status": "INVESTIGATING", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "subdomain": "nasa", "logoUrl": null, "name": "Nasa", "slackIntegrations": [], "subscribers": [] }, "subscribers": [] } ] }, "translations": { "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Delete an incident update **Endpoint:** ```bash DELETE /v1/:page_id/incidents/:incident_id/incident-updates/:incident_update_id ``` **Example response** ```json { "id": "ckf1ew8mol30c0a32w400k6s3" } ``` --- # Status Pages API Reference Source: https://instatus.com/help/api/status-pages ## Get your status pages **Endpoint:** ```bash GET /v2/pages?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckf01fonve9i40a32oas5b0uw", "subdomain": "nasa", "name": "Nasa", "logoUrl": null, "faviconUrl": null, "websiteUrl": null, "customDomain": null, "publicEmail": null, "twitter": null, "status": "UP", "subscribeBySms": null, "language": "en", "useLargeHeader": true, "brandColor": "#111", "okColor": "rgba(51, 177, 126, 1)", "disruptedColor": null, "degradedColor": null, "downColor": null, "noticeColor": null, "unknownColor": null, "googleAnalytics": null, "smsService": null, "htmlInMeta": null, "htmlAboveHeader": null, "htmlBelowHeader": null, "htmlAboveFooter": null, "htmlBelowFooter": null, "htmlBelowSummary": null, "launchDate": null, "cssGlobal": null, "onboarded": null, "createdAt": "2020-09-12T19:03:48.379Z", "updatedAt": "2020-09-12T19:04:03.731Z" } ] ``` ## Create a status page **Endpoint:** ```bash POST /v1/pages ``` **Example request:** ```json { "email": "ali@instatus.com", "name": "Nasa", "subdomain": "nasa", "components": ["Website", "App", "API"], "logoUrl": "https://instatus.com/sample.png", "faviconUrl": "https://instatus.com/favicon-32x32.png", "websiteUrl": "https://instatus.com", "language": "en", "useLargeHeader": true, "brandColor": "#111", "okColor": "#33B17E", "disruptedColor": "#FF8C03", "degradedColor": "#ECC94B", "downColor": "#DC123D", "noticeColor": "#70808F", "unknownColor": "#DFE0E1", "googleAnalytics": "UA-00000000-1", "subscribeBySms": true, "smsService": "twilio", "twilioSid": "YOUR_TWILIO_SID", "twilioToken": "YOUR_TWILIO_TOKEN", "twilioSender": "YOUR_TWILIO_SENDER", "esendexUsername": "YOUR_ESENDEX_USERNAME", "esendexPassword": "YOUR_ESENDEX_PASSWORD", "esendexAccountRef": "YOUR_ESENDEX_ACCOUNT_REF", "nexmoKey": null, "nexmoSecret": null, "nexmoSender": null, "htmlInMeta": null, "htmlAboveHeader": null, "htmlBelowHeader": null, "htmlAboveFooter": null, "htmlBelowFooter": null, "htmlBelowSummary": null, "cssGlobal": null, "launchDate": null, "dateFormat": "MMMMMM d, yyyy", "dateFormatShort": "MMM yyyy", "timeFormat": "p" } ``` **Example response:** ```json { "id": "ckg8auvrglcx309501fcjb2vl", "createdAt": "2020-10-13T18:29:25.708Z", "subdomain": "nasa", "logoUrl": null, "faviconUrl": null, "websiteUrl": null, "name": "Nasa", "status": "UP", "color": null, "language": null, "googleAnalytics": null, "publicEmail": null, "customDomain": null, "useLargeHeader": true, "disableDarkMode": null, "twitter": null, "subscribeBySms": null, "brandColor": null, "okColor": null, "disruptedColor": null, "downColor": null, "degradedColor": null, "noticeColor": null, "htmlInMeta": null, "htmlAboveHeader": null, "htmlBelowHeader": null, "htmlAboveFooter": null, "htmlBelowFooter": null, "htmlBelowSummary": null, "cssGlobal": null, "onboarded": null, "launchDate": null, "dateFormat": "MMMMMM d, yyyy", "dateFormatShort": "MMM yyyy", "timeFormat": "p", "private": false, "useAllowList": false, "allowList": [], "components": [ { "id": "ckg8auwlzlcxd09506r3g6y8z", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] }, { "id": "ckg8auwv7lcxm09506jjate2o", "name": "App", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] }, { "id": "ckg8aux4oo3ik0a35parnbunk", "name": "API", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] } ] } ``` ## Update a status page **Endpoint:** ```bash PUT /v2/:page_id ``` **Example request:** ```json { "id": "ckg8auvrglcx309501fcjb2vl", "name": "Nasa", "status": "UP", "subdomain": "nasa", "logoUrl": "https://instatus.com/sample.png", "faviconUrl": "https://instatus.com/favicon-32x32.png", "websiteUrl": "https://instatus.com", "language": "en", "publicEmail": "hello@nasa.gov", "useLargeHeader": true, "brandColor": "#111", "okColor": "#33B17E", "disruptedColor": "#FF8C03", "degradedColor": "#ECC94B", "downColor": "#DC123D", "noticeColor": "#70808F", "unknownColor": "#DFE0E1", "googleAnalytics": "UA-00000000-1", "subscribeBySms": true, "smsService": "twilio", "twilioSid": "YOUR_TWILIO_SID", "twilioToken": "YOUR_TWILIO_TOKEN", "twilioSender": "YOUR_TWILIO_SENDER", "esendexUsername": "YOUR_ESENDEX_USERNAME", "esendexPassword": "YOUR_ESENDEX_PASSWORD", "esendexAccountRef": "YOUR_ESENDEX_ACCOUNT_REF", "nexmoKey": null, "nexmoSecret": null, "nexmoSender": null, "htmlInMeta": null, "htmlAboveHeader": null, "htmlBelowHeader": null, "htmlAboveFooter": null, "htmlBelowFooter": null, "htmlBelowSummary": null, "cssGlobal": null, "launchDate": null, "dateFormat": "MMMMMM d, yyyy", "dateFormatShort": "MMM yyyy", "timeFormat": "p", "private": false, "useAllowList": false, "subscriberConfirmationMode": "REQUIRED", "translations": { "name": { "fr": "nasa" } } } ``` **Confirmation emails** Use `subscriberConfirmationMode` to control what happens when someone subscribes: - `REQUIRED` — subscribers must confirm via email before receiving updates. Default. - `WELCOME` — subscribers are added immediately and receive a welcome email. Pro only. - `NONE` — subscribers are added immediately with no email. Pro only. The first time a page switches to `WELCOME` or `NONE`, Instatus reviews the request before it takes effect. Most pages are approved automatically; otherwise our team reviews within 2 days and, until then, subscribers keep receiving a confirmation email. `autoConfirmSubscribers` is deprecated. For backwards compatibility, `true` maps to `NONE` and `false` maps to `REQUIRED`. **Example response:** ```json { "id": "ckg8auvrglcx309501fcjb2vl", "createdAt": "2020-10-13T18:29:25.708Z", "subdomain": "nasa", "name": "Nasa", "status": "UP", "logoUrl": null, "faviconUrl": null, "websiteUrl": null, "color": null, "language": null, "googleAnalytics": null, "publicEmail": "hello@nasa.gov", "customDomain": null, "useLargeHeader": true, "disableDarkMode": null, "twitter": null, "subscribeBySms": null, "brandColor": null, "okColor": null, "disruptedColor": null, "downColor": null, "degradedColor": null, "noticeColor": null, "htmlInMeta": null, "htmlAboveHeader": null, "htmlBelowHeader": null, "htmlAboveFooter": null, "htmlBelowFooter": null, "htmlBelowSummary": null, "cssGlobal": null, "onboarded": null, "launchDate": null, "dateFormat": "MMMMMM d, yyyy", "dateFormatShort": "MMM yyyy", "timeFormat": "p", "private": false, "useAllowList": false, "allowList": [], "subscriberConfirmationMode": "REQUIRED", "components": [ { "id": "ckg8auwlzlcxd09506r3g6y8z", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] }, { "id": "ckg8auwv7lcxm09506jjate2o", "name": "App", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] }, { "id": "ckg8aux4oo3ik0a35parnbunk", "name": "API", "status": "OPERATIONAL", "showUptime": true, "order": null, "group": null, "incidents": [] } ], "translations": { "name": { "fr": "nasa" } } } ``` ## Delete a status page **Endpoint:** ```bash DELETE /v2/:page_id ``` **Example response:** ```json { "id": "ckf1d4f6a4aaf0a356vqg0rdm" } ``` --- # Workspaces API Reference Source: https://instatus.com/help/api/workspaces ## Get your workspaces **Endpoint:** ```bash GET /v1/workspaces?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "cmihbdhw90001e7xh9kb3oko7", "createdAt": "2025-11-27T10:52:02.649Z", "updatedAt": "2025-11-27T10:52:03.498Z", "name": "Instatus", "slug": "instatus", "avatar": "https://dashboard.instatus.com/avatars/13.jpg", "sites": ["cmihbdhyg0005e7xhjhim8l74"], "sso": false, "organizationDomains": null, "allowDomainEmails": false, "allowedDomainsDefaultPermission": "READ", "ssoActive": false, "directorySyncActive": false, "enableMultipleOrgs": false, "allowedDomains": null, "allowedEmailDomains": [], "referralId": null, "referralCoupon": null, "referralCode": null, "sendNewWorkspaceMembersStatusPageUpdates": true, "sendNewWorkspaceMembersAutomationIntegrationNotifications": true, "sendNewWorkspaceMembersInvalidCustomDomainNotifications": true, "sendNewWorkspaceMembersPhoneCallNotifications": true, "sendNewWorkspaceMembersWeeklyReportsNotifications": true, "longRunningIncidentNotificationSettings": [0.5, 1, 2, 3, 6, 12], "useSSOLogin": true, "useGoogleLogin": true, "useMagiclinkLogin": true, "usePasswordLogin": true, "useGithubLogin": true }, { "id": "cmjiq4ert0006bd6k027exx68", "createdAt": "2025-12-23T15:12:21.449Z", "updatedAt": "2025-12-23T15:18:57.744Z", "name": "Workspace 2", "slug": "workspace-2", "avatar": "https://dashboard.instatus.com/avatars/26.jpg", "sites": [], "sso": false, "organizationDomains": null, "allowDomainEmails": false, "allowedDomainsDefaultPermission": "READ", "ssoActive": false, "directorySyncActive": false, "enableMultipleOrgs": false, "allowedDomains": null, "allowedEmailDomains": [], "referralId": null, "referralCoupon": null, "referralCode": null, "sendNewWorkspaceMembersStatusPageUpdates": true, "sendNewWorkspaceMembersAutomationIntegrationNotifications": true, "sendNewWorkspaceMembersInvalidCustomDomainNotifications": true, "sendNewWorkspaceMembersPhoneCallNotifications": true, "sendNewWorkspaceMembersWeeklyReportsNotifications": true, "longRunningIncidentNotificationSettings": [0.5, 1, 2, 3, 6, 12], "useSSOLogin": true, "useGoogleLogin": true, "useMagiclinkLogin": true, "usePasswordLogin": true, "useGithubLogin": true } ] ``` ## Create a workspace **Endpoint:** ```bash POST /v1/workspaces ``` **Example request:** ```json { "name": "Instatus", "slug": "in-status", "sendNewWorkspaceMembersStatusPageUpdates": true, "sendNewWorkspaceMembersAutomationIntegrationNotifications": true, "sendNewWorkspaceMembersInvalidCustomDomainNotifications": true, "sendNewWorkspaceMembersPhoneCallNotifications": true, "sendNewWorkspaceMembersWeeklyReportsNotifications": true, "longRunningIncidentNotificationSettings": [0.5, 1, 2, 3, 6, 12] } ``` **Example response:** ```json { "id": "cmjirgpcx0000c20yxm94si6q", "createdAt": "2025-12-23T15:49:54.647Z", "updatedAt": "2025-12-23T15:49:54.647Z", "name": "Instatus", "slug": "in-status", "avatar": null, "sso": false, "organizationDomains": null, "allowDomainEmails": false, "allowedDomainsDefaultPermission": "READ", "ssoActive": false, "directorySyncActive": false, "enableMultipleOrgs": false, "allowedDomains": null, "allowedEmailDomains": [], "referralId": null, "referralCoupon": null, "referralCode": null, "sendNewWorkspaceMembersStatusPageUpdates": true, "sendNewWorkspaceMembersAutomationIntegrationNotifications": true, "sendNewWorkspaceMembersInvalidCustomDomainNotifications": true, "sendNewWorkspaceMembersPhoneCallNotifications": true, "sendNewWorkspaceMembersWeeklyReportsNotifications": true, "longRunningIncidentNotificationSettings": [0.5, 1, 2, 3, 6, 12], "useSSOLogin": true, "useGoogleLogin": true, "useMagiclinkLogin": true, "usePasswordLogin": true, "useGithubLogin": true } ``` ## Delete a workspace **Endpoint:** ```bash DELETE /v1/workspaces/:workspace_id ``` **Example response:** ```json { "id": "cmjirgpcx0000c20yxm94si6q" } ``` --- # Components API Reference Source: https://instatus.com/help/api/components ## Get all your status page components **Endpoint:** ```bash GET /v2/:page_id/components?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckf01fvnxywz60a35wdbn5gz5", "name": "App", "status": "OPERATIONAL", "uniqueEmail": "nasa-app-1nozrueut@automation.instatus.com", "description": "", "showUptime": true, "order": 0, "group": null }, { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "description": "", "showUptime": true, "order": 0, "group": null, "uniqueEmail": "nasa-website-1nozrueut@automation.instatus.com" } ] ``` ## Get a component **Endpoint:** ```bash GET /v2/:page_id/components/:component_id ``` **Example response** ```json { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "description": "", "status": "OPERATIONAL", "uniqueEmail": "nasa-website-1nozrueut@automation.instatus.com", "showUptime": true, "order": 0, "group": null } ``` ## Get status page uptime **Endpoint:** ```bash GET /v2/:page_id/uptime?start=:start&end=:end ``` - `start` and `end` are ISO 8601 dates. Without them, you get the last 30 days. - The range can be at most 395 days, and `start` must be before `end`. **Example response:** ```json { "start": "2026-10-01T00:00:00.000Z", "end": "2026-10-31T00:00:00.000Z", "uptime": 99.97, "components": [ { "id": "ckf01fvnxywz60a35wdbn5gz5", "name": "App", "uptime": 99.95, "isParent": false, "children": [] }, { "id": "ckf01fvnxywz40a35p2c1xk7q", "name": "API", "uptime": 99.98, "isParent": true, "children": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Auth", "uptime": 99.96, "isParent": false, "children": [] }, { "id": "ckf01fvnxywz70a35r8m2wq4d", "name": "Search", "uptime": 100, "isParent": false, "children": [] } ] } ] } ``` - The top-level `uptime` covers the whole page: the average of every component, worked out the same way as a group's uptime. - Groups have `isParent` set to `true` and list their components under `children`. - Only published outages count, so the figures match your status page. ## Create a component **Endpoint:** ```bash POST /v1/:page_id/components ``` **Example request:** ```json { "name": "Test component", "description": "Testing", "status": "OPERATIONAL", "order": 6, "showUptime": true, "grouped": false, "archived": false, "translations": { "name": { "fr": "Composant de test" }, "description": { "fr": "En test" } } } ``` **Example response:** ```json { "id": "ckf1d4f6a4aaf0a356vqg0rdm", "name": "Test component", "description": "Testing", "uniqueEmail": "nasa-test-component-oomaksikj@automation.instatus.com", "status": "OPERATIONAL", "showUptime": true, "order": 8, "group": null, "translations": { "name": { "fr": "Composant de test" }, "description": { "fr": "En test" } } } ``` If you'd like to add a component under a group, you may set `grouped` to `true` and `group` to your desired group's `ID`. ## Update a component **Endpoint:** ```bash PUT /v2/:page_id/components/:component_id ``` **Example request:** ```json { "name": "Test component 4", "description": "Test test test", "status": "OPERATIONAL", "order": 6, "showUptime": true, "grouped": false, "archived": true, "translations": { "name": { "fr": "Composant de test 4" }, "description": { "fr": "Test test test" } } } ``` **Example response:** ```json { "id": "ckf1d4f6a4aaf0a356vqg0rdm", "name": "Test component 4", "uniqueEmail": "nasa-test-component-oomaksikj@automation.instatus.com", "status": "OPERATIONAL", "description": "Test test test", "showUptime": true, "order": 6, "group": null, "translations": { "name": { "fr": "Composant de test 4" }, "description": { "fr": "Test test test" } } } ``` If you'd like to update a component's group, you may set `grouped` to `true` and `groupId` to your desired group's `ID`. ## Delete a component **Endpoint:** ```bash DELETE /v1/:page_id/components/:component_id ``` ```json { "id": "ckf1d4f6a4aaf0a356vqg0rdm" } ``` --- # Teammates API Reference Source: https://instatus.com/help/api/teammates ## Get teammates **Endpoint:** ```bash GET /v1/:page_id/team?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response** ```json [ { "id": "cm1111x6ofgsd5666mzxcw978qh", "user": { "id": "cm111114566gsd5666mzxcw978qh", "name": "Ali Salah", "email": "ali@instatus.com", "avatar": "https://res.cloudinary.com/sup/image/upload/v1600287654/avatars/uuhfbauwwv7zjzzejgik.jpg" } } ] ``` ## Add a team member ```bash POST /v1/:page_id/team ``` **Example request** ```json { "email": "john@instatus.com" } ``` **Example response** ```json { "id": "cm1111x6ofgsd5666mzxcw978qh", "email": "john@instatus.com" } ``` ## Delete a team member ```bash DELETE /v1/:page_id/team/:member_id ``` **Example response** ```json { "memberId": "cm1111x6ofgsd5666mzxcw978qh" } ``` --- # Maintenances API Reference Source: https://instatus.com/help/api/maintenances ## Get all page maintenances **Endpoint:** ```bash GET /v2/:page_id/maintenances?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckf1fzzbt4nib0a352wwra6ff", "name": "Test maintenance", "status": "NOTSTARTEDYET", "start": "2020-09-13T18:38:58.326Z", "duration": 60, "notifyStart": true, "notifyEnd": true, "notifyEarly": true, "notifyMinutes": 60, "autoStart": true, "autoEnd": true, "updates": [ { "id": "ckf1fzzpal97v0a322evc874c", "message": "We are planning for a scheduled maintenance during that time.", "messageHtml": "We are planning for a scheduled maintenance during that time.
", "status": "NOTSTARTEDYET", "notify": true, "started": "2020-09-13T18:38:58.326Z", "ended": null, "updatedAt": "2020-09-13T18:38:58.326Z" } ] } ] ``` ## Get a maintenance **Endpoint:** ```bash GET /v1/:page_id/maintenances/:maintenance_id ``` **Example response:** ```json { "id": "ckf1fzzbt4nib0a352wwra6ff", "name": "Test maintenance", "status": "NOTSTARTEDYET", "start": "2020-09-13T18:38:58.326Z", "duration": 60, "notifyStart": true, "notifyEnd": true, "notifyEarly": true, "notifyMinutes": 60, "autoStart": true, "autoEnd": true, "updates": [ { "id": "ckf1fzzpal97v0a322evc874c", "message": "We are planning for a scheduled maintenance during that time.", "messageHtml": "We are planning for a scheduled maintenance during that time.
", "status": "NOTSTARTEDYET", "notify": true, "started": "2020-09-13T18:38:58.326Z", "ended": null, "duration": null, "createdAt": "2020-09-13T18:39:16.606Z" } ], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ] } ``` ## Add a maintenance **Endpoint:** ```bash POST /v1/:page_id/maintenances ``` **Example request:** ```json { "name": "Test maintenance", "message": "We are scheduling a test maintenance", "components": ["ckf01fvnxywz50a35nh1qzssm"], "start": "2020-09-12 05:38:47.998", "end": "2020-09-12 06:38:47.998", "status": "NOTSTARTEDYET", "notify": true, "duration": 60, "notifyStart": true, "notifyEnd": true, "notifyEarly": true, "notifyMinutes": 60, "autoStart": true, "autoEnd": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "UNDERMAINTENANCE" } ], "translations": { "name": { "fr": "Entretien des tests" }, "message": { "fr": "Nous planifions une maintenance test" } } } ``` Maintenances are expanded by default. If you would like to collapse your maintenance and then expand it at a desired time, then you'll need to include and set `isCollapsed` to `true` and `expandAt` to your desired time. **Example response:** ```json { "id": "ckf1g4evp4o5s0a35vozxnjv5", "name": "Test maintenance", "duration": null, "start": "2020-09-12T03:38:47.998Z", "end": "2020-09-12T04:38:47.998Z", "status": "NOTSTARTEDYET", "updates": [], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ], "translations": { "name": { "fr": "Entretien des tests" }, "message": { "fr": "Nous planifions une maintenance test" } } } ``` ## Update maintenance **Endpoint:** ```bash PUT /v1/:page_id/maintenances/:maintenance_id ``` **Example request:** ```json { "name": "Test incident 2", "message": "We are scheduling a test maintenance", "components": ["ckf01fvnxywz50a35nh1qzssm"], "start": "2020-09-12 05:38:47.998", "end": "2020-09-12 06:38:47.998", "status": "NOTSTARTEDYET", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "UNDERMAINTENANCE" } ], "translations": { "name": { "fr": "Entretien des tests" }, "message": { "fr": "Nous planifions une maintenance test" } } } ``` **Example response:** ```json { "id": "ckf1g4evp4o5s0a35vozxnjv5", "name": "Test maintenance 2", "status": "NOTSTARTEDYET", "start": "2020-09-12T03:38:47.998Z", "duration": null, "updates": [ { "id": "ckf1g4ffi4o5y0a35rm76vuq9", "message": "We're currently investigating an issue with the Website", "messageHtml": "We're currently investigating an issue with the Website
", "status": "NOTSTARTEDYET", "notify": true, "started": "2020-09-12T03:38:47.998Z", "ended": null, "duration": null, "createdAt": "2020-09-13T18:42:43.614Z" } ], "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ], "translations": { "name": { "fr": "Entretien des tests" }, "message": { "fr": "Nous planifions une maintenance test" } } } ``` ## Delete maintenance **Endpoint:** ```bash DELETE /v1/:page_id/maintenances/:maintenance_id ``` **Example response:** ```json { "id": "ckf1g4evp4o5s0a35vozxnjv5" } ``` --- # Maintenance Updates API Reference Source: https://instatus.com/help/api/maintenance-updates ## Get a maintenance update **Endpoint:** ```bash GET /v1/:page_id/maintenances/:maintenance_id/maintenance-updates/:maintenance_update_id ``` **Example response** ```json { "id": "ckf1g4ffi4o5y0a35rm76vuq9", "message": "We're currently investigating an issue with the Website", "messageHtml": "We're currently investigating an issue with the Website
", "notify": true, "started": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "maintenance": { "id": "ckf1g4evp4o5s0a35vozxnjv5", "name": "Test maintenance 2", "start": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null } } ] } } ``` ## Add a maintenance update **Endpoint:** ```bash POST /v1/:page_id/maintenances/:maintenance_id/maintenance-updates ``` **Example request** ```json { "message": "We are scheduling a test maintenance", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "end": "2020-09-12 06:38:47.998", "status": "NOTSTARTEDYET", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "UNDERMAINTENANCE" } ], "translations": { "message": { "fr": "Nous planifions une maintenance test" } } } ``` **Example response** ```json { "id": "ckf1hlezn4vzv0a358mh8jg0z", "message": "We are scheduling a test maintenance", "messageHtml": "We are scheduling a test maintenance
", "notify": true, "started": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "maintenance": { "id": "ckf1hdrlilhvr0a32pyllguzs", "name": "Maintenance test", "start": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "subscribers": [], "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null, "subscribers": [] } } ] }, "translations": { "message": { "fr": "Nous planifions une maintenance test" } } } ``` ## Edit a maintenance update **Endpoint:** ```bash PUT /v1/:page_id/maintenances/:maintenance_id/maintenance-updates/:maintenance_update_id ``` **Example request** ```json { "message": "We are scheduling a test maintenance 2", "components": ["ckf01fvnxywz50a35nh1qzssm"], "started": "2020-09-12 05:38:47.998", "end": "2020-09-12 06:38:47.998", "status": "NOTSTARTEDYET", "notify": true, "statuses": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "status": "UNDERMAINTENANCE" } ], "translations": { "message": { "fr": "Nous planifions une maintenance test" } } } ``` **Example response** ```json { "id": "ckf1hlezn4vzv0a358mh8jg0z", "message": "We are scheduling a test maintenance 2", "messageHtml": "We are scheduling a test maintenance 2
", "notify": true, "started": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "maintenance": { "id": "ckf1hdrlilhvr0a32pyllguzs", "name": "Maintenance test", "start": "2020-09-12T03:38:47.998Z", "status": "NOTSTARTEDYET", "components": [ { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website", "status": "OPERATIONAL", "showUptime": true, "subscribers": [], "site": { "id": "ckf01fonve9i40a32oas5b0uw", "name": "Nasa", "subdomain": "nasa", "color": null, "logoUrl": null, "publicEmail": null, "subscribers": [] } } ] }, "translations": { "message": { "fr": "Nous planifions une maintenance test" } } } ``` ## Delete a maintenance update **Endpoint:** ```bash DELETE /v1/:page_id/maintenances/:maintenance_id/maintenance-updates/:maintenance_update_id ``` **Example response** ```json { "id": "ckf1hlezn4vzv0a358mh8jg0z" } ``` --- # Templates API Reference Source: https://instatus.com/help/api/templates ## Get all page templates **Endpoint:** ```bash GET /v1/:page_id/templates?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "cl9mq0ah50646mpvlmbrvf979", "type": "MAINTENANCE", "name": "Some Template", "nameTranslationId": null, "message": "", "messageTranslationId": null, "messageHtml": "", "messageHtmlTranslationId": null, "status": "NOTSTARTEDYET", "notify": true, "createdAt": "2022-10-24T11:53:46.505Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "deletedAt": null, "components": [], "translations": { "name": null, "message": null } }, { "id": "cl9ranzrn0040xovluqicus6h", "type": "INCIDENT", "name": "Some Template 2", "nameTranslationId": null, "message": "We're currently investigating an issue with the Website", "messageTranslationId": null, "messageHtml": "We're currently investigating an issue with the Website
", "messageHtmlTranslationId": null, "status": "INVESTIGATING", "notify": true, "createdAt": "2022-10-27T16:43:09.394Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "deletedAt": null, "components": [ { "id": "cl9rbadkx0024lhvlicjbe304", "status": "MAJOROUTAGE", "isCustomPercentage": true, "componentId": "cl9fzgipf14075qjvljphlnwkk", "templateId": "cl9ranzrn0040xovluqicus6h", "importedFrom": null } ], "translations": { "name": null, "message": null } } ] ``` ## Get a template **Endpoint:** ```bash GET /v1/:page_id/templates/:template_id ``` **Example response:** ```json { "id": "cl9mq0ah50646mpvlmbrvf979", "type": "MAINTENANCE", "name": "Some Template", "nameTranslationId": null, "message": "", "messageTranslationId": null, "messageHtml": "", "messageHtmlTranslationId": null, "status": "NOTSTARTEDYET", "notify": true, "createdAt": "2022-10-24T11:53:46.505Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "deletedAt": null, "components": [], "translations": { "name": null, "message": null } } ``` ## Add a template **Endpoint:** ```bash POST /v1/:page_id/templates ``` **Example request:** ```json { "subdomain": "some-subdomain", "type": "INCIDENT", "name": "Test template", "message": "We're currently investigating an issue with the Website", "status": "INVESTIGATING", "notify": true, "components": [ { "id": "cl9fzgipf14075qjvljphlnwkk", "status": "PARTIALOUTAGE", "customImpactPercentage": 40 } ], "translations": { "name": { "fr": "Modèle de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` **Example response:** ```json { "id": "cl9xobpoe00614tvldhh90t0w", "type": "INCIDENT", "name": "Test template", "nameTranslationId": null, "message": "We're currently investigating an issue with the Website", "messageTranslationId": null, "messageHtml": "We're currently investigating an issue with the Website
", "messageHtmlTranslationId": null, "status": "INVESTIGATING", "notify": true, "createdAt": "2022-11-01T03:52:08.126Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "deletedAt": null, "components": [], "translations": { "name": { "fr": "Modèle de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Update template **Endpoint:** ```bash PUT /v1/:page_id/templates/:template_id ``` **Example request:** ```json { "type": "INCIDENT", "name": "Test template 2", "message": "We're currently investigating an issue with the Website", "status": "INVESTIGATING", "notify": true, "components": [ { "id": "cl9fzgipf14075qjvljphlnwkk", "status": "MAJOROUTAGE" } ], "translations": { "name": { "fr": "Modèle de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` **Example response:** ```json { "id": "cl9ranzrn0040xovluqicus6h", "type": "INCIDENT", "name": "Test template 2", "nameTranslationId": null, "message": "We're currently investigating an issue with the Website", "messageTranslationId": null, "messageHtml": "We're currently investigating an issue with the Website
", "messageHtmlTranslationId": null, "status": "INVESTIGATING", "notify": true, "createdAt": "2022-10-27T16:43:09.394Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "deletedAt": null, "components": [ { "id": "cl9xockck01654tvlwfn7vbaz", "status": "OPERATIONAL", "componentId": "cl9fzgipf14075qjvljphlnwkk", "templateId": "cl9ranzrn0040xovluqicus6h", "importedFrom": null } ], "translations": { "name": { "fr": "Modèle de test" }, "message": { "fr": "Nous enquêtons actuellement sur un problème avec le site Web" } } } ``` ## Delete template **Endpoint:** ```bash DELETE /v1/:page_id/templates/:template_id ``` **Example response:** ```json { "id": "cl9ra5iu20023bxvlu1x8bqj6", "name": "Test template", "message": "We're currently investigating an issue with the Website", "createdAt": "2022-10-27T16:28:47.642Z", "site": { "id": "cl9fzgilx14063qjvl5oqdtxtg" } } ``` --- # General Notices API Reference Source: https://instatus.com/help/api/generic-notices General notices are persistent banners shown on your status page (separate from incidents and maintenances). Use these endpoints to manage them programmatically. ## Get all general notices **Endpoint:** ```bash GET /v1/:page_id/generic-notices?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "cl9mq0ah50646mpvlmbrvf979", "name": "Scheduled DNS migration", "message": "We are migrating our DNS provider over the next week.", "messageHtml": "We are migrating our DNS provider over the next week.
", "notify": false, "isCollapsed": false, "createdAt": "2022-10-24T11:53:46.505Z", "updatedAt": "2022-10-24T11:53:46.505Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null } ] ``` ## Get a general notice **Endpoint:** ```bash GET /v1/:page_id/generic-notices/:generic_notice_id ``` **Example response:** ```json { "id": "cl9mq0ah50646mpvlmbrvf979", "name": "Scheduled DNS migration", "message": "We are migrating our DNS provider over the next week.", "messageHtml": "We are migrating our DNS provider over the next week.
", "notify": false, "isCollapsed": false, "createdAt": "2022-10-24T11:53:46.505Z", "updatedAt": "2022-10-24T11:53:46.505Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null } ``` ## Add a general notice **Endpoint:** ```bash POST /v1/:page_id/generic-notices ``` **Body parameters:** - `name` (required) — the title of the notice. - `message` — the body of the notice. HTML is supported. - `notify` — whether to notify subscribers. Defaults to `false`. - `isCollapsed` — whether the notice is collapsed by default. Defaults to `false`. - `translations` — optional translations for `name` and `message`, keyed by language code. **Example request:** ```json { "name": "Scheduled DNS migration", "message": "We are migrating our DNS provider over the next week.", "notify": false, "isCollapsed": false, "translations": { "name": { "fr": "Migration DNS planifiée" }, "message": { "fr": "Nous migrons notre fournisseur DNS au cours de la semaine prochaine." } } } ``` **Example response:** ```json { "id": "cl9xobpoe00614tvldhh90t0w", "name": "Scheduled DNS migration", "message": "We are migrating our DNS provider over the next week.", "messageHtml": "We are migrating our DNS provider over the next week.
", "notify": false, "isCollapsed": false, "createdAt": "2022-11-01T03:52:08.126Z", "updatedAt": "2022-11-01T03:52:08.126Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null, "translations": { "name": { "fr": "Migration DNS planifiée" }, "message": { "fr": "Nous migrons notre fournisseur DNS au cours de la semaine prochaine." } } } ``` ## Update a general notice **Endpoint:** ```bash PUT /v1/:page_id/generic-notices/:generic_notice_id ``` Only the fields you send are updated. **Example request:** ```json { "name": "Scheduled DNS migration (rescheduled)", "message": "The migration has been rescheduled to next month.", "isCollapsed": true } ``` **Example response:** ```json { "id": "cl9xobpoe00614tvldhh90t0w", "name": "Scheduled DNS migration (rescheduled)", "message": "The migration has been rescheduled to next month.", "messageHtml": "The migration has been rescheduled to next month.
", "notify": false, "isCollapsed": true, "createdAt": "2022-11-01T03:52:08.126Z", "updatedAt": "2022-11-02T09:14:22.501Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null } ``` ## Delete a general notice **Endpoint:** ```bash DELETE /v1/:page_id/generic-notices/:generic_notice_id ``` **Example response:** ```json { "id": "cl9xobpoe00614tvldhh90t0w", "name": "Scheduled DNS migration (rescheduled)", "message": "The migration has been rescheduled to next month.", "messageHtml": "The migration has been rescheduled to next month.
", "notify": false, "isCollapsed": true, "createdAt": "2022-11-01T03:52:08.126Z", "updatedAt": "2022-11-02T09:14:22.501Z", "siteId": "cl9fzgilx14063qjvl5oqdtxtg", "importedFrom": null } ``` --- # Subscribers API Reference Source: https://instatus.com/help/api/subscribers ## Get subscribers **Endpoint:** ```bash GET /v2/:page_id/subscribers?page=:page&per_page=:per_page&search=:search_query&status=:status ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. - Optional search query is used to filter subscribers using email address or phone number. - Optional `status` filters subscribers by their subscription status. Use `status=confirmed` to leave out anyone who hasn't confirmed yet. | Value | Subscribers returned | | --- | --- | | `confirmed` | Confirmed subscribers who receive notifications. | | `unconfirmed` | Approved subscribers who haven't confirmed their subscription yet. | | `unapproved` | Subscribers waiting for approval, such as imported lists. | **Example response** ```json [ { "id": "cm1111x6ofgsd5666mzxcw978qh", "email": "ali@instatus.com", "phone": null, "webhook": null, "webhookEmail": null, "confirmed": false, "approved": true, "all": true, "components": [] }, { "id": "cm1111x6ofgsd5666mzxcw978qh", "email": null, "phone": "5417543010", "webhook": null, "webhookEmail": null, "confirmed": false, "approved": true, "all": true, "components": [] } ] ``` ## Add a subscriber **Endpoint:** ```bash POST /v1/:page_id/subscribers ``` When someone subscribes, confirmation behavior follows the page's `subscriberConfirmationMode` setting. Use `autoConfirm` on this endpoint to override that behavior for a single subscriber. **Example request** ```json { "email": "sarah@instatus.com", "all": true, "autoConfirm": false } ``` - `autoConfirm` — optional. When `true`, adds the subscriber immediately without sending confirmation or welcome emails, regardless of the page setting. Pro only. The first use on a page is reviewed by Instatus; until it is approved, the subscriber receives a confirmation email instead. **Example response** ```json { "id": "cm1111x6ofgsd5666mzxcw978df", "name": null, "email": "sarahs@instatus.com", "phone": null, "confirmed": false, "all": true, "createdAt": "2024-10-01T03:48:41.474Z", "updatedAt": "2024-10-01T03:48:41.474Z", "siteId": "cm1111x6ofgsd5666mzxcw978qh", "unsubscribeToken": "e3b51de6-1234-4664-zxyv-1679gg524260", "webhook": null, "webhookEmail": null, "discord": null, "discordTeam": null, "slack": null, "slackTeam": null, "language": "en", "company": null, "microsoftTeamsWebhook": null, "googleChatWebhook": null, "googleChatSpace": null, "failedAttempts": 0, "approved": true, "importedFrom": null, "hideUnsubLink": false, "webhookIncidentBody": null, "webhookMaintenanceBody": null, "webhookComponentBody": null, "webhookHttpMethod": "POST", "webhookHeaders": null, "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } } ``` ### Subscribe to specific components **Example request** ```json { "email": "adam@instatus.com", "all": false, "components": ["cl2xv23rl0119e7jlk2mweepd"], "autoConfirm": false } ``` **Example response** ```json { "id": "cl09gt11151422bjluflghewx", "email": "adam@instatus.com", "site": { "id": "ckg8a112344s5v86wrn", "name": "Test", "logoUrl": null, "subdomain": "test", "publicEmail": null, "language": "en" } } ``` ## Add multiple subscribers **Endpoint:** ```bash POST /v1/:page_id/subscribers/bulk ``` This endpoint allows you to create multiple subscribers in a single request. **Example request** ```json { "subscribers": [ { "email": "sarah@instatus.com", "all": true }, { "email": "john@instatus.com", "components": ["cl2xv23rl0119e7jlk2mweepd"] }, { "name": "Jane Doe", "phone": "5417543010", "all": true } ], "autoConfirm": false } ``` - `autoConfirm` applies to every subscriber in the batch. Pro only. **Example response** ```json { "success": true, "created": 3, "failed": 0, "results": { "created": [ { "id": "cm1111x6ofgsd5666mzxcw978df", "email": "sarah@instatus.com", "phone": null, "confirmed": false, "all": true, "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } }, { "id": "cm2222x6ofgsd5666mzxcw978df", "email": "john@instatus.com", "phone": null, "confirmed": false, "all": false, "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } }, { "id": "cm3333x6ofgsd5666mzxcw978df", "email": null, "phone": "5417543010", "name": "Jane Doe", "confirmed": false, "all": true, "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } } ], "failed": [] } } ``` **Response when some subscribers fail** If some subscribers fail to be created (e.g., duplicate email, incorrect format), the response will include details about the failures: ```json { "success": false, "created": 2, "failed": 1, "results": { "created": [ { "id": "cm1111x6ofgsd5666mzxcw978df", "email": "sarah@instatus.com", "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } }, { "id": "cm2222x6ofgsd5666mzxcw978df", "email": "john@instatus.com", "site": { "id": "cm1111x6ofgsd5666mzxcw978qh" } } ], "failed": [ { "index": 2, "subscriber": { "email": "duplicate@instatus.com", "all": true }, "error": { "code": "creation_failed", "message": "Subscriber with this email already exists" } } ] } } ``` **Notes:** - Maximum 100 subscribers per request - Each subscriber object can have the same fields as the single subscriber endpoint - Partial success is supported - successfully created subscribers are returned even if some fail ## Confirmation behavior Status pages control how new subscribers are handled via `subscriberConfirmationMode` on the [Update a status page](https://instatus.com/help/api/status-pages) endpoint: | Value | Behavior | | --- | --- | | `REQUIRED` | Subscribers must confirm via email before receiving updates. Default. | | `WELCOME` | Subscribers are added immediately and receive a welcome email. Pro only. | | `NONE` | Subscribers are added immediately with no email. Pro only. | The `autoConfirm` parameter on create endpoints overrides the page setting for that request and behaves like `NONE`. ## Remove a subscriber **Endpoint:** ```bash DELETE /v1/:page_id/subscribers/:subscriber_id ``` **Example response** ```json { "id": "cm1zvzm3434dlp9255d6jgy8", "name": null, "email": "sarah@instatus.com", "phone": null, "webhook": null, "webhookEmail": null, "discord": null, "microsoftTeamsWebhook": null, "company": null, "site": { "id": "cm180slpo000g9343478qh" } } ``` --- # Metrics API Reference Source: https://instatus.com/help/api/metrics ## Get all metrics **Endpoint:** ```bash GET /v1/:page_id/metrics?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckj1qyonq9sdk09819xdg4ehm", "name": { "default": "Testing" }, "active": true, "order": 1, "suffix": "ms", "data": [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, { "timestamp": 1608475705000, "value": 451.75 }, ... ] }, ... ] ``` ## Get a metric **Endpoint:** ```bash GET /v1/:page_id/metrics/:metric_id ``` **Example response:** ```json { "id": "ckj1qyonq9sdk09819xdg4ehm", "name": "Testing", "active": true, "order": 1, "suffix": "ms", "data": [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, { "timestamp": 1608475705000, "value": 451.75 }, ... ] } ``` ## Add a metric **Endpoint:** ```bash POST /v1/:page_id/metrics ``` ```json { "subdomain": "nasa", "name": "Response time", "suffix": "ms" } ``` **Example response:** ```json { "id": "ckj1qyonq9sdk09819xdg4ehm", "name": "Response time", "active": true, "order": 1, "suffix": "ms", "lastDataAt": 1608561235000, "data": [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, ... ] } ``` ## Update a metric **Endpoint:** ```bash PUT /v1/:page_id/metrics/:metric_id ``` **Example request:** ```json { "name": "Response time", "suffix": "ms" } ``` **Example response:** ```json { "id": "ckj1qyonq9sdk09819xdg4ehm", "name": "Response time", "active": true, "order": 1, "suffix": "ms", "lastDataAt": 1608561235000, "data": [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, ... ] } ``` ## Delete a metric **Endpoint:** ```bash DELETE /v1/:page_id/metrics/:metric_id ``` ### Add a datapoint to a metric **Endpoint:** ```bash POST /v1/:page_id/metrics/:metric_id ``` **Request:** ```json { "timestamp": 1608672985000, "value": 356 } ``` **Response:** ```json { "id": "ckj395ptx9ha40995ckzv0pz2", "value": 356, "timestamp": 1608672985000 } ``` ## Add multiple datapoints to a metric **Endpoint:** ```bash POST /v1/:page_id/metrics/:metric_id/data ``` **Request:** ```json { "data": [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, { "timestamp": 1608475705000, "value": 451.75 }, { "timestamp": 1608475945000, "value": 395 }, { "timestamp": 1608476185000, "value": 375.75 }, { "timestamp": 1608476425000, "value": 380.25 }, ... ] } ``` **Response** ```json [ { "timestamp": 1608474985000, "value": 355 }, { "timestamp": 1608475225000, "value": 428.25 }, { "timestamp": 1608475465000, "value": 356 }, { "timestamp": 1608475705000, "value": 451.75 }, { "timestamp": 1608475945000, "value": 395 }, { "timestamp": 1608476185000, "value": 375.75 }, { "timestamp": 1608476425000, "value": 380.25 } ] ``` ## Delete datapoints to a metric **Endpoint:** ```bash DELETE /v1/:page_id/metrics/:metric_id/data ``` **Response** ```json { "name": "Response time", "site": { "id": "ckj1qyonq9sdk09819xdg4ehm", "subdomain": "our" } } ``` --- # User Profile API Reference Source: https://instatus.com/help/api/user-profile ## Get your user profile **Endpoint:** ```bash GET /v1/user ``` **Example response:** ```json { "id": "hkf01fozve9e40a32aas5b0uc", "email": "ali@instatus.com", "name": "Ali", "slug": "ali", "avatar": "https://res.cloudinary.com/sup/image/upload/v1622398781/avatars/spzy0jvdmhges13oeooo.jpg" } ``` --- # Outages API Reference Source: https://instatus.com/help/api/outages ## Get all page outages **Endpoint:** ```bash GET /v1/:page_id/outages?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckoutage1", "from": "2020-09-12T03:38:47.998Z", "to": "2020-09-12T04:38:47.998Z", "status": "PARTIALOUTAGE", "visibilityState": "PUBLISHED", "createdAt": "2020-09-12T03:38:47.998Z", "updatedAt": "2020-09-12T03:40:47.998Z", "component": { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website" }, "incident": { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "createdByType": "USER", "status": "INVESTIGATING" } } ] ``` ## Get an outage **Endpoint:** ```bash GET /v1/:page_id/outages/:outage_id ``` **Example response:** ```json { "id": "ckoutage1", "from": "2020-09-12T03:38:47.998Z", "to": "2020-09-12T04:38:47.998Z", "status": "PARTIALOUTAGE", "visibilityState": "PUBLISHED", "createdAt": "2020-09-12T03:38:47.998Z", "updatedAt": "2020-09-12T03:40:47.998Z", "component": { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website" }, "incident": { "id": "ckf01m59ueaqb0a32wrljz1yd", "name": "Rocket is going down", "createdByType": "USER", "status": "INVESTIGATING" } } ``` ## Add an outage **Endpoint:** ```bash POST /v1/:page_id/outages ``` **Example request:** ```json { "componentId": "ckf01fvnxywz50a35nh1qzssm", "status": "PARTIALOUTAGE", "from": "2020-09-12 03:38:47.998", "to": "2020-09-12 04:38:47.998", "visibilityState": "PUBLISHED" } ``` **Example response:** ```json { "id": "ckoutage1", "from": "2020-09-12T03:38:47.998Z", "to": "2020-09-12T04:38:47.998Z", "status": "PARTIALOUTAGE", "visibilityState": "PUBLISHED", "createdAt": "2020-09-12T03:38:47.998Z", "updatedAt": "2020-09-12T03:40:47.998Z", "component": { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website" }, "incident": null } ``` ## Update an outage **Endpoint:** ```bash PUT /v1/:page_id/outages/:outage_id ``` **Example request:** ```json { "status": "MAJOROUTAGE", "to": "2020-09-12 05:38:47.998" } ``` **Example response:** ```json { "id": "ckoutage1", "from": "2020-09-12T03:38:47.998Z", "to": "2020-09-12T05:38:47.998Z", "status": "MAJOROUTAGE", "visibilityState": "PUBLISHED", "createdAt": "2020-09-12T03:38:47.998Z", "updatedAt": "2020-09-12T04:40:47.998Z", "component": { "id": "ckf01fvnxywz50a35nh1qzssm", "name": "Website" }, "incident": null } ``` ## Delete an outage **Endpoint:** ```bash DELETE /v1/:page_id/outages/:outage_id ``` **Example response:** HTTP 204 No Content --- # Publicly available Data Source: https://instatus.com/help/api/public-data The easiest way to get the current status of your page is through ```bash your-status-page-url/summary.json ``` An example is [https://instat.us/summary.json](https://instat.us/summary.json) **Example response:** ```json { "page": { "name": "Instatus", "url": "https://instat.us", "status": "HASISSUES" }, "activeIncidents": [ { "id": "cl4a8n3070721qtmzvts760c4", "name": "We're facing an issue with our API", "started": "2022-06-11T18:55:50.000Z", "status": "INVESTIGATING", "impact": "MAJOROUTAGE", "url": "https://instat.us/cl4a8n3070721qtmzvts760c4", "updatedAt": "2022-06-11T19:30:00.000Z" } ], "activeMaintenances": [ { "id": "cl4a8nlv50918qtmzdlw60ivu", "name": "Database maintenance", "start": "2022-06-11T18:55:54.000Z", "status": "NOTSTARTEDYET", "duration": 60, "url": "https://instat.us/cl4a8nlv50918qtmzdlw60ivu", "updatedAt": "2022-06-11T19:30:00.000Z" } ], "generalNotices": [ { "id": "cl4a8o2bq1034qtmz5xkc0h7r", "name": "Our support hours are changing", "message": "From July 1, live chat is available 24/7.", "url": "https://instat.us/cl4a8o2bq1034qtmz5xkc0h7r", "createdAt": "2022-06-10T09:00:00.000Z", "updatedAt": "2022-06-10T09:00:00.000Z" } ] } ``` Possible page statuses: - `UP` - `HASISSUES` - `UNDERMAINTENANCE` Possible incident statuses: - `INVESTIGATING` - `IDENTIFIED` - `MONITORING` - `RESOLVED` Possible maintenance statuses: - `NOTSTARTEDYET` - `INPROGRESS` - `COMPLETED` --- # Private pages API Reference Source: https://instatus.com/help/api/private-pages ## Get your status page secure link If your account has member / owner access to a private status page with secure links enabled, you're allowed to get the secure link to your page. **Endpoint:** ```bash GET /v2/pages?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "ckf01fonve9i40a32oas5b0uw", "secureLink": "https://instatus.business/auth?jwt=JWT_TOKEN" } ] ``` ## Regenerate your secure link If you want to regenerate your secure link, you can do it by calling this endpoint. **Endpoint:** ```bash POST /v1/:page_id/regenerate-secure-link ``` **Example response:** ```json { "id": "ckf01fonve9i40a32oas5b0uw", "secureLink": "https://instatus.business/auth?jwt=JWT_TOKEN" } ``` --- # Monitoring Integrations API Reference Source: https://instatus.com/help/api/monitoring-integrations You can programmatically create third party monitoring integrations using the REST API. ## Create integration **Endpoint:** ```bash POST /v3/integrations ``` **Body parameters** | Field | Type | Description | | ----- | ---- | ----------- | | `pageId` | `string` | ID of the status page | | `integrationType` | `string` | Integration type, e.g. `PINGDOM`, `NEWRELIC` | | `components` | `string[]` | IDs of components to attach | **Example request** ```json { "pageId": "page123", "integrationType": "PINGDOM", "components": ["component1", "component2"] } ``` **Example response** ```json { "integration": { "id": "int_abc", "monitoringTool": "PINGDOM" }, "message": "Integration created successfully." } ``` This endpoint accepts any monitoring tool listed in our [`MonitoringTool` enum](https://github.com/instatushq/instatus/blob/master/packages/backend/prisma/schema.prisma). ## Update integration **Endpoint:** ```bash PUT /v3/integrations/:integration_id ``` Send any of the fields from the create endpoint, or provide new template data to customize incident creation and resolution. **Example request** ```json { "label": "Pingdom Primary", "createTemplate": { "name": "New incident" }, "resolveTemplate": { "name": "Incident resolved" } } ``` **Example response** ```json { "integration": { "id": "int_abc", "label": "Pingdom Primary" } } ``` ## Delete integration **Endpoint:** ```bash DELETE /v3/integrations/:integration_id ``` **Example response** ```json {} ``` --- # Audience Groups API Reference Source: https://instatus.com/help/api/audience-groups ## Get all your status page audience groups **Endpoint:** ```bash GET /v1/:page_id/audience-groups?page=:page&per_page=:per_page ``` - The default page number is 1. - The default per_page number is 50 and the maximum is 100 items per page. **Example response:** ```json [ { "id": "clhaasg3d017058vlp22h9k6w", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 1", "teammates": [ { "id": "clhaasg3e017358vlnedqbt7x", "audienceGroupId": "clhaasg3d017058vlp22h9k6w", "teammateId": "clc38kure253016ivlpsuq3vx1", "teammate": { "id": "clc38kure253016ivlpsuq3vx1", "user": { "id": "cl8slhcwu6084mfndq6eh9tq7", "name": null, "email": "buzz@lightyear.com", "avatar": null } } } ], "components": [ { "id": "clhaasg3e017158vlj8lakqhz", "audienceGroupId": "clhaasg3d017058vlp22h9k6w", "componentId": "clcqs5usl3350jrvllb1l2sge", "component": { "id": "clcqs5usl3350jrvllb1l2sge", "name": "Website", "nameTranslationId": null, "description": "", "descriptionTranslationId": null, "status": "OPERATIONAL", "order": 1, "showUptime": true, "createdAt": "2023-01-10T22:04:17.061Z", "updatedAt": "2023-01-10T22:04:17.062Z", "archivedAt": null, "siteId": "clcqs5tob3338jrvlf76mhd7t", "uniqueEmail": "testing-amr-as-owner-private-website-lcqh533jn@automation.instatus.com", "groupId": null, "nameHtml": null, "nameHtmlTranslationId": null, "descriptionHtml": null, "descriptionHtmlTranslationId": null, "isThirdParty": false, "thirdPartyStatus": null, "thirdPartyComponentId": null, "thirdPartyComponentServiceId": null, "importedFrom": null, "startDate": null, "nameTranslation": null, "descriptionTranslation": null, "group": null } } ] }, { "id": "clhaaulxw021758vl1hejod67", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 2", "teammates": [ { "id": "clhaaulxw021958vlzllc63j4", "audienceGroupId": "clhaaulxw021758vl1hejod67", "teammateId": "clc38kure253016ivlpsuq3vx1", "teammate": { "id": "clc38kure253016ivlpsuq3vx1", "user": { "id": "cl8slhcwu6084mfndq6eh9tq7", "name": null, "email": "buzz@lightyear.com", "avatar": null } } } ], "components": [ { "id": "clhaaulxw021858vlmtm1rkh4", "audienceGroupId": "clhaaulxw021758vl1hejod67", "componentId": "clcqs5vq73360jrvlopq778mo", "component": { "id": "clcqs5vq73360jrvlopq778mo", "name": "App", "nameTranslationId": null, "description": "", "descriptionTranslationId": null, "status": "OPERATIONAL", "order": 2, "showUptime": true, "createdAt": "2023-01-10T22:04:18.271Z", "updatedAt": "2023-01-10T22:04:18.272Z", "archivedAt": null, "siteId": "clcqs5tob3338jrvlf76mhd7t", "uniqueEmail": "testing-amr-as-owner-private-app-jqzpp2xqn@automation.instatus.com", "groupId": null, "nameHtml": null, "nameHtmlTranslationId": null, "descriptionHtml": null, "descriptionHtmlTranslationId": null, "isThirdParty": false, "thirdPartyStatus": null, "thirdPartyComponentId": null, "thirdPartyComponentServiceId": null, "importedFrom": null, "startDate": null, "nameTranslation": null, "descriptionTranslation": null, "group": null } } ] } ] ``` ## Get an audience group **Endpoint:** ```bash GET /v1/:page_id/audience-groups/:audience_group_id ``` **Example response** ```json { "id": "clhaasg3d017058vlp22h9k6w", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 1", "teammates": [ { "id": "clhaasg3e017358vlnedqbt7x", "audienceGroupId": "clhaasg3d017058vlp22h9k6w", "teammateId": "clc38kure253016ivlpsuq3vx1", "teammate": { "id": "clc38kure253016ivlpsuq3vx1", "user": { "id": "cl8slhcwu6084mfndq6eh9tq7", "name": null, "email": "buzz@lightyear.com", "avatar": null } } } ], "components": [ { "id": "clhaasg3e017158vlj8lakqhz", "audienceGroupId": "clhaasg3d017058vlp22h9k6w", "componentId": "clcqs5usl3350jrvllb1l2sge", "component": { "id": "clcqs5usl3350jrvllb1l2sge", "name": "Website", "nameTranslationId": null, "description": "", "descriptionTranslationId": null, "status": "OPERATIONAL", "order": 1, "showUptime": true, "createdAt": "2023-01-10T22:04:17.061Z", "updatedAt": "2023-01-10T22:04:17.062Z", "archivedAt": null, "siteId": "clcqs5tob3338jrvlf76mhd7t", "uniqueEmail": "testing-amr-as-owner-private-website-lcqh533jn@automation.instatus.com", "groupId": null, "nameHtml": null, "nameHtmlTranslationId": null, "descriptionHtml": null, "descriptionHtmlTranslationId": null, "isThirdParty": false, "thirdPartyStatus": null, "thirdPartyComponentId": null, "thirdPartyComponentServiceId": null, "importedFrom": null, "startDate": null, "nameTranslation": null, "descriptionTranslation": null, "group": null } } ] } ``` ## Create an audience group **Endpoint:** ```bash POST /v1/:page_id/audience_groups ``` **Example request:** ```json { "name": "Audience Group 1", "components": ["clcqs5usl3350jrvllb1l2sge"], "teammates": ["clc38kure253016ivlpsuq3vx1"] } ``` **Example response:** ```json { "id": "clhaasg3d017058vlp22h9k6w", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 1", "site": { "id": "clcqs5tob3338jrvlf76mhd7t" } } ``` ## Update an audience group **Endpoint:** ```bash PUT /v1/:page_id/audience_groups/:audience_group_id ``` **Example request:** ```json { "components": ["clcqs5usl3350jrvllb1l2sge", "clcqs5vq73360jrvlopq778mo"] } ``` **Example response:** ```json { "id": "clhaasg3d017058vlp22h9k6w", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 1", "site": { "id": "clcqs5tob3338jrvlf76mhd7t" } } ``` ## Delete an audience group **Endpoint:** ```bash DELETE /v1/:page_id/audience-groups/:audience_group_id ``` ```json { "id": "clhaaulxw021758vl1hejod67", "siteId": "clcqs5tob3338jrvlf76mhd7t", "name": "Audience Group 2", "site": { "id": "clcqs5tob3338jrvlf76mhd7t" } } ``` --- # Routing Rules API Reference Source: https://instatus.com/help/api/routing-rules ## Possible Values for fields **Action Type** | Value | Description | | ----------------------------- | ------------------------------------ | | `NOTIFY_TEAM` | Notify a specific team | | `NOTIFY_TEAM_MEMBER` | Notify a specific team member | | `NOTIFY_CURRENT_ON_CALL_USER` | Notify the current on-call user | | `NOTIFY_NEXT_ON_CALL_USER` | Notify the next on-call user | | `NOTIFY_ALL_ON_CALL_MEMBERS` | Notify all members currently on-call | **Assertion Type** | Value | Description | | --------------------- | ------------------------------------------- | | `IMPACT` | Asserts the impact of an event | | `TITLE` | Asserts the title of an event | | `DESCRIPTION` | Asserts the description of an event | | `AFFECTED_COMPONENTS` | Asserts the affected components of an event | **Comparison Types** | Value | Description | | ------------------------ | ---------------------------------------------------- | | `EQUALS` | Checks if the value is equal | | `NOT_EQUALS` | Checks if the value is not equal | | `IS_EMPTY` | Checks if the value is empty | | `NOT_EMPTY` | Checks if the value is not empty | | `GREATER_THAN` | Checks if the value is greater than | | `GREATER_THAN_OR_EQUALS` | Checks if the value is greater than or equal | | `LESS_THAN` | Checks if the value is less than | | `LESS_THAN_OR_EQUALS` | Checks if the value is less than or equal | | `CONTAINS` | Checks if the value contains a specified substring | | `NOT_CONTAINS` | Checks if the value does not contain a substring | | `HAS_KEY` | Checks if an object has a specific key | | `NOT_HAS_KEY` | Checks if an object does not have a specific key | | `HAS_VALUE` | Checks if an object has a specific value | | `NOT_HAS_VALUE` | Checks if an object does not have a specific value | | `IS_NULL` | Checks if the value is null | | `NOT_NULL` | Checks if the value is not null | | `STARTS_WITH` | Checks if the value starts with a specific substring | | `ENDS_WITH` | Checks if the value ends with a specific substring | ## Get Routing Rules **Endpoint:** ```bash GET /:page_id/routing-rules ``` **Example request** ```bash GET /1/routing-rules ``` **Example response** ```json { "routingRules": [ { "id": "1", "siteId": "pageId", "assertions": [ { "id": "1", "routingRuleId": "1", "type": "TITLE", "comparison": "CONTAINS", "value": "value1" }, { "id": "2", "routingRuleId": "1", "type": "TITLE", "comparison": "CONTAINS", "value": "value2" } ], "actions": [ { "id": "1", "routingRuleId": "1", "type": "NOTIFY_TEAM_MEMBER", "targetId": "value1" }, { "id": "2", "routingRuleId": "1", "type": "NOTIFY_TEAM_MEMBER", "targetId": "member@platform.com" } ], "createdAt": "2021-09-29T00:00:00.000Z", "updatedAt": "2021-09-29T00:00:00.000Z", "order": 1 } ] } ``` ## Create Routing Rule **Endpoint:** ```bash POST /routing-rules ``` Keep in mind in actions `targetId` can be a team member email or a team id depending on the type of the action. **Example request** ```json { "routingRule": { "assertions": [ { "id": "1", "routingRuleId": "1", "type": "TITLE", "comparison": "CONTAINS", "value": "value1" }, { "id": "2", "routingRuleId": "1", "type": "TITLE", "comparison": "CONTAINS", "value": "value2" } ], "actions": [ { "id": "1", "routingRuleId": "1", "type": "NOTIFY_TEAM_MEMBER", "targetId": "member2@platform.com" }, { "id": "2", "routingRuleId": "1", "type": "NOTIFY_TEAM_MEMBER", "targetId": "member@platform.com" } ], "order": 1, "siteId": "site-id-1" }, "message": "Routing rule updated successfully" } ``` **Example response** ```json { "routingRule": { "id": "routing-rule-id-1", "order": 1, "siteId": "site123", "updatedAt": "2021-09-01T12:00:00Z", "createdAt": "2021-09-01T12:00:00Z" }, "message": "Routing rule created successfully." } ``` ## Update Routing Rule **Endpoint:** ```bash PUT /routing-rules/:id ``` **Example request** ```bash PUT /routing-rules/routing-rule-id-1 ``` ```json { "routingRule": { "id": "routing-rule-id-1", "assertions": [ { "id": "assertion-id-1", "routingRuleId": "routing-rule-id-1", "comparison": "CONTAINS", "value": "Issue With X", "type": "TITLE" } ], "order": 1, "siteId": "site-id-1", "updatedAt": "2021-09-01T12:00:00Z", "createdAt": "2021-05-01T12:00:00Z" }, "message": "Routing rule updated successfully" } ``` **Example response** ```json { "routingRule": { "id": "routing-rule-id-1", "assertions": [ { "id": "assertion-id-1", "routingRuleId": "routing-rule-id-1", "comparison": "CONTAINS", "value": "Issue With X", "type": "TITLE" } ], "order": 1, "siteId": "site-id-1", "updatedAt": "2024-08-09T12:00:00Z", "createdAt": "2021-05-01T12:00:00Z" }, "message": "Routing rule updated successfully" } ``` ## Delete Routing Rule **Endpoint:** ```bash DELETE /routing-rules/:id ``` **Example request** ```bash DELETE /routing-rules/routing-rule-id-1 ``` **Example response** ```json { "message": "Routing rule deleted successfully." } ``` --- # Escalation Policies API Reference Source: https://instatus.com/help/api/escalation-policies ## Possible Values for fields **Escalation rule conditions** | Value | Description | | ------------------ | ---------------------------------------------------------- | | `NOT_ACKNOWLEDGED` | The condition where an incident has not been acknowledged. | **Escalation action type** | Value | Description | | ----------------------------- | ------------------------------------- | | `NOTIFY_TEAM` | Notify a specific team. | | `NOTIFY_TEAM_MEMBER` | Notify a specific team member. | | `NOTIFY_CURRENT_ON_CALL_USER` | Notify the current on-call user. | | `NOTIFY_NEXT_ON_CALL_USER` | Notify the next on-call user. | | `NOTIFY_ALL_ON_CALL_MEMBERS` | Notify all members currently on-call. | ## Get Escalation Policies **Endpoint:** ```bash GET /:page_id/escalation-policies ``` **Example request** ```bash GET /1/escalation-policies ``` **Example response** ```json { "escalationPolicies": [ { "id": "escalationPolicy123", "siteId": "site123", "name": "Primary Escalation Policy", "description": "This is the primary escalation policy for site123.", "rules": [ { "id": "rule123", "escalationPolicyId": "escalationPolicy123", "order": 1, "condition": "NOT_ACKNOWLEDGED", "delayInMins": 5, "actions": [ { "id": "action123", "ruleId": "rule123", "type": "NOTIFY_TEAM", "targetId": "team123", "createdAt": "2023-08-08T12:00:00Z", "updatedAt": "2023-08-08T12:00:00Z" }, { "id": "action124", "ruleId": "rule123", "type": "NOTIFY_CURRENT_ON_CALL_USER", "targetId": null, "createdAt": "2023-08-08T12:01:00Z", "updatedAt": "2023-08-08T12:01:00Z" } ] }, { "id": "rule456", "escalationPolicyId": "escalationPolicy123", "order": 2, "condition": "NOT_ACKNOWLEDGED", "delayInMins": 10, "actions": [ { "id": "action125", "ruleId": "rule456", "type": "NOTIFY_NEXT_ON_CALL_USER", "targetId": null, "createdAt": "2023-08-08T12:10:00Z", "updatedAt": "2023-08-08T12:10:00Z" }, { "id": "action126", "ruleId": "rule456", "type": "NOTIFY_TEAM_MEMBER", "targetId": "member456", "createdAt": "2023-08-08T12:12:00Z", "updatedAt": "2023-08-08T12:12:00Z" } ] } ], "repeat": true, "repeatCount": 3, "repeatDelay": 15, "revertAcknowledgement": true, "autoResolveIncidentsAfterRepeat": false, "createdAt": "2023-08-08T12:00:00Z", "updatedAt": "2023-08-08T12:05:00Z" }, { "id": "escalationPolicy456", "siteId": "site123", "name": "Secondary Escalation Policy", "description": "This is the secondary escalation policy for site123.", "rules": [], "repeat": false, "repeatCount": 0, "repeatDelay": 0, "revertAcknowledgement": false, "autoResolveIncidentsAfterRepeat": false, "createdAt": "2023-08-08T12:10:00Z", "updatedAt": "2023-08-08T12:10:00Z" } ] } ``` ## Create Escalation Policy **Endpoint:** ```bash POST /escalation-policies ``` **Example request** ```json { "pageId": "12345", "name": "Critical Alerts Policy", "description": "Policy for handling critical alerts", "rules": [ { "delayInMins": 5, "condition": "NOT_ACKNOWLEDGED", "actions": [ { "targetId": "target-1", "type": "NOTIFY_TEAM_MEMBER" }, { "targetId": "target-2", "type": "NOTIFY_TEAM_MEMBER" } ] } ], "repeat": true, "repeatDelay": 10, "repeatCount": 3, "autoResolveIncidentsAfterRepeat": false, "revertAcknowledgement": true } ``` **Example response** ```json { "escalationPolicy": { "id": "new-escalation-policy-id", "pageId": "12345", "name": "Critical Alerts Policy", "description": "Policy for handling critical alerts", "rules": [ { "delayInMins": 5, "condition": "NOT_ACKNOWLEDGED", "actions": [ { "targetId": "target-1", "type": "NOTIFY_TEAM_MEMBER" }, { "targetId": "target-2", "type": "NOTIFY_TEAM_MEMBER" } ] } ], "repeat": true, "repeatDelay": 10, "repeatCount": 3, "autoResolveIncidentsAfterRepeat": false, "revertAcknowledgement": true }, "message": "Routing rule created successfully." } ``` ## Delete Escalation Policy **Endpoint:** ```bash DELETE /escalation-policies/:id ``` **Example request** ```bash DELETE /escalation-policies/escalationPolicy123 ``` **Example response** ```json { "message": "Escalation policy deleted successfully." } ``` ## Update Escalation Policy **Endpoint:** ```bash PUT /escalation-policies/:id ``` **Example request** ```json { "pageId": "12345", "name": "Updated Critical Alerts Policy", "description": "Updated Policy for handling critical alerts", "rules": [ { "delayInMins": 10, "condition": "NOT_ACKNOWLEDGED", "actions": [ { "targetId": "target-1", "type": "NOTIFY_TEAM_MEMBER" }, { "targetId": "target-2", "type": "NOTIFY_TEAM_MEMBER" } ] } ], "repeat": true, "repeatDelay": 10, "repeatCount": 3, "autoResolveIncidentsAfterRepeat": false, "revertAcknowledgement": true } ``` **Example response** ```json { "escalationPolicy": { "pageId": "12345", "name": "Updated Critical Alerts Policy", "description": "Updated Policy for handling critical alerts", "rules": [ { "delayInMins": 10, "condition": "NOT_ACKNOWLEDGED", "actions": [ { "targetId": "target-1", "type": "NOTIFY_TEAM_MEMBER" }, { "targetId": "target-2", "type": "NOTIFY_TEAM_MEMBER" } ] } ], "repeat": true, "repeatDelay": 10, "repeatCount": 3, "autoResolveIncidentsAfterRepeat": false, "revertAcknowledgement": true }, "message": "Routing rule updated successfully." } ``` --- # On-call Schedules API Reference Source: https://instatus.com/help/api/on-call-schedules ## Possible Values for fields **Restriction Type** | Value | Description | | --------------- | -------------------------------------------- | | `NONE` | No restriction | | `TIMEOFDAY` | Restriction based on a specific time of day | | `TIMEINTERVALS` | Restriction based on specific time intervals | **Rotation Type** | Value | Description | | -------- | ---------------------------------- | | `DAILY` | Rotation occurs daily | | `WEEKLY` | Rotation occurs weekly | | `CUSTOM` | Rotation follows a custom schedule | **Days Of Week** | Value | Description | | ----------- | ----------- | | `SATURDAY` | Saturday | | `SUNDAY` | Sunday | | `MONDAY` | Monday | | `TUESDAY` | Tuesday | | `WEDNESDAY` | Wednesday | | `THURSDAY` | Thursday | | `FRIDAY` | Friday | ## Get On-call Schedule Members **Endpoint:** ```bash GET /on-call-schedules/:id/members ``` **Example request** ```bash GET /on-call-schedules/clzmgn2ze40301poblv9e1pq5/members ``` **Example response** ```json { "currentMembers": [ { "id": "clh8nmaan72592bfokqjqd95s1", "name": null, "email": "member1@email.com", "avatar": "https://example.com/avatar.jpg" } ], "nextMembers": [ { "id": "clzajmm98115510h5olxn5i7ljr", "name": null, "email": "member2@email.com", "avatar": null } ], "allMembers": [ { "id": "clh8nmaan72592bfokqjqd95s1", "name": null, "email": "member1@email.com", "avatar": "https://example.com/avatar.jpg" }, { "id": "clzajmm98115510h5olxn5i7ljr", "name": null, "email": "member2@email.com", "avatar": null } ] } ``` ## Create On-call Schedule **Endpoint:** ```bash POST /on-call-schedules ``` **Example request** ```json { "name": "Primary On-call Schedule", "description": "This schedule is for the primary on-call team.", "onCallShifts": [ { "name": "Primary", "members": [ { "teamMemberId": "member123", "color": "#FF5733" }, { "teamMemberId": "member456", "color": "#33C4FF" } ], "rotationType": "WEEKLY", "customRotationTypeValue": null, "customRotationTypeUnit": null, "startDate": "2023-08-08T08:00:00Z", "endDate": "2024-08-21T08:42:00.000Z", "restrictionType": "TIMEINTERVALS", "timeOfDayRestrictionStartTime": null, "timeOfDayRestrictionEndTime": null, "timeIntervals": [ { "startDay": "SATURDAY", "startDayTime": "1970-01-01T21:00:00.000Z", "endDay": "SUNDAY", "endDayTime": "1970-01-01T03:00:00.000Z" } ] } ] } ``` **Example response** ```json { "id": "clzmgn2ze40301poblv9e1pq5", "name": "Primary On-call Schedule", "description": "This schedule is for the primary on-call team.", "status": "ACTIVE", "onCallShifts": [ { "id": "clzmgn2zt40361pobj78giwf7", "name": "Primary", "order": 1, "members": [ { "id": "clzmgn2zt40401pobjzq0pwjd", "order": 3, "color": "#0470a6", "teamMember": { "id": "member123", "user": { "id": "clh8nmaan72592bfokqjqd95s1", "name": null, "email": "member12@email.com", "avatar": null } } }, { "id": "clzmgn2zt40381pob690bwaxx", "order": 1, "color": "#195397", "teamMember": { "id": "member456", "user": { "id": "clzajmm98115510h5olxn5i7ljr", "name": null, "email": "member45@email.com", "avatar": null } } } ], "rotationType": "WEEKLY", "customRotationTypeValue": null, "customRotationTypeUnit": null, "startDate": "2024-08-09T08:42:34.557Z", "endDate": "2024-08-21T08:42:00.000Z", "restrictionType": "TIMEINTERVALS", "timeOfDayRestrictionStartTime": null, "timeOfDayRestrictionEndTime": null, "timeIntervals": [ { "id": "clzmjq8bn313521ioblyzg7hic", "startDay": "SATURDAY", "startDayTime": "1970-01-01T21:00:00.000Z", "endDay": "SUNDAY", "endDayTime": "1970-01-01T03:00:00.000Z" } ] } ] } ``` ## Update On-call Schedule **Endpoint:** ```bash PUT /on-call-schedules/:id ``` **Example request** ```bash PUT /on-call-schedules/clzmgn2ze40301poblv9e1pq5 ``` ```json { "id": "clzmgn2ze40301poblv9e1pq5", "name": "Name Update", "description": "This schedule is for the primary on-call team.", "status": "ACTIVE", "onCallShifts": [ { "id": "clzmgn2zt40361pobj78giwf7", "name": "Primary", "order": 1, "members": [ { "id": "clzmgn2zt40401pobjzq0pwjd", "order": 3, "color": "#0470a6", "teamMember": { "id": "member123", "user": { "id": "clh8nmaan72592bfokqjqd95s1", "name": null, "email": "member12@email.com", "avatar": null } } }, { "id": "clzmgn2zt40381pob690bwaxx", "order": 1, "color": "#195397", "teamMember": { "id": "member456", "user": { "id": "clzajmm98115510h5olxn5i7ljr", "name": null, "email": "member45@email.com", "avatar": null } } } ], "rotationType": "WEEKLY", "customRotationTypeValue": null, "customRotationTypeUnit": null, "startDate": "2024-08-09T08:42:34.557Z", "endDate": "2024-08-21T08:42:00.000Z", "restrictionType": "TIMEINTERVALS", "timeOfDayRestrictionStartTime": null, "timeOfDayRestrictionEndTime": null, "timeIntervals": [ { "id": "clzmjq8bn313521ioblyzg7hic", "startDay": "SATURDAY", "startDayTime": "1970-01-01T21:00:00.000Z", "endDay": "SUNDAY", "endDayTime": "1970-01-01T03:00:00.000Z" } ] } ] } ``` **Example response** ```json { "id": "clzmgn2ze40301poblv9e1pq5", "name": "Name Update", "description": "This schedule is for the primary on-call team.", "status": "ACTIVE", "onCallShifts": [ { "id": "clzmgn2zt40361pobj78giwf7", "name": "Primary", "order": 1, "members": [ { "id": "clzmgn2zt40401pobjzq0pwjd", "order": 3, "color": "#0470a6", "teamMember": { "id": "member123", "user": { "id": "clh8nmaan72592bfokqjqd95s1", "name": null, "email": "member12@email.com", "avatar": null } } }, { "id": "clzmgn2zt40381pob690bwaxx", "order": 1, "color": "#195397", "teamMember": { "id": "member456", "user": { "id": "clzajmm98115510h5olxn5i7ljr", "name": null, "email": "member45@email.com", "avatar": null } } } ], "rotationType": "WEEKLY", "customRotationTypeValue": null, "customRotationTypeUnit": null, "startDate": "2024-08-09T08:42:34.557Z", "endDate": "2024-08-21T08:42:00.000Z", "restrictionType": "TIMEINTERVALS", "timeOfDayRestrictionStartTime": null, "timeOfDayRestrictionEndTime": null, "timeIntervals": [ { "id": "clzmjq8bn313521ioblyzg7hic", "startDay": "SATURDAY", "startDayTime": "1970-01-01T21:00:00.000Z", "endDay": "SUNDAY", "endDayTime": "1970-01-01T03:00:00.000Z" } ] } ] } ``` ## Delete On-call Schedule **Endpoint:** ```bash DELETE /on-call-schedules/:id ``` **Example request** ```bash DELETE /on-call-schedules/schedule-id-1 ``` **Example response** ``` 204 No Content ```