Skip to Content
Uptimeify Docs
Incident management

Personal Notification Settings

How Incident Management reaches you: channels, notification rules per urgency, channels per severity, phone verification, test notifications and your notification log.

GET /api/im/notification-settings · PATCH /api/im/notification-settings · PUT /api/im/notification-settings/channels · PUT /api/im/notification-settings/severity · POST /api/im/notification-settings/rules · DELETE /api/im/notification-settings/rules/:id · POST /api/im/notification-settings/verify-phone · POST /api/im/notification-settings/verify-phone-confirm · POST /api/im/notification-settings/test · GET /api/im/notification-settings/caller-ids · GET /api/im/notification-settings/logs

When an escalation pages you, these settings decide how you are reached. Every endpoint on this page reads and writes the settings of the calling user. An organization admin can also set them for you (User notification settings); the last write wins, and lastAdminChangeAt tells you when that happened. Your settings are created on first access, starting from the organization's default notifications if one is set.

Concepts

  • Channels: push (mobile app), sms, voice and email.
  • Rules form your personal notification chain per urgency (high or low): "after delayMinutes, notify me via channel". A delay of 0 notifies immediately; delays run from 0 to 1440 minutes. The same urgency/delay/channel combination exists at most once.
  • Severity filter (severityChannels): per incident severity (sev1 to sev4), which channels may be used. It is stored sparse: a severity or channel that is not listed is allowed. {"sev4": {"sms": false, "voice": false}} keeps low-severity incidents off your phone and changes nothing else.
  • Phone: sms and voice are delivered only to a verified phone number in E.164 format (+ followed by 7 to 15 digits, e.g. +491701234567). You can store sms/voice rules before the number is verified: they wait, and every page in the meantime is logged as skipped with reason unverified. Changing the number resets the verification.

Authentication

Any IM-eligible role (admin, editor, responder) with a user session. Incident Management must be enabled for the organization. Personal settings belong to a person: an organization-wide API token receives 403 (imAccessDenied), the log endpoint 403 (imUserSessionRequired).

Get your settings

GET /api/im/notification-settings

Example (cURL)

curl -X GET "$BASE_URL/api/im/notification-settings" \
  -b "$SESSION_COOKIE" \
  -H "Accept: application/json"

Response

{
  "id": 31,
  "phoneNumber": "+491701234567",
  "phoneVerified": true,
  "channels": { "push": true, "sms": true, "email": true },
  "severityChannels": { "sev4": { "sms": false, "voice": false } },
  "rules": [
    { "id": 201, "urgency": "high", "delayMinutes": 0, "channel": "push" },
    { "id": 202, "urgency": "high", "delayMinutes": 5, "channel": "sms" },
    { "id": 203, "urgency": "low", "delayMinutes": 0, "channel": "email" }
  ],
  "lastAdminChangeAt": "2026-10-28T09:12:00.000Z",
  "lastAdminChangeBy": { "id": "usr_admin", "name": "Ada Admin" }
}

rules are sorted by urgency, then delay. lastAdminChangeAt is when an organization admin last set these settings (null if never); lastAdminChangeBy is that admin, null if never or the account no longer exists.

Change phone number or channel switches

PATCH /api/im/notification-settings

Request Body

FieldTypeRequiredDescription
phoneNumberstring or nullNoE.164 number, or null to remove it. A new number is unverified until confirmed, and any pending verification code is discarded. Existing sms/voice rules stay, but are skipped while the number is unverified.
channelsobjectNoChannel switches (push, sms, voice, email → boolean), merged into the stored ones.

Example (cURL)

curl -X PATCH "$BASE_URL/api/im/notification-settings" \
  -b "$SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"phoneNumber":"+491701234567"}'

Response

{
  "id": 31,
  "phoneNumber": "+491701234567",
  "phoneVerified": false,
  "channels": { "push": true, "email": true }
}

Set channels in one step

PUT /api/im/notification-settings/channels

The simple form of the rule chain: per channel, on or off with one delay, applied to both urgencies. For every channel named in the request, its existing rules are replaced; channels not named stay as they are.

Request Body

FieldTypeRequiredDescription
channelsobjectYesAt least one of push, sms, voice, email, each { "enabled": boolean, "delayMinutes": 0..1440 }.

Example (cURL)

curl -X PUT "$BASE_URL/api/im/notification-settings/channels" \
  -b "$SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"channels":{"push":{"enabled":true,"delayMinutes":0},"sms":{"enabled":true,"delayMinutes":5}}}'

Response

{
  "channels": { "push": true, "sms": true },
  "rules": [
    { "id": 210, "urgency": "high", "delayMinutes": 0, "channel": "push" },
    { "id": 211, "urgency": "high", "delayMinutes": 5, "channel": "sms" },
    { "id": 212, "urgency": "low", "delayMinutes": 0, "channel": "push" },
    { "id": 213, "urgency": "low", "delayMinutes": 5, "channel": "sms" }
  ]
}

Set the severity filter

PUT /api/im/notification-settings/severity

Replaces the stored filter as a whole.

Request Body

FieldTypeRequiredDescription
severityChannelsobjectYesKeys sev1 to sev4, each an object of push/sms/voice/email → boolean. Unlisted severities and channels are allowed. {} allows everything.

Example (cURL)

curl -X PUT "$BASE_URL/api/im/notification-settings/severity" \
  -b "$SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"severityChannels":{"sev4":{"sms":false,"voice":false}}}'

Response

{
  "severityChannels": { "sev4": { "sms": false, "voice": false } }
}

Add a rule

POST /api/im/notification-settings/rules

Request Body

FieldTypeRequiredDescription
urgencystringYeshigh or low.
delayMinutesintegerYes0 to 1440.
channelstringYespush, sms, voice or email. sms and voice are stored without a verified number too and wait until it is verified.

Example (cURL)

curl -X POST "$BASE_URL/api/im/notification-settings/rules" \
  -b "$SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"urgency":"high","delayMinutes":10,"channel":"voice"}'

Response

{ "id": 214, "urgency": "high", "delayMinutes": 10, "channel": "voice" }

Delete a rule

DELETE /api/im/notification-settings/rules/:id

Deletes one of your rules. Returns { "success": true }.

Verify your phone number

POST /api/im/notification-settings/verify-phone sends a 6-digit code by SMS to the stored number. The code is valid for 10 minutes and allows 5 attempts. At most 3 codes per hour can be requested.

{ "sent": true }

POST /api/im/notification-settings/verify-phone-confirm confirms it:

FieldTypeRequiredDescription
codestringYesThe 6-digit code.
curl -X POST "$BASE_URL/api/im/notification-settings/verify-phone-confirm" \
  -b "$SESSION_COOKIE" \
  -H "Content-Type: application/json" \
  -d '{"code":"482913"}'
{ "phoneVerified": true }

Send a test notification

POST /api/im/notification-settings/test

Sends a test message on each channel you have switched on (a channel with at least one rule), as a sev1 incident would reach you after your severity filter. Channels that are switched off send nothing. No incident is created. At most 5 per hour, shared with the setup test page.

{
  "results": [
    { "channel": "email", "ok": true },
    { "channel": "sms", "ok": false, "errorMessage": "phone_not_verified" },
    { "channel": "push", "ok": true },
    { "channel": "voice", "ok": true }
  ]
}

errorMessage values: disabled_by_settings (channel switched off, or filtered out by your severity filter), phone_not_verified, no_email_on_account, voice_not_configured (no voice provider configured), or the provider's error message.

The voice test is a real call with the same script as a page (see Alert calls). Press 4 during the call and it answers that the test worked, so you know the keypress reaches us. It is placed through seven.io only and is not redialled.

Alert calls

How a voice rule calls you:

  • It starts with "Uptimeify alert.", so call screening and answering assistants hear who is calling before the incident text.
  • The incident text and the instruction "press 4 to acknowledge" are read three times. After the last round the call waits about 10 seconds for the key. 4 acknowledges the incident and the call confirms it; any other key does not.
  • The phone rings for 45 seconds.
  • If the call ends without the 4, it is redialled once after one minute: not answered, busy, declined, failed, and also answered by voicemail or call screening, however long the call lasted. If seven.io's call status does not reach us, the redial comes about four minutes after the first call instead. An acknowledgement in the meantime cancels the redial. A redial is never redialled, and the test call is never redialled. After that the rest of your chain carries on as configured.
  • If seven.io is unavailable, the call fails over to lox24. lox24 reads the same text and redials once on its own, but it cannot capture the keypress and reports no call status: acknowledge through the link in your SMS, email or push.

Caller numbers

GET /api/im/notification-settings/caller-ids

The phone numbers alert calls and SMS come from, in E.164 format. Save them as one contact and allow that contact through Do Not Disturb (iPhone: contact, Edit, Ringtone, Emergency Bypass; Android: mark as favourite and allow favourites in Do Not Disturb). Alphanumeric SMS senders and providers without a fixed number are not listed, so both lists can be empty. The notifications page offers the list as a .vcf contact.

{
  "smsNumbers": ["+4915112345678"],
  "voiceNumbers": ["+4930123456789"]
}

Your notification log

GET /api/im/notification-settings/logs

Every notification Incident Management scheduled, sent, skipped, cancelled or failed for you, newest first.

Query parameters

ParameterTypeRequiredDescription
limitintegerNo1 to 100, default 50.
beforeintegerNoReturn entries older than this entry id; use nextCursor (current form: nextBefore) of the previous page.
envelopestringNoitems: answer as { items, nextCursor, hasMore }. Becomes the default on 2027-01-18.

Response

{
  "items": [
    {
      "id": 99812,
      "at": "2026-10-10T07:12:03.000Z",
      "kind": "notification_sent",
      "channel": "sms",
      "reason": null,
      "errorMessage": null,
      "provider": "seven",
      "status": null,
      "retry": false,
      "tier": 1,
      "repeat": 0,
      "delayMinutes": 5,
      "urgency": "high",
      "incident": { "id": "1834", "title": "API 5xx rate above 5 %", "severity": "sev2", "status": "acknowledged" }
    }
  ],
  "hasMore": true,
  "nextCursor": "99812"
}

List form: with envelope=items the page arrives as { items, nextCursor, hasMore }, nextCursor as a string. Without it the endpoint still answers the current form ({ entries, hasMore, nextBefore }, nextBefore as a number), which is deprecated; { items, ... } becomes the default on 2027-01-18.

kind is one of notification_scheduled, notification_sent, notification_failed, notification_cancelled, notification_skipped, notification_delivery; reason and errorMessage explain skips and failures.

notification_delivery is the provider's report on an SMS or call that was sent, in status: delivered or undelivered for SMS, ringing, answered, no_answer, busy, rejected or failed for calls. status is null on all other kinds. retry is true on the redial of a call that ended without the 4 and on its notification_scheduled entry (delayMinutes: 1), otherwise false.

Deprecated field: in the test results and the log entries, error is still sent next to errorMessage until it is removed on 2027-01-18. Read errorMessage.

Common errors

  • 400 Bad Request (invalidRequestBody) for an invalid body or query: unknown channel or urgency, delay outside 0 to 1440 or not a JSON integer (a string such as "5" is rejected), malformed severityChannels, a code that is not 6 digits, limit/before out of range
  • 400 Bad Request (invalidPhoneNumber) when phoneNumber is not in E.164 format
  • 401 Unauthorized when not authenticated
  • 403 Forbidden (imAccessDenied) when the caller has no IM-eligible role, or calls with an organization-wide API token
  • 403 Forbidden (imUserSessionRequired) when reading the log with an organization-wide API token
  • 403 Forbidden (imNotEnabled) when Incident Management is not enabled for the organization
  • 404 Not Found (imNotificationRuleNotFound) when the rule does not exist or is not yours
  • 409 Conflict (imNotificationRuleExists) when the same urgency/delay/channel rule already exists
  • 422 Unprocessable Entity (imPhoneNotSet) when requesting a code without a stored number
  • 422 Unprocessable Entity (imPhoneVerifyCodeInvalid, imPhoneVerifyCodeExpired, imPhoneVerifyTooManyAttempts) when the code is wrong, older than 10 minutes, or tried too often
  • 429 Too Many Requests (imPhoneVerifyRateLimited) after 3 codes in an hour; (imTestNotificationRateLimited) after 5 test notifications in an hour. Both carry retryAfterSeconds.
  • 502 Bad Gateway (imPhoneVerifySendFailed) when the code message could not be sent (provider rejected it or is unreachable)

On this page