Store Firebase notification tokens Run in API Explorer

View as markdown
POST /api/v1/mobile/notification-token
application/json

Body Required

  • token string Required

    The Firebase (FCM) token generated to be used for native iOS/Android notifications.

Responses

  • 401 application/json
    Hide response attribute Show response attribute object
    • message string
POST /api/v1/mobile/notification-token
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/mobile/notification-token' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"token":"9ZPz4Om6CbUTgfTW5JWJ7LBqBNgep93oYxk0MaOGglOvSaFYk4Rt54QluIUsdU5O70Y5JmeWeyGKRD3ek98ePyrqcXkQWg8rDPfwOE97ZBhbNQk6yjMhuBmgdDDS8dYzD3rWyQaYxFpE0p"}'
Request examples
{
  "token": "9ZPz4Om6CbUTgfTW5JWJ7LBqBNgep93oYxk0MaOGglOvSaFYk4Rt54QluIUsdU5O70Y5JmeWeyGKRD3ek98ePyrqcXkQWg8rDPfwOE97ZBhbNQk6yjMhuBmgdDDS8dYzD3rWyQaYxFpE0p"
}
Response examples (401)
{
  "message": "Unauthenticated."
}