---
title: "Register a device for redacted Now alerts"
method: POST
path: "/api/assistant/devices"
tags: ["Mailzero Assistant"]
---

# Register a device for redacted Now alerts

`POST /api/assistant/devices`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/assistant/devices`
- Auth: HTTP bearer

Registers or rotates an encrypted push token for one app installation and environment. Only the native app calls this; it requires an active assistant and the assistant:write scope.

## Request body

- object
  - `installation_id` string, required
  - `platform` 'ios' | 'android', required
  - `environment` 'development' | 'preview' | 'production', required
  - `push_token` string, required
  - `locale` string, required
  - `lock_screen_detail` 'redacted' | 'sender_only'

## Response `200`

Device registered

- object
  - `ok` boolean
  - `device` object
    - `id` string
    - `platform` string
    - `environment` string
    - `locale` string
    - `lockScreenDetail` string

## Other responses

- `401`: Missing or invalid API key
- `409`: Assistant is not active (ASSISTANT_NOT_ACTIVE)
- `429`: Rate limit exceeded - wait and retry

---

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