Menu QaldyDocs

Workspaces and invites

Create a workspace, switch between yours, and accept an invite. 8 routes, from the API’s own OpenAPI document.

8 routes. Every path starts at https://cloud-api.qaldy.com. Sign-in, tokens, errors and limits are on the overview.

Routes

MethodPathWhat it does
POST/​v1/​invites/​{token}/​acceptJoin a workspace from an invite link (the invited, verified email only)
GET/​v1/​workspacesWho is signed in and every workspace they are in
POST/​v1/​workspacesCreate a workspace with a starter world (a working sample app, gates, a road)
GET/​v1/​workspaces/​{ws}/​invitesInvites of a workspace, newest first (admins)
POST/​v1/​workspaces/​{ws}/​invitesInvite people by email with a role (admins); each gets a join link
DELETE/​v1/​workspaces/​{ws}/​invites/​{inviteId}Revoke an open invite (admins)
POST/​v1/​workspaces/​{ws}/​invites/​{inviteId}/​resendSend an open invite again with a fresh link; the old link stops working (admins)
POST/​v1/​workspaces/​{ws}/​switchOpen another of your workspaces in this session

Reference

POST /v1/invites/{token}/accept

Join a workspace from an invite link (the invited, verified email only).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: signed in
ParameterInTypeRequiredNotes
tokenpathstringyes

Request body (application/json)

An empty object: {}.

Response 200

FieldTypeRequiredNotes
sessionobjectyes
session.userobjectyes
session.workspaceIdstringyesat least 1 characters
session.workspaceRole"owner" · "admin" · "builder" · "member" · "viewer"yes
session.devLoginbooleanyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/workspaces

Who is signed in and every workspace they are in.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).

Response 200

FieldTypeRequiredNotes
userobjectyes
user.kind"user"yes
user.idstringyesat least 1 characters
user.namestringyesat least 1 characters
user.emailstringyesat least 3 characters
user.initialsstringyes1 to 3 characters
user.color"sky" · "pool" · "bubblegum" · "leaf" · "lilac" · "sun" · "tangerine" · "tomato"yes
itemsobject[]yes
items[].idstringyesat least 1 characters
items[].namestringyesat least 1 characters
items[].slugstringyesat least 1 characters
items[].profile"global" · "eu" · "kz-standard" · "kz-strict"yes
items[].role"owner" · "admin" · "builder" · "member" · "viewer"yes
items[].memberCountintegeryesat least 0
currentIdstring or nullyesat least 1 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces

Create a workspace with a starter world (a working sample app, gates, a road).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).

Request body (application/json)

FieldTypeRequiredNotes
namestringyes2 to 60 characters
profile"global" · "eu" · "kz-standard" · "kz-strict"yes
teamSize"solo" · "small" · "medium" · "large"yes
intentsstring[]yesup to 3 items
locale"en" · "ru" · "kk"
timezonestringup to 64 characters
currency"EUR" · "USD" · "KZT"

Response 200

FieldTypeRequiredNotes
workspaceobjectyes
workspace.idstringyesat least 1 characters
workspace.slugstringyesat least 1 characters
workspace.namestringyesat least 1 characters
workspace.profile"global" · "eu" · "kz-standard" · "kz-strict"yes
workspace.cell"global" · "eu" · "kz"yes
workspace.locale"en" · "ru" · "kk"yes
workspace.timezonestringyesat least 1 characters
workspace.hourlyCostMinorintegeryesat least 0
workspace.currency"EUR" · "USD" · "KZT"yes
workspace.memberCountintegeryesat least 0
sessionobjectyes
session.userobjectyes
session.workspaceIdstringyesat least 1 characters
session.workspaceRole"owner" · "admin" · "builder" · "member" · "viewer"yes
session.devLoginbooleanyes
starterobjectyes
starter.sampleAppIdstring or nullyesat least 1 characters
starter.appIdsstring[]yes
starter.gateIdsstring[]yes
starter.roadIdsstring[]yes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

GET /v1/workspaces/{ws}/invites

Invites of a workspace, newest first (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
itemsobject[]yes
items[].idstringyesat least 1 characters
items[].emailstringyesat least 3 characters
items[].role"admin" · "builder" · "member" · "viewer"yes
items[].status"pending" · "accepted" · "revoked" · "expired"yes
items[].invitedBystringyesat least 1 characters
items[].createdAtstring (date-time)yes
items[].expiresAtstring (date-time)yes
items[].accessEndsAtstring (date-time) or nulldefault null

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/invites

Invite people by email with a role (admins); each gets a join link.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

FieldTypeRequiredNotes
emailsstring[]yesup to 20 items
role"admin" · "builder" · "member" · "viewer"yes
expiresInDaysinteger1 to 30
accessEndsAtstring (date-time)
deliver"email" · "link"
locale"en" · "ru" · "kk"

Response 200

FieldTypeRequiredNotes
itemsobject[]yes
items[].idstringyesat least 1 characters
items[].emailstringyesat least 3 characters
items[].role"admin" · "builder" · "member" · "viewer"yes
items[].status"pending" · "accepted" · "revoked" · "expired"yes
items[].invitedBystringyesat least 1 characters
items[].createdAtstring (date-time)yes
items[].expiresAtstring (date-time)yes
items[].accessEndsAtstring (date-time) or nulldefault null
delivery"email" · "dev-log" · null or nullyes
linksobject[]default
links[].inviteIdstringyesat least 1 characters
links[].emailstringyesat least 3 characters
links[].linkstringyesat least 10 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

DELETE /v1/workspaces/{ws}/invites/{inviteId}

Revoke an open invite (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
inviteIdpathstringyes

Response 200

FieldTypeRequiredNotes
oktrueyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/invites/{inviteId}/resend

Send an open invite again with a fresh link; the old link stops working (admins).

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
  • Who: admin
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
inviteIdpathstringyes

Request body (application/json)

FieldTypeRequiredNotes
deliver"email" · "link"
locale"en" · "ru" · "kk"

Response 200

FieldTypeRequiredNotes
itemsobject[]yes
items[].idstringyesat least 1 characters
items[].emailstringyesat least 3 characters
items[].role"admin" · "builder" · "member" · "viewer"yes
items[].status"pending" · "accepted" · "revoked" · "expired"yes
items[].invitedBystringyesat least 1 characters
items[].createdAtstring (date-time)yes
items[].expiresAtstring (date-time)yes
items[].accessEndsAtstring (date-time) or nulldefault null
delivery"email" · "dev-log" · null or nullyes
linksobject[]default
links[].inviteIdstringyesat least 1 characters
links[].emailstringyesat least 3 characters
links[].linkstringyesat least 10 characters

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

POST /v1/workspaces/{ws}/switch

Open another of your workspaces in this session.

  • Authentication: the console’s session cookie.
  • Token: not available. This route is for a signed-in person in the console (403 console_only for a token).
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Request body (application/json)

An empty object: {}.

Response 200

FieldTypeRequiredNotes
userobjectyes
user.kind"user"yes
user.idstringyesat least 1 characters
user.namestringyesat least 1 characters
user.emailstringyesat least 3 characters
user.initialsstringyes1 to 3 characters
user.color"sky" · "pool" · "bubblegum" · "leaf" · "lilac" · "sun" · "tangerine" · "tomato"yes
workspaceIdstringyesat least 1 characters
workspaceRole"owner" · "admin" · "builder" · "member" · "viewer"yes
devLoginbooleanyes

Errors: 400, 401, 403, 404, 409, 429 (the error format is on the overview).

Type to search. Up and down to choose, Enter to open, Esc to close.