Session API

API for creating, joining, and managing user sessions.

Session API provides a set of endpoints for group management

circle-exclamation

Create a session

post

Creates a new session with the specified parameters. Pass in an identity to assume a specific name and address in the session.

Authorizations
X-API-KEYstringRequired

API key issued for beta developers for creating/joining sessions.

AuthorizationstringRequired

Bearer schema token issued by wallet verification.

Body
passwordstring · nullableOptionalDeprecated
whiteListAddressesstring[] · nullableOptionalDeprecated
Responses
chevron-right
200

Success

sessionIdstring · nullableOptional
expiresIninteger · int32Optional
post
/session

Join a session

post

Allows a user to join an existing session. Requires Authorization header with bearer token generated from wallet proof.

Authorizations
AuthorizationstringRequired

Bearer schema token issued by wallet verification.

Body
sessionIdstring · nullableOptional
passwordstring · nullableOptional
Responses
chevron-right
200

Success

sessionIdstring · nullableOptional
expiresIninteger · int32Optional
post
/session/join

Get the current session

get

Retrieves the current session for the authenticated user.

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Responses
chevron-right
200

Success

idstring · nullableOptional
creatorIdstring · nullableOptional
expiryinteger · int32Optional
maxFilesinteger · int32Optional
maxUsersinteger · int32Optional
maxTotalMegaBytesinteger · int64Optional
passwordProtectedbooleanOptional
whiteListAddressesstring[] · nullableOptional
get
/session/current

Kick user from session

post

Kick a user from the current session

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Body
userIdstring · nullableOptional
Responses
chevron-right
200

Success

No content

post
/session/current/kick
200

Success

No content

Disconnect user from session

post

Trigger a disconnect from session

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Responses
chevron-right
200

Success

No content

post
/session/disconnect
200

Success

No content

Delete the current session

delete

Deletes the session of the authenticated user with host role.

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Responses
chevron-right
200

Session deleted successfully.

No content

delete
/session/current
200

Session deleted successfully.

No content

Last updated