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
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
| Parameter | Type | Required | Description |
|---|---|---|---|
section | string | No | A section id from find or from this route’s sections. Returns only that section’s text. |
offset | integer ≥ 0 | No | Character to start at. Defaults to 0. |
limit | integer 1-50,000 | No | Characters to return. Defaults to 12,000. |
Example
curl https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/Go-to-market%2FICP \ -H "Authorization: Bearer pcl_your_api_key"const ref = encodeURIComponent('Go-to-market/ICP');const response = await fetch( `https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/${ref}`, { headers: { 'Authorization': 'Bearer pcl_your_api_key' } });
const { data, metadata } = await response.json();Response
| Field | Type | Description |
|---|---|---|
page | object | { id, path, title, ref, description, revision, created_by, updated_by, updated_by_run, archived_at, created_at, updated_at, body_chars }. |
text | string | The window of the body (or section) asked for. |
offset, total_chars | integer | Where the window starts, and the full length. |
next_offset | integer | null | Pass as offset for the next window; null at the end. |
sections | array | { id, heading_path, char_start, file_id } per section, on the first window of a whole-page read only. |
sections_truncated | boolean | True when the page has more sections than listed. |
files | array | The page’s attached files (see Knowledge files), on the first window only. |
files_truncated | boolean | True 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  or [name](knowledge-file:<file id>). Fetch its bytes with GET /workspace/knowledge/files/{id}/download.
{ "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
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
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer ≥ 0 | No | Character to start at. Defaults to 0. |
limit | integer 1-50,000 | No | Characters to return. Defaults to 12,000. |
List Revisions
GET https://api.parcelengineering.com/api/v1/workspace/knowledge/pages/{page}/revisionsThe page’s newest 200 revisions, newest first. A person’s saves fold into one revision for 10 minutes from its first save.
{ "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
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.