General notices are persistent banners shown on your status page (separate from incidents and maintenances). Use these endpoints to manage them programmatically.
Endpoint:
GET /v1/:page_id/generic-notices?page=:page&per_page=:per_page
Example response:
[{"id": "cl9mq0ah50646mpvlmbrvf979","name": "Scheduled DNS migration","message": "We are migrating our DNS provider over the next week.","messageHtml": "<p>We are migrating our DNS provider over the next week.</p>","notify": false,"isCollapsed": false,"createdAt": "2022-10-24T11:53:46.505Z","updatedAt": "2022-10-24T11:53:46.505Z","siteId": "cl9fzgilx14063qjvl5oqdtxtg","importedFrom": null}]
Endpoint:
GET /v1/:page_id/generic-notices/:generic_notice_id
Example response:
{"id": "cl9mq0ah50646mpvlmbrvf979","name": "Scheduled DNS migration","message": "We are migrating our DNS provider over the next week.","messageHtml": "<p>We are migrating our DNS provider over the next week.</p>","notify": false,"isCollapsed": false,"createdAt": "2022-10-24T11:53:46.505Z","updatedAt": "2022-10-24T11:53:46.505Z","siteId": "cl9fzgilx14063qjvl5oqdtxtg","importedFrom": null}
Endpoint:
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:
{"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:
{"id": "cl9xobpoe00614tvldhh90t0w","name": "Scheduled DNS migration","message": "We are migrating our DNS provider over the next week.","messageHtml": "<p>We are migrating our DNS provider over the next week.</p>","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."}}}
Endpoint:
PUT /v1/:page_id/generic-notices/:generic_notice_id
Only the fields you send are updated.
Example request:
{"name": "Scheduled DNS migration (rescheduled)","message": "The migration has been rescheduled to next month.","isCollapsed": true}
Example response:
{"id": "cl9xobpoe00614tvldhh90t0w","name": "Scheduled DNS migration (rescheduled)","message": "The migration has been rescheduled to next month.","messageHtml": "<p>The migration has been rescheduled to next month.</p>","notify": false,"isCollapsed": true,"createdAt": "2022-11-01T03:52:08.126Z","updatedAt": "2022-11-02T09:14:22.501Z","siteId": "cl9fzgilx14063qjvl5oqdtxtg","importedFrom": null}
Endpoint:
DELETE /v1/:page_id/generic-notices/:generic_notice_id
Example response:
{"id": "cl9xobpoe00614tvldhh90t0w","name": "Scheduled DNS migration (rescheduled)","message": "The migration has been rescheduled to next month.","messageHtml": "<p>The migration has been rescheduled to next month.</p>","notify": false,"isCollapsed": true,"createdAt": "2022-11-01T03:52:08.126Z","updatedAt": "2022-11-02T09:14:22.501Z","siteId": "cl9fzgilx14063qjvl5oqdtxtg","importedFrom": null}