コンテンツにスキップ

Register push subscription (SDK)

POST
/api/v1/subscriptions

SDK-facing endpoint. The target app is derived from the API key, so no appId is needed.

object
endpoint
required
string format: uri
p256dh
required

P-256 public key (base64url, 65 bytes)

string
auth
required

Auth secret (base64url, 16 bytes)

string
platform
string

Updated ({ id })

Created ({ id })

Missing fields or invalid endpoint

Unauthorized

Rate limited (RATE_LIMITED)