Skip to main content
POST
/
api
/
system
/
web-push-subscriptions
Register a web push subscription
curl --request POST \
  --url https://api.propops.app/api/system/web-push-subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "endpoint": "https://fcm.googleapis.com/fcm/send/...",
  "public_key": "<string>",
  "auth_token": "<string>",
  "csrf_token": "abc123def456",
  "browser": "Chrome"
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
endpoint
string<uri>
required
Example:

"https://fcm.googleapis.com/fcm/send/..."

public_key
string
required
auth_token
string
required
csrf_token
string
required
Example:

"abc123def456"

browser
string
Example:

"Chrome"

Response

Subscription registered

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"