Skip to main content
POST
/
v1
/
push
/
messages
Enviar notificações push
curl --request POST \
  --url https://api.notifique.dev/v1/push/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": [
    "clxxdevice1..."
  ],
  "title": "Olá!",
  "body": "Você tem uma nova mensagem.",
  "url": "https://seusite.com/notificacoes"
}
'
{
  "success": true,
  "data": {
    "status": "QUEUED",
    "count": 123,
    "pushIds": [
      "<string>"
    ],
    "scheduledAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Authorization: Bearer sk_live_xxxxx

Headers

Idempotency-Key
string

Chave única para evitar envio duplicado.

x-idempotency-key
string

Body

application/json
to
string[]
required
Required array length: 1 - 100 elements
title
string
Maximum string length: 256
body
string
Maximum string length: 4096
url
string
icon
string
image
string
data
object
schedule
object
options
object

Response

Resposta em cache (idempotency): mesma resposta do 202 da primeira chamada.

success
boolean
required
Example:

true

data
object
required