Menu QaldyDocs

People and roles

Members, roles, access end dates, invites, joining by company domain and handing a workspace over. 11 routes, from the API’s own OpenAPI document.

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

Routes

MethodPathWhat it does
GET/​v1/​me/​join-suggestionsWorkspaces your verified company address can join in one click
POST/​v1/​workspaces/​{ws}/​joinJoin a workspace whose verified company domain matches your verified address
GET/​v1/​workspaces/​{ws}/​join-domainThe company-domain rule: which domain, whether it is verified, who may join (admins)
PUT/​v1/​workspaces/​{ws}/​join-domainClaim a company domain: returns the DNS record that proves it is yours (admins)
PATCH/​v1/​workspaces/​{ws}/​join-domainTurn auto-join on or off and pick Member or Viewer, once verified (admins)
DELETE/​v1/​workspaces/​{ws}/​join-domainForget the company domain: nobody can join with it any more (admins)
POST/​v1/​workspaces/​{ws}/​join-domain/​verifyLook for the DNS record and, if it is there, verify the domain (admins)
GET/​v1/​workspaces/​{ws}/​membersEveryone in the workspace with their role, the people with most say first
PATCH/​v1/​workspaces/​{ws}/​members/​{userId}Change someone's role, or the date their access ends (admins)
DELETE/​v1/​workspaces/​{ws}/​members/​{userId}Remove someone (admins), or leave the workspace yourself (anyone but the last owner)
POST/​v1/​workspaces/​{ws}/​members/​{userId}/​transfer-ownershipHand the workspace to someone else and become an admin (the owner only)

Reference

GET /v1/me/join-suggestions

Workspaces your verified company address can join in one click.

  • 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

Response 200

FieldTypeRequiredNotes
itemsobject[]yes
items[].workspaceIdstringyesat least 1 characters
items[].namestringyesat least 1 characters
items[].memberCountintegeryesat least 0
items[].role"member" · "viewer"yes

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

POST /v1/workspaces/{ws}/join

Join a workspace whose verified company domain matches your verified address.

  • 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, verified address
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

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/{ws}/join-domain

The company-domain rule: which domain, whether it is verified, who may join (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
domainstring or nullyes
status"none" · "pending" · "verified"yes
recordobject or nullyes
record.type"TXT"yes
record.hoststringyes
record.valuestringyes
autoJoinbooleanyes
role"member" · "viewer"yes
verifiedAtstring (date-time) or nullyes
suggestionstring or nullyes

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

PUT /v1/workspaces/{ws}/join-domain

Claim a company domain: returns the DNS record that proves it is yours (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

Request body (application/json)

FieldTypeRequiredNotes
domainstringyes3 to 253 characters

Response 200

FieldTypeRequiredNotes
domainstring or nullyes
status"none" · "pending" · "verified"yes
recordobject or nullyes
record.type"TXT"yes
record.hoststringyes
record.valuestringyes
autoJoinbooleanyes
role"member" · "viewer"yes
verifiedAtstring (date-time) or nullyes
suggestionstring or nullyes

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

PATCH /v1/workspaces/{ws}/join-domain

Turn auto-join on or off and pick Member or Viewer, once verified (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

Request body (application/json)

FieldTypeRequiredNotes
autoJoinboolean
role"member" · "viewer"

Response 200

FieldTypeRequiredNotes
domainstring or nullyes
status"none" · "pending" · "verified"yes
recordobject or nullyes
record.type"TXT"yes
record.hoststringyes
record.valuestringyes
autoJoinbooleanyes
role"member" · "viewer"yes
verifiedAtstring (date-time) or nullyes
suggestionstring or nullyes

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

DELETE /v1/workspaces/{ws}/join-domain

Forget the company domain: nobody can join with it any more (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
oktrueyes

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

POST /v1/workspaces/{ws}/join-domain/verify

Look for the DNS record and, if it is there, verify the domain (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

Request body (application/json)

An empty object: {}.

Response 200

FieldTypeRequiredNotes
domainstring or nullyes
status"none" · "pending" · "verified"yes
recordobject or nullyes
record.type"TXT"yes
record.hoststringyes
record.valuestringyes
autoJoinbooleanyes
role"member" · "viewer"yes
verifiedAtstring (date-time) or nullyes
suggestionstring or nullyes

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

GET /v1/workspaces/{ws}/members

Everyone in the workspace with their role, the people with most say first.

  • 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: member (viewers too)
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters

Response 200

FieldTypeRequiredNotes
youstringyesat least 1 characters
yourRole"owner" · "admin" · "builder" · "member" · "viewer"yes
itemsobject[]yes
items[].userobjectyes
items[].role"owner" · "admin" · "builder" · "member" · "viewer"yes
items[].joinedAtstring (date-time)yes
items[].accessEndsAtstring (date-time) or nullyes
items[].onlinebooleanyes

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

PATCH /v1/workspaces/{ws}/members/{userId}

Change someone's role, or the date their access ends (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
userIdpathstringyes

Request body (application/json)

FieldTypeRequiredNotes
role"owner" · "admin" · "builder" · "member" · "viewer"
accessEndsAtstring (date-time) or null

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
role"owner" · "admin" · "builder" · "member" · "viewer"yes
joinedAtstring (date-time)yes
accessEndsAtstring (date-time) or nullyes
onlinebooleanyes

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

DELETE /v1/workspaces/{ws}/members/{userId}

Remove someone (admins), or leave the workspace yourself (anyone but the last owner).

  • 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; or yourself (leave)
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
userIdpathstringyes

Response 200

FieldTypeRequiredNotes
oktrueyes

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

POST /v1/workspaces/{ws}/members/{userId}/transfer-ownership

Hand the workspace to someone else and become an admin (the owner 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: owner
ParameterInTypeRequiredNotes
wspathstringyes1 to 128 characters
userIdpathstringyes

Request body (application/json)

FieldTypeRequiredNotes
confirmNamestringyes1 to 120 characters

Response 200

FieldTypeRequiredNotes
oktrueyes

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.