Alerts
Unsubscribe a browser from push
Remove one browser's push subscription.
/api/v1/notifications/pushRemoving an endpoint that isn't subscribed is not an error.
Authentication
Send the session cookie. Without it the answer is unauthorized. How sessions work.
Body
JSON, with content-type: application/json.
endpointURLrequiredThe endpoint that was subscribed.
- At most 2,000 characters
Response
200 OK, with every field below present. Times are ISO 8601 strings in UTC.
emailobject | nullThe alert address. Null when none is set.
Show the 2 fields insideInside email
addressstringWhere alert emails go.
verifiedbooleanFalse until the confirmation link has been used.
pushDevicesintegerHow many browsers are subscribed to push.
capabilitiesobjectWhich channels this server can use.
Show the 2 fields insideInside capabilities
emailbooleanWhether this server can send email at all.
pushPublicKeystring | nullThe key a browser subscribes with. Null when push is off.
Errors
| Status | Kind | When |
|---|---|---|
| 400 | bad_request | The body isn't JSON, or doesn't match the shape below. message names the first field to fix, and fields lists each one with its path. |
| 401 | unauthorized | The request has no session cookie, or one we don't recognise. |
| 413 | payload_too_large | The body is over 16 KB. No route takes anything near that. |
Any route can also answer 500 with internal_error. Every error has the same shape, described in Errors.