---
title: "Save Push Token"
method: POST
path: "/api/users/{user_id}/push-token"
tags: ["Notifications"]
---

# Save Push Token

`POST /api/users/{user_id}/push-token`

## Request

- Base URL: `https://api.earmarkiq.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.earmarkiq.app/api/users/{user_id}/push-token`
- Auth: HTTP bearer

Save the device push notification token.

Tokens are exclusive per device: if any other user rows currently hold
this token (e.g. a shared test device), they are cleared first so the
cron loop does not fan out duplicate notifications to the same phone.

## Path parameters

- `user_id` string, uuid, required

## Request body

- PushTokenRequest
  - `push_token` string, required

## Response `200`

Successful Response

- PushTokenResponse
  - `success` boolean, required

## Other responses

- `422`: Validation Error

---

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