Document Sessions

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

POST /api/knowledge-base-api/document-sessions

Create a new document page in a space and open its authoring session in one call. Returns the bound page (with sessionId populated) and the sessionId.

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

ParameterInTypeRequiredDescription
idempotency-keyheaderstringyesOpaque client-chosen key. Opening the same document session twice with the same key returns the first session rather than creating a second page.

Request body: application/json OpenDocumentSessionDto

StatusDescriptionBody
201application/json OpenDocumentSessionResponseDtoDataEnvelope
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/document-sessions/{pageId}/session

Resolve the live authoring session for an EXISTING document page, adopting the one already bound or minting a fresh one when it is terminal or gone. Idempotent: safe to call on every open.

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

ParameterInTypeRequiredDescription
pageIdpathstringyes
idempotency-keyheaderstringyesOpaque client-chosen key; the same key resolves the same session.

Request body: application/json EnsureDocumentSessionDto

StatusDescriptionBody
201application/json EnsureDocumentSessionResponseDtoDataEnvelope
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