Reference
Docs pages
A space's page tree; pages read and written as projqo's document JSON or Markdown, with version checks and publishing; move, copy, the trash and restore, versions, and the deleted-pages feed.
- GETList a level of a space's tree
- POSTCreate a page
- GETList deleted pages
- GETGet a page
- PATCHChange a page
- DELETEDelete a page
- POSTPublish a page
- POSTMove a page
- POSTCopy a page
- GETList a page's versions
- GETGet a version of a page
- POSTRestore a version
- GETList a space's trash
- POSTRestore from the trash
- DELETEDelete for good
List a level of a space's tree
/orgs/{org}/spaces/{space}/pagesScope: docs:read
The space's tree, one level at a time in its order, as the sidebar shows it: the top level, or the children of parent. Drafts are listed for their author only; archived items and blog posts aren't in the tree; a page a view restriction keeps from the person isn't listed, nor anything under it.
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
parentstring (uuid)A page of the space: its children. Leave it out for the top level.
The id comes from List a level of a space's tree.
fieldsstringOnly these fields, comma-separated: id, kind, title, emoji, draft, parent_id, has_children, updated_at, created_by. 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 PageSummaryRequiredShow 9 fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredemojistring or nullRequireddraftbooleanRequiredNever published (only its author sees it).
parent_idstring (uuid) or nullRequirednull at the top of the space.
has_childrenbooleanRequiredupdated_atstring (date-time)RequiredUTC, with Z.
created_bystring (uuid) or nullRequired
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}/pages" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/pages", {
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}/pages",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"draft": false,
"parent_id": null,
"has_children": true,
"updated_at": "2026-12-01T10:15:00.000Z",
"created_by": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a"
}
],
"next_cursor": null
}Create a page
/orgs/{org}/spaces/{space}/pagesScope: docs:write
Creates a page (or a live doc, folder or smart link, where the space's features allow them) as the token's person, under parent_id or at the top of the space: it needs "Add pages" in the space. A page is published as its version 1 unless publish is false, which keeps it a draft only its author sees. The body is projqo's document JSON or Markdown.
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
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
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
kindstringone of: page, live_doc, folder, smart_link
titlestring1 to 255 characters
parent_idstring (uuid) or nullbodyone of 2 shapesA document (projqo's document JSON), or Markdown as a string.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
urlstringA smart link's address.
at most 2048 characters
publishbooleanPages: publish it now (true by default), or keep it as your draft.
commentstringWhat changed, for the version history (at most 500 characters).
at most 500 characters
notifybooleanTell the page's watchers (true by default, as the publish dialog).
Answer
201 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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" } }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/{space}/pages" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"kind": "page",
"title": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"body": "string",
"url": "string",
"publish": true,
"comment": "string",
"notify": true
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/pages", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"kind": "page",
"title": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"body": "string",
"url": "string",
"publish": true,
"comment": "string",
"notify": true
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}/pages",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"kind": "page",
"title": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"body": "string",
"url": "string",
"publish": True,
"comment": "string",
"notify": True,
},
)
print(res.status_code, res.json())Sample answer 201
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}List deleted pages
/orgs/{org}/pages/deletedScope: docs:read
Pages and other items moved to their space's trash since a time (with everything that went with them), and items restored from it, oldest first: a client keeping a copy drops and adds them. Each row reaches the people who could open the item then (organisation owners and admins read every row). Items purged from the trash were already listed when they went to it.
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
sincestring (date-time)Only rows at or after this time (with Z or an offset).
fieldsstringOnly these fields, comma-separated: page_id, space_id, kind, title, action, at, by. 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 DeletedPageRequiredShow 7 fields
page_idstring (uuid)Requiredspace_idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredactionstringRequiredtrashed: it (and what was under it) went to the trash; restored: it came back from there.
one of: trashed, restored
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
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}/pages/deleted" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/deleted", {
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}/pages/deleted",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"page_id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"space_id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"kind": "page",
"title": "Old notes",
"action": "trashed",
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
}
],
"next_cursor": null
}Get a page
/orgs/{org}/pages/{page}Scope: docs:read
A page with its body, as the page view shows it: the published version (a live doc's live body), or with status=draft the draft it is being edited in (people who can edit it). Bodies come as projqo's document JSON, or as Markdown with body_format=markdown. A page the person can't open (a view restriction, someone else's draft) 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.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
statusstringpublished (the default) or draft (the draft being edited; editors only).
one of: published, draft
fieldsstringOnly these fields, comma-separated: id, kind, title, emoji, space, parent_id, state, archived, version, published, unpublished_changes, owner, created_by, created_at, updated_at, labels, restrictions, url, body, can. 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)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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.{ "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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}Change a page
/orgs/{org}/pages/{page}Scope: docs:write
Changes the page's title and body from the version you read, and publishes it as the next version (unless publish is false, which leaves it as unpublished changes). version is the version you read (0 for a page never published): when the page has been published since, or its editor holds changes nobody has published yet (someone may be editing it now), the answer is 409 conflict and nothing changes, so your update never writes over anyone's text. The change goes through live editing: people with the page open in the editor see it at once. It needs edit rights on the page, as in the app (an edit restriction lists who may). A live doc changes in its editor only. Folders and smart links take a title (and emoji).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
Body
versionintegerThe version you read (0 for a page never published). Needed when the title or body changes.
at least 0
titlestring1 to 255 characters
emojistring or nullbodyone of 2 shapesA document (projqo's document JSON), or Markdown as a string.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
publishbooleanPublish the change as the next version (true by default).
commentstringWhat changed, for the version history (at most 500 characters).
at most 500 characters
notifybooleanTell the page's watchers (true by default, as the publish dialog).
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"version": 0,
"title": "string",
"emoji": "string",
"body": "string",
"publish": true,
"comment": "string",
"notify": true
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "PATCH",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"version": 0,
"title": "string",
"emoji": "string",
"body": "string",
"publish": true,
"comment": "string",
"notify": true
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.patch(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"version": 0,
"title": "string",
"emoji": "string",
"body": "string",
"publish": True,
"comment": "string",
"notify": True,
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}Delete a page
/orgs/{org}/pages/{page}Scope: docs:delete
Moves the page and everything under it to its space's trash, as the app's Delete does: your own with "Delete own pages", anyone's with "Delete any page". The space's home page can't be deleted. Space admins restore it from the trash or delete it for good; the deleted-pages feed lists it.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Answer
204 Done; no body.
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
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" } }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 DELETE "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status);import os
import requests
res = requests.delete(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code)Sample answer 204
No body.
Publish a page
/orgs/{org}/pages/{page}/publishScope: docs:write
Publishes the page's draft as its next version, as the editor's Publish does: a draft page for the first time (parent_id places it), or a published page's unpublished changes. It needs edit rights on the page; a space that requires approval publishes only after one (409 conflict).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
Body
commentstringWhat changed, for the version history (at most 500 characters).
at most 500 characters
notifybooleanTell the page's watchers (true by default, as the publish dialog).
parent_idstring (uuid) or nullA first publish only: where the page goes (null: the top).
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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 POST "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/publish" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "string",
"notify": true,
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/publish", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"comment": "string",
"notify": true,
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/publish",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"comment": "string",
"notify": True,
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}Move a page
/orgs/{org}/pages/{page}/moveScope: docs:write
Moves the page and everything under it, as dragging it in the tree or Move does: under parent_id (null: the top of the space), before before_id or last, and into another space with space ("Add pages" there; "Edit pages" in both).
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
Body
spacestringAnother space to move it to.
1 to 60 characters
The id comes from List spaces.
parent_idstring (uuid) or nullRequiredbefore_idstring (uuid) or nullPlace it just before this item of the same level; last when left out.
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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.{ "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 POST "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/move" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"before_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/move", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"before_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10"
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/move",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"before_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}Copy a page
/orgs/{org}/pages/{page}/copyScope: docs:write
Copies the page (with its children when asked, up to 500 items) under parent_id in space (this one when left out), as the app's Copy does: it needs "Add pages" there. The copy is published, sits first under its parent and is called "Copy of …" unless a title is given; with include_restrictions, the pages' restrictions come too where the person manages access.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
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
spacestringA space's key (an old key still finds it) or id.
1 to 60 characters
The id comes from List spaces.
parent_idstring (uuid) or nullRequiredtitlestring1 to 255 characters
include_childrenbooleaninclude_restrictionsboolean
Answer
201 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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.{ "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" } }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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/copy" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"title": "string",
"include_children": true,
"include_restrictions": true
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/copy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"title": "string",
"include_children": true,
"include_restrictions": true
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/copy",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"space": "string",
"parent_id": "6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
"title": "string",
"include_children": True,
"include_restrictions": True,
},
)
print(res.status_code, res.json())Sample answer 201
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}List a page's versions
/orgs/{org}/pages/{page}/versionsScope: docs:read
The page's published versions, newest first, as its version history shows them: who published each and when, its comment, and the version a restore came from.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
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
fieldsstringOnly these fields, comma-separated: id, number, title, published_at, published_by, comment, restored_from, current. 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 PageVersionRequiredShow 8 fields
idstring (uuid)RequirednumberintegerRequiredtitlestringRequiredpublished_atstring (date-time)RequiredUTC, with Z.
published_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
commentstringRequiredrestored_frominteger or nullRequiredThe version it restored, when it was a restore.
currentbooleanRequired
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions", {
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
"number": 3,
"title": "Release checklist",
"published_at": "2026-12-01T10:15:00.000Z",
"published_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"comment": "Added the tagging step",
"restored_from": null,
"current": true
}
],
"next_cursor": null
}Get a version of a page
/orgs/{org}/pages/{page}/versions/{version}Scope: docs:read
One published version of the page, by its number or id, with its title and body.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
versionstringRequiredThe version's number (3) or id.
1 to 40 characters
The id comes from List a page's versions.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
fieldsstringOnly these fields, comma-separated: id, number, title, published_at, published_by, comment, restored_from, current, body. 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)RequirednumberintegerRequiredtitlestringRequiredpublished_atstring (date-time)RequiredUTC, with Z.
published_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
commentstringRequiredrestored_frominteger or nullRequiredThe version it restored, when it was a restore.
currentbooleanRequiredbodyone of 2 shapesRequiredA document (projqo's document JSON), or Markdown with body_format=markdown.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}", {
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}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "7e8f9a0b-1c2d-4e3f-8a4b-5c6d7e8f9a0b",
"number": 3,
"title": "Release checklist",
"published_at": "2026-12-01T10:15:00.000Z",
"published_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"comment": "Added the tagging step",
"restored_from": null,
"current": true,
"body": "# Release checklist\n"
}Restore a version
/orgs/{org}/pages/{page}/versions/{version}/restoreScope: docs:write
Makes a new current version with that version's title and body, as Restore in the version history does (edit rights on the page). Access settings stay as they are.
Path parameters
orgstringRequiredThe organisation's id (or its address name).
1 to 100 characters
The id comes from List organisations.
pagestring (uuid)RequiredA page's id (any item of the tree: page, live doc, folder, smart link).
The id comes from List a level of a space's tree.
versionstringRequiredThe version's number (3) or id.
1 to 40 characters
The id comes from List a page's versions.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
Body
commentstringat most 500 characters
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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 POST "https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}/restore" \
-H "Authorization: Bearer $PROJQO_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"comment": "string"
}'const res = await fetch("https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}/restore", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"comment": "string"
}),
});
console.log(res.status, await res.json());import os
import requests
res = requests.post(
"https://projqo.example/api/v1/orgs/{org}/pages/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/versions/{version}/restore",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
json={
"comment": "string",
},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}List a space's trash
/orgs/{org}/spaces/{space}/trashScope: docs:read
The items deleted on their own in the space, newest first (each with what went with it), as the space's Trash settings page shows them: for space admins ("Manage all content"); to anyone else it answers 404, as the app hides the page.
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
fieldsstringOnly these fields, comma-separated: id, kind, title, trashed_at, trashed_by. 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 TrashedPageRequiredShow 5 fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredtrashed_atstring (date-time)RequiredUTC, with Z.
trashed_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
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}/trash" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/trash", {
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}/trash",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"items": [
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Old notes",
"trashed_at": "2026-12-01T10:15:00.000Z",
"trashed_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
}
],
"next_cursor": null
}Restore from the trash
/orgs/{org}/spaces/{space}/trash/{page}/restoreScope: docs:write
Restores a trashed item and what went with it, back where it was (or at the top of the space when its parent is gone), as the Trash page's Restore does: space admins. The deleted-pages feed lists it as restored.
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.
pagestring (uuid)RequiredA trashed item's id.
The id comes from List a space's trash.
Query parameters
body_formatstringHow rich text (descriptions, comments) comes back: document (projqo's document JSON, the default) or markdown.
one of: document, markdown
Answer
200 OK
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
Show the answer's fields
idstring (uuid)RequiredkindstringRequiredone of: page, live_doc, blog_post, database, folder, smart_link
titlestringRequiredThe published title (the draft's with status=draft, and for a page never published).
emojistring or nullRequiredspaceDocsSpaceRefRequiredShow 3 fields
idstring (uuid)RequiredkeystringRequirednamestringRequired
parent_idstring (uuid) or nullRequirednull at the top of the space.
statestringRequireddraft: never published, only its author sees it; published; trashed (seen only in its space's trash and in events).
one of: draft, published, trashed
archivedbooleanRequiredversionintegerRequiredThe current published version's number (0 for a page never published). Send it with an update.
publishedobject or nullRequiredWhen the current version was published, and by whom.
Show 2 fields
atstring (date-time)RequiredUTC, with Z.
byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
unpublished_changesboolean or nullRequiredThe draft differs from the published version (someone may be editing it now); null for people who can't edit the page.
ownerPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_byPersonRef or nullRequiredShow 2 fields
idstring (uuid)RequirednamestringRequired
created_atstring (date-time)RequiredUTC, with Z.
updated_atstring (date-time)RequiredUTC, with Z.
labelsarray of stringRequiredrestrictionsobjectRequiredShow 2 fields
viewbooleanRequiredOnly the people listed can open it.
editbooleanRequiredOnly the people listed can change it.
urlstring or nullRequiredA smart link's address.
bodyone of 2 shapes or nullRequiredThe published body (the draft's with status=draft, and for a page never published); null for folders and links.
Show the 2 shapes
Shape 1
string
Document
typestringRequiredalways doc
contentarray of any
canobjectRequiredShow 3 fields
editbooleanRequireddeletebooleanRequiredcommentbooleanRequired
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.{ "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" } }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}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/restore" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/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}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10/restore",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code, res.json())Sample answer 200
{
"id": "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d",
"kind": "page",
"title": "Release checklist",
"emoji": "✅",
"space": {
"id": "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
"key": "HANDBOOK",
"name": "Handbook"
},
"parent_id": null,
"state": "published",
"archived": false,
"version": 3,
"published": {
"at": "2026-12-01T10:15:00.000Z",
"by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
}
},
"unpublished_changes": false,
"owner": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_by": {
"id": "8d0e5f7a-1c2b-4d3e-8f9a-0b1c2d3e4f5a",
"name": "Priya Shah"
},
"created_at": "2026-11-20T09:00:00.000Z",
"updated_at": "2026-12-01T10:15:00.000Z",
"labels": [
"release"
],
"restrictions": {
"view": false,
"edit": false
},
"url": null,
"body": "# Release checklist\n\n- [ ] Tag the build\n",
"can": {
"edit": true,
"delete": true,
"comment": true
}
}Delete for good
/orgs/{org}/spaces/{space}/trash/{page}Scope: docs:delete
Deletes a trashed item and what went with it for good, with their files, as the Trash page's Delete does: space admins. It can't be undone.
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.
pagestring (uuid)RequiredA trashed item's id.
The id comes from List a space's trash.
Answer
204 Done; no body.
Headers: X-Request-Id, RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset
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.{ "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" } }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 DELETE "https://projqo.example/api/v1/orgs/{org}/spaces/{space}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10" \
-H "Authorization: Bearer $PROJQO_TOKEN"const res = await fetch("https://projqo.example/api/v1/orgs/{org}/spaces/{space}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10", {
method: "DELETE",
headers: {
Authorization: `Bearer ${process.env.PROJQO_TOKEN}`,
},
});
console.log(res.status);import os
import requests
res = requests.delete(
"https://projqo.example/api/v1/orgs/{org}/spaces/{space}/trash/6f1c2a9e-3b7d-4e21-9a55-0c8d2f4b7e10",
headers={"Authorization": f"Bearer {os.environ['PROJQO_TOKEN']}"},
)
print(res.status_code)Sample answer 204
No body.