Skip to main content
POST
/
users
/
@me
/
push
/
subscribe
Subscribe to push notifications
curl --request POST \
  --url https://api.fluxer.app/v1/users/@me/push/subscribe \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endpoint": "<string>",
  "keys": {
    "p256dh": "<string>",
    "auth": "<string>"
  },
  "user_agent": "<string>"
}
'
{
  "subscription_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.

Body

application/json
endpoint
string
required

The push subscription endpoint URL

keys
object
required
user_agent
string

The user agent string

Response

Success

subscription_id
string
required

The unique identifier for the push subscription