Push Notifications
Referencia de 5 endpoints generados desde mosend-wb-backend/src/modules/push/push.controller.ts.
Base path:
/push·5 endpoints·Source: mosend-wb-backend/src/modules/push/push.controller.ts/push/config bearer
VAPID public key y disponibilidad del servicio.
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/push/config' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/push/subscribe bearer
Guarda la suscripción Push del browser del usuario.
Body
SubscribeDtoparámetro: dtoRespuestas
- 200
curl -X POST 'https://api.mosend.dev/push/subscribe' \
-H 'X-Api-Key: mk_live_<prefix>.<secret>' \
-H 'Content-Type: application/json' \
-d '{"name": "string","description": "string"}'Response · 200
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/push/subscribe bearer
Elimina una suscripción Push (logout en device, toggle off).
Body
UnsubscribeDtoparámetro: dtoRespuestas
- 204
curl -X DELETE 'https://api.mosend.dev/push/subscribe' \
-H 'X-Api-Key: mk_live_<prefix>.<secret>' \
-H 'Content-Type: application/json' \
-d '{"name": "string","description": "string"}'Response · 200
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}/push/subscriptions bearer
Lista los devices del usuario con push habilitado.
Respuestas
- 200
curl -X GET 'https://api.mosend.dev/push/subscriptions' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
"data": [
{
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
}
],
"timestamp": "2026-05-01T03:42:18.123Z"
}/push/test bearer
Envía una notificación de prueba al usuario actual.
Respuestas
- 200
curl -X POST 'https://api.mosend.dev/push/test' \ -H 'X-Api-Key: mk_live_<prefix>.<secret>'
Response · 200
{
"data": {
"id": "00000000-0000-0000-0000-000000000000",
"createdAt": "2026-05-01T03:42:18.123Z"
},
"timestamp": "2026-05-01T03:42:18.123Z"
}