Box Realtime
Realtime endpoints#
Getting notifications#
This websocket (wss://) endpoint open a socket.
Notifications will be shipped through this websocket.
More info on the events format.
Request#
Cookies:
accesstoken(opaque token) (ACR >= 1): the identity of the token must be the same than the one in the requesttokentype: must bebearer
Response#
The Websocket Protocol handshake is interpreted by HTTP servers as an Upgrade request. The responses are similar to HTTP classic responses.
Code:
The websocket is then open.
Other endpoints#
Contacting another user#
This endpoint allows to create a box and invite a user knowing their identity id and their public profile.
Request#
Cookies:
accesstoken(opaque token) (ACR >= 1): the identity of the token must be the same than the one in the requesttokentype: must bebearer
Headers:
X-CSRF-Token: a token to prevent from CSRF attacks.
JSON Body:
Note that public_key and invitation_share_hash must be in unpadded url-safe base64.
When the box is created, it already contains a first event
of type create that contains all the information about the creation of the box.
Response#
_
JSON Body: