Workspace

Register a phone for notifications

Registers the mobile app's Firebase Cloud Messaging token for this user and session (a token registered to another user moves to this one). The device is deactivated when the session ends (/logout, an expired or revoked token). The response is the same as /push/prefs: whether phone notifications are on in the installation (push), types and their phone preference (kinds), quiet hours (quiet), active devices (devices). The installation decides what is sent and when: your own actions are not notified, bursts are combined into one notification, at most 8 per hour, and notifications during quiet hours arrive as one summary in the morning.

POST/api/v1/push/register

Authorization

Authorizationheaderrequired
Bearer token: API key (sk_…), OAuth access token (mcp_…) or mobile session (xk_…).
Scope: crm.write

Body application/json

tokenstringrequired
FCM token (20–512 characters).
platformstringoptional
Platform.
Valuesiosandroid
devicestringoptional
Device label (max 120 characters).
app_versionstringoptional
App version.

Errors

HTTPerrorMeaning
400invalidMissing or invalid field (`message` explains).
Request
curl -X POST https://ornek.solk.app/api/v1/push/register \
  -H "Authorization: Bearer $SOLK_API_KEY"
Response