Skip to main content
POST
/
notifications
/
push-tokens
Registrar push token
curl --request POST \
  --url https://api.example.com/notifications/push-tokens \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "platform": "<string>"
}
'
{
  "message": "Push token registrado exitosamente."
}
Requiere autenticación con Bearer token.
token
string
required
Token del dispositivo para notificaciones push (FCM o APNs).
platform
string
required
Plataforma del dispositivo. Valores permitidos: ios, android.

Respuesta

message
string
Mensaje de confirmación del registro.
{
  "message": "Push token registrado exitosamente."
}