---
title: "Create incident notification settings for a user"
method: POST
path: "/api/public/v1/user/{userId}/incident-notification-settings"
tags: ["UserIncidentNotificationSettingsResource"]
---

# Create incident notification settings for a user

`POST /api/public/v1/user/{userId}/incident-notification-settings`

## Request

- Base URL: `https://allquiet.app` (the document declares no server; this is the origin it was published from)
- URL: `https://allquiet.app/api/public/v1/user/{userId}/incident-notification-settings`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/allquiet/apis/all-quiet-public-api/docs/api/public/v1/user/:userId/incident-notification-settings/post.ts> (a function with typed inputs; its response is checked against the schema)

Initializes incident notification preferences for the specified user.

**Required API key permissions**

- **Scope:** `user-incident-notification-settings:create`
- **Accepted key types:** organization API key (org-wide), personal access token (org-wide)
- **Access:** User-linked keys (personal access tokens) may only act on their own user.
- **Self access:** personal access tokens may write their linked user's resource even when the user belongs to multiple organizations.
- **Notes:** Personal access tokens may only modify their linked user's settings.

## Path parameters

- `userId` string, uuid, required

## Query parameters

- `organizationId` string, uuid
- `provision` boolean

## Request body

- AllQuietApiPublicUsersUserIncidentNotificationSettingsResourceRequest
  - `phoneNumber` string, nullable
  - `shouldSendSMS` boolean, nullable
  - `delayInMinSMS` integer, nullable
  - `severitiesSMS` string[], nullable
  - `shouldCallVoice` boolean, nullable
  - `delayInMinVoice` integer, nullable
  - `severitiesVoice` string[], nullable
  - `shouldSendPush` boolean, nullable
  - `delayInMinPush` integer, nullable
  - `severitiesPush` string[], nullable
  - `shouldSendEmail` boolean, nullable
  - `delayInMinEmail` integer, nullable
  - `severitiesEmail` string[], nullable
  - `disabledIntentsEmail` string[], nullable
  - `disabledIntentsVoice` string[], nullable
  - `disabledIntentsPush` string[], nullable
  - `disabledIntentsSMS` string[], nullable
  - `phoneNumberConfirmations` AllQuietApiAuthenticationModelsPhoneNumberConfirmation[], nullable
    - `phoneNumber` string, nullable
    - `confirmedAt` string, date-time, nullable
    - `requestedAt` string, date-time, nullable
    - `confirmationCode` string, nullable
    - `type` string, nullable

## Response `200`

OK

- AllQuietApiPublicUsersUserIncidentNotificationSettingsResourceResponse
  - `userId` string, uuid, required
  - `isProvisioned` boolean
  - `phoneNumber` string, nullable
  - `shouldSendSMS` boolean, nullable
  - `delayInMinSMS` integer, nullable
  - `severitiesSMS` string[], nullable
  - `shouldCallVoice` boolean, nullable
  - `delayInMinVoice` integer, nullable
  - `severitiesVoice` string[], nullable
  - `shouldSendPush` boolean, nullable
  - `delayInMinPush` integer, nullable
  - `severitiesPush` string[], nullable
  - `shouldSendEmail` boolean, nullable
  - `delayInMinEmail` integer, nullable
  - `severitiesEmail` string[], nullable
  - `disabledIntentsEmail` string[], nullable
  - `disabledIntentsVoice` string[], nullable
  - `disabledIntentsPush` string[], nullable
  - `disabledIntentsSMS` string[], nullable

---

[API](https://skmtc.dev/allquiet/apis/all-quiet-public-api.md) - [All operations](https://skmtc.dev/allquiet/apis/all-quiet-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/allquiet/apis/all-quiet-public-api/revisions/bd7da0475359?raw)
