---
title: "Add push token for user device"
method: POST
path: "/users/devices"
tags: ["Users"]
---

# Add push token for user device

`POST /users/devices`

REQUIRED SCOPES <code>[‘users:write’]</code><br>This API endpoint request adds a token that is responsible for receiving push notifications when logged in so that the user’s device is capable of receiving pushes. <br><br>The POST request is sent as the user logs into the mobile application. <br><br>As a result, the user can receive notifications each time a message arrives to them.

## Query parameters

- `type` 'apple' | 'android', required
- `token` string, required

## Response `200`

OK

- UserDeviceResource — Class UserDeviceResource
  - `id` integer
  - `type` UserDeviceTypeResource — Class UserDeviceTypeResource
    - `id` integer
    - `name` string
    - `slug` integer
  - `push_token` string

---

[API](https://skmtc.net/salesmessage/apis/salesmessage-public-api.md) · [All operations](https://skmtc.net/salesmessage/apis/salesmessage-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/salesmessage/salesmessage-public-api/revisions/e96b3e58b041/schema)
