Reference
Docs spaces
Docs spaces: list, read, create, change, archive and restore them, and who holds a role in one.
List spaces
/orgs/{org}/spacesScope: docs:read
The Docs spaces the token's person can open, by name, as the spaces directory lists them: filter (all current spaces, the ones they watch or starred, team or personal spaces, archived ones, or trashed ones for people who can restore them), q (words in the name or key) and category.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
Query parameters
limitintegerHow many items a page holds, 1 to 200.
from 1 to 200; default 50
cursorstringThe next_cursor of the previous page; leave it out for the first page.
at most 1000 characters
countstringtrue adds total, the number of items in the whole list.
one of: true, false
filterstringall (the default) and the others.
one of: all, watching, starred, team, personal, archived, trashed
qstringat most 200 characters
categorystringat most 40 characters
fieldsstringOnly these fields, comma-separated: id, key, name, icon, personal, categories, owner, status, status_at, starred, watching. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of SpaceSummaryRequiredShow 11 fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpersonalbooleanRequiredcategoriesarray of stringRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredstarredbooleanRequiredThe token's person starred it.
watchingbooleanRequiredThe token's person watches it.
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/spaces" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/spaces",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"personal": false,
"categories": [
"team"
],
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "current",
"status_at": null,
"starred": true,
"watching": false
}
],
"next_cursor": null
}Create a space
/orgs/{org}/spacesScope: docs:write
Creates a Docs space as the token's person, as the app's Create space does: it needs the organisation's "Create spaces", and the person gets the creator's role the organisation set (Admin by default). Without a key, one is made from the name. The space starts with its home page and the purpose's features unless features are given.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
Headers
Idempotency-KeystringA unique key (such as a uuid): the same key and body within 24 hours gets the first answer again without a second create; another body gets 422.
1 to 200 characters
Body
namestringRequired1 to 200 characters
keystring2 to 10 letters or digits, starting with a letter.
2 to 10 characters
iconstringAn emoji; ๐ by default.
1 to 16 characters
purposestringRequiredone of: collaboration, knowledge_base, custom
featuresarray of stringat most 7 items
only_mebooleanOrganisation admins: give access to no one else (the default groups aren't added).
Answer
201 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpurposestringRequiredone of: collaboration, knowledge_base, custom, personal
personalbooleanRequireddescriptionstringRequiredcategoriesarray of stringRequiredhome_page_idstring (uuid) or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredfeaturesarray of stringRequiredcreated_atstring (date-time)RequiredUTC, with Z.
permissionsarray of stringRequiredWhat the token's person may do in the space (its space permissions, as the app reads them).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }422
idempotency_key_reusedidempotency_key_reused: The same Idempotency-Key was sent within 24 hours with a different body.{ "error": { "code": "idempotency_key_reused", "message": "The same Idempotency-Key was sent within 24 hours with a different body.", "status": 422, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X POST "https://projqo.example/api/v1/orgs/{org}/spaces" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"key": "string",
"icon": "string",
"purpose": "collaboration",
"features": [
"blogs"
],
"only_me": true
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"key": "string",
"icon": "string",
"purpose": "collaboration",
"features": [
"blogs"
],
"only_me": true
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/spaces",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"name": "string",
"key": "string",
"icon": "string",
"purpose": "collaboration",
"features": [
"blogs",
],
"only_me": True,
},
)
print(res.status_code, res.json())Sample answer 201
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"purpose": "knowledge_base",
"personal": false,
"description": "How we work.",
"categories": [
"team"
],
"home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "current",
"status_at": null,
"features": [
"blogs",
"folders",
"live_docs"
],
"created_at": "2026-11-19T09:00:00.000Z",
"permissions": [
"add_comments",
"create_content",
"edit_content",
"view_space"
]
}Get a space
/orgs/{org}/spaces/{space}Scope: docs:read
One space, by its key (an old key still finds it) or id, with what the token's person may do in it. A space they can't open answers 404, as a missing one.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
spacestringRequiredA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
Query parameters
fieldsstringOnly these fields, comma-separated: id, key, name, icon, purpose, personal, description, categories, home_page_id, owner, status, status_at, features, created_at, permissions. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpurposestringRequiredone of: collaboration, knowledge_base, custom, personal
personalbooleanRequireddescriptionstringRequiredcategoriesarray of stringRequiredhome_page_idstring (uuid) or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredfeaturesarray of stringRequiredcreated_atstring (date-time)RequiredUTC, with Z.
permissionsarray of stringRequiredWhat the token's person may do in the space (its space permissions, as the app reads them).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/spaces/{space}" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"purpose": "knowledge_base",
"personal": false,
"description": "How we work.",
"categories": [
"team"
],
"home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "current",
"status_at": null,
"features": [
"blogs",
"folders",
"live_docs"
],
"created_at": "2026-11-19T09:00:00.000Z",
"permissions": [
"add_comments",
"create_content",
"edit_content",
"view_space"
]
}Change a space
/orgs/{org}/spaces/{space}Scope: docs:write
Changes the space's details, as its Space details settings do: it needs "Manage space features" in the space. A new key keeps the old one as an alias; the owner must be someone with access to the space; the home page must be a page of the space. Key and owner changes are in the audit log.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
spacestringRequiredA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
Body
namestring1 to 200 characters
iconstring1 to 16 characters
keystring2 to 10 characters
ownerstringA person's id, or their email address.
1 to 320 characters
descriptionstringat most 2000 characters
categoriesarray of stringat most 20 items
home_page_idstring (uuid) or null
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpurposestringRequiredone of: collaboration, knowledge_base, custom, personal
personalbooleanRequireddescriptionstringRequiredcategoriesarray of stringRequiredhome_page_idstring (uuid) or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredfeaturesarray of stringRequiredcreated_atstring (date-time)RequiredUTC, with Z.
permissionsarray of stringRequiredWhat the token's person may do in the space (its space permissions, as the app reads them).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
archivedarchived: The item (or its project) is archived, so it can't be changed. conflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "archived", "message": "The item (or its project) is archived, so it can't be changed.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }413
too_largetoo_large: The body or a file is larger than allowed.{ "error": { "code": "too_large", "message": "The body or a file is larger than allowed.", "status": 413, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }415
unsupported_media_typeunsupported_media_type: The body isn't JSON.{ "error": { "code": "unsupported_media_type", "message": "The body isn't JSON.", "status": 415, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X PATCH "https://projqo.example/api/v1/orgs/{org}/spaces/{space}" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "string",
"icon": "string",
"key": "string",
"owner": "string",
"description": "string",
"categories": [
"string"
],
"home_page_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "string",
"icon": "string",
"key": "string",
"owner": "string",
"description": "string",
"categories": [
"string"
],
"home_page_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.patch(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"name": "string",
"icon": "string",
"key": "string",
"owner": "string",
"description": "string",
"categories": [
"string",
],
"home_page_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"purpose": "knowledge_base",
"personal": false,
"description": "How we work.",
"categories": [
"team"
],
"home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "current",
"status_at": null,
"features": [
"blogs",
"folders",
"live_docs"
],
"created_at": "2026-11-19T09:00:00.000Z",
"permissions": [
"add_comments",
"create_content",
"edit_content",
"view_space"
]
}Archive a space
/orgs/{org}/spaces/{space}/archiveScope: docs:write
Archives the space, as its settings do: it needs "Archive the space". An archived space is read-only and leaves the sidebar and the create lists until it is restored. Archiving an archived space changes nothing.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
spacestringRequiredA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpurposestringRequiredone of: collaboration, knowledge_base, custom, personal
personalbooleanRequireddescriptionstringRequiredcategoriesarray of stringRequiredhome_page_idstring (uuid) or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredfeaturesarray of stringRequiredcreated_atstring (date-time)RequiredUTC, with Z.
permissionsarray of stringRequiredWhat the token's person may do in the space (its space permissions, as the app reads them).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X POST "https://projqo.example/api/v1/orgs/{org}/spaces/{space}/archive" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/archive", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}/archive",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"purpose": "knowledge_base",
"personal": false,
"description": "How we work.",
"categories": [
"team"
],
"home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "archived",
"status_at": null,
"features": [
"blogs",
"folders",
"live_docs"
],
"created_at": "2026-11-19T09:00:00.000Z",
"permissions": [
"add_comments",
"create_content",
"edit_content",
"view_space"
]
}Restore a space
/orgs/{org}/spaces/{space}/restoreScope: docs:write
Restores an archived space ("Archive the space"), or a space in the trash ("Delete the space"), as its settings and the directory's trash do.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
spacestringRequiredA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkeystringRequirednamestringRequirediconstringRequiredpurposestringRequiredone of: collaboration, knowledge_base, custom, personal
personalbooleanRequireddescriptionstringRequiredcategoriesarray of stringRequiredhome_page_idstring (uuid) or nullRequiredownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
statusstringRequiredone of: current, archived, trashed
status_atstring (date-time) or nullRequiredfeaturesarray of stringRequiredcreated_atstring (date-time)RequiredUTC, with Z.
permissionsarray of stringRequiredWhat the token's person may do in the space (its space permissions, as the app reads them).
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation. refused: The token's person can see the thing but may not do this; the message says why. read_only: The organisation is read-only (over the Free plan's people, or a payment is overdue).{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }409
conflictconflict: The thing changed since it was read, or the change clashes with its state.{ "error": { "code": "conflict", "message": "The thing changed since it was read, or the change clashes with its state.", "status": 409, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X POST "https://projqo.example/api/v1/orgs/{org}/spaces/{space}/restore" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/restore", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}/restore",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook",
"icon": "๐",
"purpose": "knowledge_base",
"personal": false,
"description": "How we work.",
"categories": [
"team"
],
"home_page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"status": "current",
"status_at": null,
"features": [
"blogs",
"folders",
"live_docs"
],
"created_at": "2026-11-19T09:00:00.000Z",
"permissions": [
"add_comments",
"create_content",
"edit_content",
"view_space"
]
}List a space's people
/orgs/{org}/spaces/{space}/peopleScope: docs:read
Who holds a role or custom access in the space, as its Users page shows it to anyone who can open the space: groups first, then people, by name. type picks people, guests or groups; q looks in names (and emails, which guests don't see).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
spacestringRequiredA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
Query parameters
limitintegerHow many items a page holds, 1 to 200.
from 1 to 200; default 50
cursorstringThe next_cursor of the previous page; leave it out for the first page.
at most 1000 characters
countstringtrue adds total, the number of items in the whole list.
one of: true, false
qstringat most 200 characters
typestringone of: person, guest, group
fieldsstringOnly these fields, comma-separated: kind, id, name, email, guest, members, role, permissions. id always comes; the fields not asked for are left out, required or not.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
itemsarray of SpaceHolderRequiredShow 8 fields
kindstringRequiredone of: person, group
idstring (uuid)RequiredThe person's or the group's id.
namestringRequiredemailstring or nullRequiredA person's email; null for groups, and for guests reading it.
guestbooleanRequiredmembersinteger or nullRequiredA group's number of members.
roleobject or nullRequiredThe space role; null for custom access.
Show 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
permissionsarray of stringRequired
next_cursorstring or nullRequiredPass as cursor to read the next page; null on the last page.
totalintegerThe number of items in the whole list, with count=true.
Errors
400
invalidinvalid: A value is wrong or missing, or a parameter is unknown. Every problem is in details.{ "error": { "code": "invalid", "message": "A value is wrong or missing, or a parameter is unknown. Every problem is in details.", "status": 400, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }401
invalid_tokeninvalid_token: No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).{ "error": { "code": "invalid_token", "message": "No token was sent, or it is wrong, expired or revoked, or its person is no longer a member (or is now a guest).", "status": 401, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }403
insufficient_scopeinsufficient_scope: The token doesn't have the scope this call needs (named in WWW-Authenticate). api_off: The organisation's admins have switched the API off. suspended: projqo has suspended the organisation.{ "error": { "code": "insufficient_scope", "message": "The token doesn't have the scope this call needs (named in WWW-Authenticate).", "status": 403, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }404
not_foundnot_found: Nothing is at this address, or the token's person can't see it: the answer is the same.{ "error": { "code": "not_found", "message": "Nothing is at this address, or the token's person can't see it: the answer is the same.", "status": 404, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }429
rate_limitedrate_limited: Too many calls in this minute, for the token or for the whole organisation.{ "error": { "code": "rate_limited", "message": "Too many calls in this minute, for the token or for the whole organisation.", "status": 429, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }500
internalinternal: Something went wrong on projqo's side (never your mistake).{ "error": { "code": "internal", "message": "Something went wrong on projqo's side (never your mistake).", "status": 500, "request_id": "5b0c4d2e-8f1a-4c3b-9d7e-6a5f4e3d2c1b" } }
Request
curl -X GET "https://projqo.example/api/v1/orgs/{org}/spaces/{space}/people" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/people", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status, await res.json());import os
import requests
res = requests.get(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}/people",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"kind": "group",
"id": "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"name": "Designers",
"email": null,
"guest": false,
"members": 4,
"role": {
"id": "4d5e6f7a-8b9c-4d0e-9f1a-2b3c4d5e6f7a",
"key": "viewer",
"name": "Viewer"
},
"permissions": [
"view_space"
]
}
],
"next_cursor": null
}