Registers a new push notification subscription for the current user. Takes push endpoint and encryption keys from a Web Push API subscription. Returns subscription ID for future reference.
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>"
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
Success
The unique identifier for the push subscription
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>"
}