TTWrite API: Save Notification Token

Endpoint URL

//ttwrite.4up.eu/mobile_api/save_pnotif_token

Description

This API allows users to register or update their notification token, enabling push notifications for updates, alerts, and messages.

Parameters

FieldValueRemarks
user_idintegerThe unique identifier of the user.
device_idstringThe unique identifier for the user’s device.
notification_tokenstringThe notification token generated by the user’s device.

Example Usage

POST //ttwrite.4up.eu/mobile_api/save_pnotif_token
Content-Type: application/json

{
"user_id": 12345,
"device_id": "device123",
"notification_token": "abcdef12345"
}

Notes

  • Authentication is required to access this API.
  • Ensure that the notification_token is valid and correctly formatted.
  • The saved token will be used for sending push notifications to the user’s device.