Session API

API for creating, joining, and managing user sessions.

Session API provides a set of endpoints for group management

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
AuthorizationstringRequired

Bearer schema token issued by wallet verification.

X-API-KEYstringRequired

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

Body
passwordstring | nullableOptionalDeprecated
whiteListAddressesstring[] | nullableOptionalDeprecated
Responses
200

Success

post
/session
POST /v1/session HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
X-API-KEY: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 184

{
  "identity": {
    "name": "text",
    "chainAddress": "text"
  },
  "rules": {
    "userCapacity": 1,
    "expiryDurationInSeconds": 1,
    "password": "text",
    "allowOnlyWhitelistedAddresses": true,
    "whiteListAddresses": []
  }
}
{
  "sessionId": "text",
  "expiresIn": 1,
  "credentials": {
    "token": "text",
    "id": "text",
    "pseudonym": "text",
    "role": "text"
  },
  "rules": {
    "expiry": 1,
    "maxFiles": 1,
    "maxUsers": 1,
    "maxTotalMegaBytes": 1,
    "passwordProtected": true,
    "whiteListAddresses": []
  }
}

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
200

Success

post
/session/join
POST /v1/session/join HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38

{
  "sessionId": "text",
  "password": "text"
}
{
  "sessionId": "text",
  "expiresIn": 1,
  "credentials": {
    "token": "text",
    "id": "text",
    "pseudonym": "text",
    "role": "text"
  },
  "rules": {
    "maxFiles": 1,
    "maxUsers": 1,
    "maxTotalMegaBytes": 1,
    "passwordProtected": true,
    "whiteListAddresses": [
      "text"
    ]
  },
  "users": [
    {
      "id": "text",
      "role": "text",
      "name": "text",
      "address": "text"
    }
  ]
}

Get the current session

get

Retrieves the current session for the authenticated user.

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Responses
200

Success

get
/session/current
GET /v1/session/current HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "id": "text",
  "creatorId": "text",
  "expiry": 1,
  "maxFiles": 1,
  "maxUsers": 1,
  "users": [
    {
      "id": "text",
      "role": "text",
      "name": "text",
      "address": "text"
    }
  ],
  "maxTotalMegaBytes": 1,
  "passwordProtected": true,
  "whiteListAddresses": [
    "text"
  ]
}

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
200

Success

No content

post
/session/current/kick
POST /v1/session/current/kick HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "userId": "text"
}
200

Success

No content

Disconnect user from session

post

Trigger a disconnect from session

Authorizations
AuthorizationstringRequired

Bearer schema token issued by session credentials

Responses
200

Success

No content

post
/session/disconnect
POST /v1/session/disconnect HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
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
200

Session deleted successfully.

No content

delete
/session/current
DELETE /v1/session/current HTTP/1.1
Host: api.quicksync.me
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Session deleted successfully.

No content

Last updated