Skip to content

Workspace API

Read Knowledge Pages

Read a knowledge page or one of its sections, list its revisions, and read one revision with GET /workspace/knowledge/pages/{page}.

{page} is a page id or its URL-encoded folder/Title ref, such as Go-to-market%2FICP. An archived page is readable by id only. Each route costs 0 credits and requires knowledge:read. Pass workspace_id as a query parameter when authenticating with a user JWT; API keys infer it.

Read a Page

Endpoint
GET https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/{page}

Returns the page body paged by characters, or one section of it with section.

Query parameters

ParameterTypeRequiredDescription
sectionstringNoA section id from find or from this route’s sections. Returns only that section’s text.
offsetinteger ≥ 0NoCharacter to start at. Defaults to 0.
limitinteger 1-50,000NoCharacters to return. Defaults to 12,000.

Example

Read a page by ref
curl https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/Go-to-market%2FICP \
-H "Authorization: Bearer pcl_your_api_key"

Response

FieldTypeDescription
pageobject{ id, path, title, ref, description, revision, created_by, updated_by, updated_by_run, archived_at, created_at, updated_at, body_chars }.
textstringThe window of the body (or section) asked for.
offset, total_charsintegerWhere the window starts, and the full length.
next_offsetinteger | nullPass as offset for the next window; null at the end.
sectionsarray{ id, heading_path, char_start, file_id } per section, on the first window of a whole-page read only.
sections_truncatedbooleanTrue when the page has more sections than listed.
filesarrayThe page’s attached files (see Knowledge files), on the first window only.
files_truncatedbooleanTrue when more files are attached than listed.

An image or file put into a page in the web app is attached to the page and written in the body as ![caption](knowledge-file:<file id>) or [name](knowledge-file:<file id>). Fetch its bytes with GET /workspace/knowledge/files/{id}/download.

Response
{
"data": {
"page": {
"id": "5d3c9a1e-0001-4b7d-9e5a-000000000020",
"path": "Go-to-market",
"title": "ICP",
"ref": "Go-to-market/ICP",
"description": "Who Parcel sells to and why.",
"revision": 3,
"created_by": "5d3c9a1e-0001-4b7d-9e5a-000000000013",
"updated_by": "5d3c9a1e-0001-4b7d-9e5a-000000000013",
"updated_by_run": null,
"archived_at": null,
"created_at": "2026-10-01T12:00:00.000Z",
"updated_at": "2026-10-16T12:00:00.000Z",
"body_chars": 1840
},
"text": "# Who we sell to\nMid-market general contractors…",
"offset": 0,
"next_offset": null,
"total_chars": 1840,
"sections": [
{
"id": "5d3c9a1e-0001-4b7d-9e5a-000000000021",
"heading_path": ["Who we sell to"],
"char_start": 0,
"file_id": null
}
],
"sections_truncated": false,
"files": [],
"files_truncated": false
},
"metadata": { "credits": 0 }
}

Read a Section by Its Id

Endpoint
GET https://api.parcelengineering.com/api/v1/workspace/knowledge/sections/{section}

Returns one section by the id find gave it, without naming its page: the same answer as reading the page with section. A section id from another workspace answers 404 section_not_found. 0 credits.

Query parameters

ParameterTypeRequiredDescription
offsetinteger ≥ 0NoCharacter to start at. Defaults to 0.
limitinteger 1-50,000NoCharacters to return. Defaults to 12,000.

List Revisions

Endpoint
GET https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/{page}/revisions

The page’s newest 200 revisions, newest first. A person’s saves fold into one revision for 10 minutes from its first save.

Response
{
"data": {
"revisions": [
{
"revision": 3,
"change": "edit",
"title": "ICP",
"path": "Go-to-market",
"author_user_id": "5d3c9a1e-0001-4b7d-9e5a-000000000013",
"author_run_id": "5d3c9a1e-0001-4b7d-9e5a-000000000030",
"author_api_key_id": null,
"created_at": "2026-10-16T12:00:00.000Z"
}
]
},
"metadata": { "credits": 0 }
}

change is edit, archive or restore. author_user_id is the member who wrote it (for an API key, the member who created the key). author_run_id is set when a Spec run wrote it, and author_api_key_id when an API key did.

Read a Revision

Endpoint
GET https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/{page}/revisions/{revision}

The title, folder, description and body saved at that revision, with the same fields as a list entry plus description and body. An unknown revision is 404 revision_not_found.