---
title: "Turn email alerts on or off and set the cadence"
method: PUT
path: "/alert-settings"
tags: ["Alerts"]
---

# Turn email alerts on or off and set the cadence

`PUT /alert-settings`

## Request

- Base URL: `https://ai.redreplier.com/ai-app/api/v1`
- URL: `https://ai.redreplier.com/ai-app/api/v1/alert-settings`
- Auth: HTTP bearer

A cadence faster than the plan allows is clamped to the plan floor.

## Headers

- `X-Workspace-Id` string

## Request body

- UpdateAlertSettingsRequest
  - `enabled` boolean, required
  - `cadenceMinutes` integer: Clamped up to the plan floor when it is too fast.

## Response `200`

Alert settings

- AlertSettings
  - `enabled` boolean, required
  - `cadenceMinutes` integer, required
  - `minIntervalMinutes` integer: Fastest cadence this plan allows.
  - `availableCadences` integer[]: Selectable cadences, in minutes.

## Other responses

- `400`: Validation error
- `401`: Missing, invalid, expired or revoked API key or access token. `code: token_issuer_lost_access` means the member who created the API key was deactivated or lost access to the workspace: ask a workspace admin for a new key
- `403`: The credentials are valid but cannot be used here. `code: permission_denied`: the workspace role behind the API key or OAuth sign-in lacks `redreplier.write`; `role`, `keyRole` and `issuerRole` say which role fell short. `code: subscription_required`: the organization plan does not include API access. `code: workspace_access_denied`: `X-Workspace-Id` names a workspace the caller cannot reach, or an API key was sent to a workspace other than its own
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/redreplier/apis/redreplier-public-api.md) · [All operations](https://skmtc.dev/redreplier/apis/redreplier-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/redreplier/apis/redreplier-public-api/revisions/4388cca3045e?raw)
