Skip to main content
Version: 1.1.5

Common - Create a new relay room

POST 

/create-room

Creates a room for the given number of parties. A room is a one time instance used to perform a single MPC operation (e.g. keygen/signing/refresh.) with multiple parties. This function should be called in the backend only so that the API key is not embedded in code that is distributed to the users. After the backend calls this function, the other parties can join the room by calling the relevant keygen/signing/refresh/etc. operation.

Request

Header Parameters

    AUTHORIZATION stringrequired

    The AUTHORIZATION header must be set to the API Key of the user. The API Key is returned when a new user is created using the /admin/create-user endpoint.

Body

required

    room_size uint16required

    Possible values: >= 1

Responses

Schema

    room_uuid stringrequired
Loading...