POST
/v1/push/subscriptionsCreate push subscriptions
Record a browser's push subscription — the endpoint and the two keys the browser itself minted — so notifications can reach it when the app is closed. Idempotent on the endpoint and it re-attaches the browser to whoever is calling, so a client may send it on every enable.
Access class: workspace.
Send request
Use the documented inputs to call this endpoint directly.
API serverbase URL
Bearer tokensessionoptional
Stored only in this browser for the session security scheme and reused on every API page in this group.
Request body
application/jsonrequiredbodyoptional
paramsobjectoptional
queryobjectoptional
Responses
201application/json
the action's answer
{
"data": {
"created_at": "string",
"endpoint": "string",
"id": 1.5,
"user_agent": "string",
"user_id": 1.5
}
}datarequired
defaultapplication/json
a refusal: {"error": "<what a person needs to read>"}. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.
{
"error": "string"
}errorstringrequired