Box Realtime
#
Realtime endpoints#
Getting notificationsThis websocket (wss://
) endpoint open a socket.
Notifications will be shipped through this websocket.
More info on the events format.
#
RequestCookies:
accesstoken
(opaque token) (ACR >= 1): the identity of the token must be the same than the one in the requesttokentype
: must bebearer
#
ResponseThe 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 userThis endpoint allows to create a box and invite a user knowing their identity id and their public profile.
#
RequestCookies:
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: