List knowledge documents
GET/knowledge-base
Returns knowledge documents in this workspace, newest first. Filter by document_type, status, category, or free-text search. Not paywalled — reads are always available.
Requires
Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.Query parameters
- pageinteger≥ 1optional1-based page index. Defaults to 1.Default
1 - page_sizeinteger1–100optionalItems per page. Defaults to 20. Hard-capped at 100 by the server.Default
20 - searchstringoptionalCase-insensitive substring match against
title,descriptionandcontent. - document_typestringoptionalFilter by document type.
documentfaqproduct_infopolicyscriptother - statusstringoptionalFilter by document status.
draftprocessingactivearchivederror - categorystringoptionalFilter by category (exact match).
Response 200 OK
Paginated knowledge document list.
- dataobject[]required
15 fields
- idstringuuidrequired
- titlestring0–500 charsrequired
- descriptionstringnullable0–2000 charsoptional
- document_typestringrequired
documentfaqproduct_infopolicyscriptother - statusstringrequired
draftprocessingactivearchivederror - file_namestringnullableoptional
- file_typestringnullableoptional
- file_size_bytesintegernullableoptional
- storage_pathstringnullableoptionalStorage path returned from the upload-url endpoint.
- tagsstring[]required
- categorystringnullable0–255 charsoptional
- usage_countintegerrequired
- last_used_atstringnullabledate-timeoptional
- created_atstringdate-timerequired
- updated_atstringdate-timerequired
- paginationobjectrequiredEchoed pagination block on every list response.
pageandpage_sizematch the request (or the defaults if omitted);totalis the count of matching rows across all pages.3 fields
- pageinteger≥ 1required1-based page index of this response.
- page_sizeinteger≥ 1requiredNumber of items per page (request cap is 100).
- totalinteger≥ 0requiredTotal matching items across all pages.
Errors
- 400Bad RequestValidation failed / malformed request.
- 401UnauthorizedMissing, malformed, or invalid API key.
- 403ForbiddenWorkspace unavailable, suspended, or paywalled.
- 429Too Many RequestsWorkspace request limit exceeded; shared across all its API keys.