MonetaryAI / Docs
API ReferenceWeb push

Register the current user's web browser

Stores the FCM token encrypted and returns only the device id/platform. Re-registering the same owned token is idempotent; another account cannot claim an active token.

POST
/api/v1/push/devices

Authorization

bearerAuth
headerAuthorizationBearer <token>

Obtained from POST /api/v1/auth/login, on the tenant's own subdomain. Presenting it on another tenant's subdomain is a 403.

Request Body

application/json
  1. body
token*string
Match[A-Za-z0-9_:.-]+
Length20 <= length <= 4096

Response Body

Existing owned browser registration refreshed

application/json
  1. response
id?string
Formatuuid
platform?string
curl -X POST 'https://api.monetaryai.uz/api/v1/push/devices' \  -H 'Content-Type: application/json' \  -d '{  "token": "stringstringstringst"}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "platform": "string"}