Pages

Operations of the Knowledge Base API. Paths are relative to your deployment's API host.

GET /api/knowledge-base-api/pages/search

Search pages across all spaces

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
limitquerystringnoMaximum number of results
qquerystringnoSearch query string (omit to list recent pages)
sourceTypequeryone of "authored", "ingestion_chunk", "ingestion_summary"noFilter by source type
StatusDescriptionBody
200application/json PageResponseDtoDataArrayEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/pages/{pageId}

Get a page by ID

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
StatusDescriptionBody
200application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/pages/{pageId}/route

Resolve a page id to its (spaceSlug, pageSlug) route

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
StatusDescriptionBody
200application/json PageRouteResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/spaces/{spaceSlug}/pages

List pages in a space

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes
limitquerynumberno
pagequerynumberno
parentIdquerystringnoFilter by parent page ID (null for root pages)
searchquerystringnoFull-text search query
sourceTypequeryone of "authored", "ingestion_chunk", "ingestion_summary"noFilter by source type (defaults to "authored" to hide ingestion chunks)
spaceSlugquerystringnoFilter by space slug
statusqueryone of "published", "proposed", "rejected"noFilter by exactly one page status. Omitted, the listing returns every status EXCEPT "rejected" — the tombstone this service writes when a pipeline run is rejected wholesale. Passing status=rejected is the explicit opt-in that surfaces those tombstones.
StatusDescriptionBody
200application/json PageResponseDtoPaginatedEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

POST /api/knowledge-base-api/spaces/{spaceSlug}/pages

Create a new page in a space

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes

Request body: application/json CreatePageDto

StatusDescriptionBody
201application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

POST /api/knowledge-base-api/spaces/{spaceSlug}/pages/bulk

Bulk upsert pages — create or update by externalId/slug

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes

Request body: application/json BulkUpsertPagesDto

StatusDescriptionBody
200application/json BulkUpsertPagesResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

POST /api/knowledge-base-api/spaces/{spaceSlug}/pages/import-from-session

Import an agent session workspace file as a new page, or as a new revision of an existing page

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes

Request body: application/json ImportSessionFileDto

StatusDescriptionBody
201application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

PATCH /api/knowledge-base-api/spaces/{spaceSlug}/pages/move

Move one or more pages to a new parent (or root)

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes

Request body: application/json MovePageDto

StatusDescriptionBody
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/spaces/{spaceSlug}/pages/tree

Get page tree for a space

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
spaceSlugpathstringyes
StatusDescriptionBody
200application/json PageTreeNodeDtoDataArrayEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

PUT /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageId}

Update a page (creates new version)

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
spaceSlugpathstringyes

Request body: application/json UpdatePageDto

StatusDescriptionBody
200application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

DELETE /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageId}

Delete a page by ID

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
spaceSlugpathstringyes
StatusDescriptionBody
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

POST /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageId}/propose

Propose an edit to a page (creates proposal for human-authored pages)

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
spaceSlugpathstringyes

Request body: application/json UpdatePageDto

StatusDescriptionBody
201application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageId}/versions

Get version history for a page

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
spaceSlugpathstringyes
StatusDescriptionBody
200application/json PageVersionResponseDtoDataArrayEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageId}/versions/{version}

Get specific version content

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageIdpathstringyes
spaceSlugpathstringyes
versionpathstringyes
StatusDescriptionBody
200application/json PageVersionResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto

GET /api/knowledge-base-api/spaces/{spaceSlug}/pages/{pageSlug}

Get a page by slug

Authentication: bearer token (Authorization: Bearer <token>)

ParameterInTypeRequiredDescription
pageSlugpathstringyes
spaceSlugpathstringyes
StatusDescriptionBody
200application/json PageResponseDtoDataEnvelope
400application/problem+json ProblemDetailsDto
401application/problem+json ProblemDetailsDto
403application/problem+json ProblemDetailsDto
404application/problem+json ProblemDetailsDto
409application/problem+json ProblemDetailsDto
422application/problem+json ProblemDetailsDto
500application/problem+json ProblemDetailsDto