Send a targeted notification to a specific user via Firebase. Admin only.Request: Bearer token (admin)Body:user_key, title, body, optional image_urlSuccess:200 - returns { success, message } only (no data).Errors:401 - invalid token | 403 - not an admin | 404 - target user not found | 422 - missing fields
Request
Body Params application/jsonRequired
Example
{"body":"Check what the stars say for you today.","event_name":"daily_horoscope","interval_name":"Every 12 hours","metadata":{"event":"daily_horoscope"},"title":"Your daily horoscope is ready","user_name":"Test user"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'/api/v1/notifications/custom' \
--header'Content-Type: application/json' \
--data'{
"body": "Check what the stars say for you today.",
"event_name": "daily_horoscope",
"interval_name": "Every 12 hours",
"metadata": {
"event": "daily_horoscope"
},
"title": "Your daily horoscope is ready",
"user_name": "Test user"
}'