Skip to content

Workspace API

Find Knowledge

Search knowledge sections, or list the workspace's pages, with POST /workspace/knowledge/find.

Endpoint
POST https://api.parcelengineering.com/api/v1/workspace/knowledge/find

With queries, returns the sections that best match, each with a snippet. Without queries, lists the live pages in folder order. Costs 0 credits and requires knowledge:read. Pass workspace_id as a query parameter when authenticating with a user JWT; API keys infer it.

Request body

FieldTypeRequiredDescription
queriesstring[] (1-4, each 1-200 characters)NoPhrasings of what you are looking for. Several phrasings find more than one. Omit to list pages.
limitinteger 1-20NoSections to return. Defaults to 8. Ignored when listing.
pathstringNoLimit either form to a folder and its subfolders, such as Go-to-market.
archivedbooleanNoList archived pages instead of live ones. Listing only; with queries it is 400.

Example

Search knowledge
curl -X POST https://api.parcelengineering.com/api/v1/workspace/knowledge/find \
-H "Authorization: Bearer pcl_your_api_key" \
-H "Content-Type: application/json" \
-d '{ "queries": ["who we sell to", "ideal customer"], "limit": 5 }'
FieldTypeDescription
hits[].section_idstringThe section matched. Pass it as section to read just that part.
hits[].page_idstringThe page it belongs to.
hits[].file_idstring | nullSet when the section comes from an attached file.
hits[].ref, path, titlestringThe page’s folder/Title, folder and title.
hits[].heading_pathstring[]The headings above the section, outermost first.
hits[].snippetstringThe matching text, shortened.
hits[].scorenumberRelative relevance within this response.
Response
{
"data": {
"hits": [
{
"section_id": "5d3c9a1e-0001-4b7d-9e5a-000000000021",
"page_id": "5d3c9a1e-0001-4b7d-9e5a-000000000020",
"file_id": null,
"ref": "Go-to-market/ICP",
"path": "Go-to-market",
"title": "ICP",
"heading_path": ["Who we sell to"],
"snippet": "Mid-market general contractors with 50-500 staff…",
"score": 0.82
}
]
},
"metadata": { "credits": 0 }
}

Response: list

FieldTypeDescription
pages[]object{ id, ref, path, title, description, revision, updated_at } per page, in folder order. revision is what a move sends as expected_revision.
totalintegerPages in scope: live ones, or archived ones with archived.
truncatedbooleanTrue when more than 500 pages are in scope; narrow with path.
Response
{
"data": {
"pages": [
{
"id": "5d3c9a1e-0001-4b7d-9e5a-000000000020",
"ref": "Go-to-market/ICP",
"path": "Go-to-market",
"title": "ICP",
"description": "Who Parcel sells to and why.",
"revision": 3,
"updated_at": "2026-10-16T12:00:00.000Z"
}
],
"total": 1,
"truncated": false
},
"metadata": { "credits": 0 }
}