Sign in

Publish notification to users

documented

Publish a push notification to devices associated with one or more user IDs.

POST /publish_api/v1/instances/{instance_id}/publishes/usersBeamsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://{{$instance_id}}.pushnotifications.pusher.com/publish_api/v1/instances/{{$instance_id}}/publishes/users" \
  -X POST \
  -H "Authorization: Bearer {{PUSHER_SECRET}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{ "users": ["{{$user_id}}"], "apns": { "aps": { "alert": { "title": "{{$title}}", "body": "{{$body}}" } } }, "fcm": { "notification": { "title": "{{$title}}", "body": "{{$body}}" } } }'
Publish notification to users · Pusher · OpenIntegrations