Preview subscriber deliveries
Previews e-mail and webhook deliveries for a status-page update without queueing messages or consuming page limits.
GET https://app.upfour.io/v1/status-pages/{pageID}/mail-preview
Parameters
| Field | Type | Description |
|---|---|---|
pageID required | uuid | path parameter |
kind required | string one ofstartinterimresolution | query parameter · The entry about to be published: start (first entry of a new incident or maintenance, also publishing a draft), interim (an update in between) or resolution (resolved, completed, cancelled). |
update_id optional | uuid | query parameter · The thread the entry belongs to. Its type and components win over type and resource_ids. Without it the thread is new and nobody has been mailed about it yet. |
type optional | string one ofincidentmaintenancereport | query parameter · Type of a thread that does not exist yet (default incident). |
resource_ids optional | string | query parameter · Comma-separated affected components of a thread that does not exist yet; empty means all subscribers. |
Returns
A successful request returns 200 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | MailPreview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MailPreview · 28 fields
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or fails validation. |
| 404 | not_found | The requested resource does not exist or is outside the caller's scope. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.