---
title: "Subscribe to or unsubscribe from an optional-email family"
method: PATCH
path: "/users/me/email-preferences"
tags: ["Users"]
---

# Subscribe to or unsubscribe from an optional-email family

`PATCH /users/me/email-preferences`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/users/me/email-preferences`
- Auth: HTTP bearer

Expressed as SUBSCRIBED (`{"digest": false}` stops the activity digest). Merges, so a payload naming one family leaves the others untouched. An unknown family is rejected rather than ignored.

## Request body

- object
  - `welcomeD2` boolean
  - `welcomeD5` boolean
  - `digest` boolean
  - `survey` boolean

## Response `200`

- object
  - `preferences` object[], required
    - `key` 'welcomeD2' | 'welcomeD5' | 'digest' | 'survey', required
    - `subscribed` boolean, required: True while this family still reaches the caller.

## Other responses

- `400`: Unknown family or non-boolean value.
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `404`: User not found

---

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