Skip to main content

Probar Notificaciones Móviles

Peticiones POST​

Enviar una notificación a un dispositivo específico​

Request​

  • Método: POST
  • Ruta: URL BASE + notification-test/send_test_notification/
  • Content-Type: application/json
  • Header: Authorization: Token XXXXXXXXXXXXXXXXX
Payload
{
"tokens": "token1", // o ["token1", "token2", "token3"]
"message": "Nuevo mensaje de prueba",
"survey_id": "12345", // opcional
"notification_type": "news" // o "survey"
}

Response​

Respuesta Éxitosa​
  • Status: 200
Respuesta
[
{
"message": "Notification sent",
"response": []
}
]
Respuesta Vacía​
  • Status: 204
Respuesta
{ "message": "No posee token" }