latestOpenAPI 3.0.02026-08-10416661.5 MB

e96b3e58b041

Users

Add push token for user device

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.

post/users/devices

Query parameters

type'apple' | 'android' required
Example:apple

Device type

tokenstring required
Example:token

Push token

Response

OK

idinteger
push_tokenstring