curl --request POST \
--url https://api.notifique.dev/v1/push/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"clxxdevice1..."
],
"type": "push",
"payload": {
"title": "Olá!",
"body": "Você tem uma nova mensagem.",
"url": "https://seusite.com/notificacoes",
"icon": "https://seusite.com/icon.png"
},
"options": {
"priority": "high",
"notification": {
"tag": "inbox",
"requireInteraction": true
},
"webhook": {
"url": "https://api.seudominio.com/hooks/push-events"
}
},
"metadata": {
"deeplink": "order/99"
}
}
'{
"success": true,
"data": {
"status": "QUEUED",
"count": 2,
"messageIds": [
"clxx1...",
"clxx2..."
]
}
}Enviar push
Envía notificaciones push a uno o más dispositivos registrados. Pase los IDs en to. Elija el ejemplo: notificación completa, plantilla del workspace o programada. Permisos: Ámbitos de la API Key.
curl --request POST \
--url https://api.notifique.dev/v1/push/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"clxxdevice1..."
],
"type": "push",
"payload": {
"title": "Olá!",
"body": "Você tem uma nova mensagem.",
"url": "https://seusite.com/notificacoes",
"icon": "https://seusite.com/icon.png"
},
"options": {
"priority": "high",
"notification": {
"tag": "inbox",
"requireInteraction": true
},
"webhook": {
"url": "https://api.seudominio.com/hooks/push-events"
}
},
"metadata": {
"deeplink": "order/99"
}
}
'{
"success": true,
"data": {
"status": "QUEUED",
"count": 2,
"messageIds": [
"clxx1...",
"clxx2..."
]
}
}Autorizações
Authorization: Bearer sk_live_xxxxx
Corpo
Envio canônico: to (device IDs, 1–500) e conteúdo em payload.
IDs de dispositivos push registrados.
1 - 500 elementspush (conteúdo livre em payload) ou template (payload.templateId).
push, template Conteúdo conforme type. push: pelo menos title ou body. template: templateId obrigatório.
Show child attributes
Show child attributes
App de push: id ou nome.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Metadados em PushLog.metadata (string→string).
Show child attributes
Show child attributes
Locale alvo para tradução por destinatário (opcional).
Show child attributes
Show child attributes
Traduções manuais por locale (ex.: {"en": {"title": "Hi", "body": "…"}}).
Esta página foi útil?

