Skip to main content
POST
/
tokens
/
push
cURL
curl --request POST \
  --url https://our-secret-api-url.com/tokens/push \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "userId": "<string>",
  "title": "<string>",
  "body": "<string>"
}
'
{
  "message": "<string>",
  "data": {
    "fcmTokens": [
      "<string>"
    ],
    "response": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json
userId
string
required
title
string
required
body
string
required

Response

Push notification sent successfully

message
string
data
object