Box Users
Contact#
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:
Box Settings#
The box settings are unique per user settings for a given box.
We don’t manage it with events because it is specific to each user and does not describe the box state.
It is stored in a different place and is not returned with the actual box.
Updating a box setting#
Request#
Cookies:
accesstoken(opaque token) (ACR >= 1): identity must be the same than the requested identity.tokentype: must bebearer
Headers:
X-CSRF-Token: a token to prevent from CSRF attacks.
Path Parameters:
id(string): the identity idbid(string): the box id
JSON Body:
muted(bool): is the user notified on a box update;
Response#
Code:
Getting a Box Setting#
Request#
Cookies:
accesstoken(opaque token) (ACR >= 1): identity must be the same than the requested identity.tokentype: must bebearer
Headers:
X-CSRF-Token: a token to prevent from CSRF attacks.
Path Parameters:
id(string): the identity idbid(string): the box id
Response#
Code:
JSON Body:
identity_id(string) (uuid): the identity id.box_id(string) (uuid): the box id.muted(bool):is the user notified on a box update?
Batch joins#
Request#
Cookies:
accesstoken(opaque token) (ACR >= 2): identity must be the same than the requested identity.tokentype: must bebearer
Headers:
X-CSRF-Token: a token to prevent from CSRF attacks.
Path Parameters:
id(string): the identity id
JSON Body:
box_ids: (array, string) ids of the newly joined boxes
Response#
Code:
JSON Body: