Box Users
#
Contact#
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:
#
Box SettingsThe 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#
RequestCookies:
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;
#
ResponseCode:
#
Getting a Box Setting#
RequestCookies:
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
#
ResponseCode:
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#
RequestCookies:
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
#
ResponseCode:
JSON Body: