Knowledge Base
Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
List knowledge base documents
/v1/knowledge-base/documentsList uploaded knowledge base documents that Complianz can use as approved source material for answers, policies, and reviews.
Responses
200List of knowledge base documents
curl --request GET \
--url https://api.complianz.ai/v1/knowledge-base/documents \
--header 'X-API-Key: <api-key>'List all manual answers for an organization
/v1/knowledge-base/manual-answersList all manual answers for an organization in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Responses
200List of manual answers
curl --request GET \
--url https://api.complianz.ai/v1/knowledge-base/manual-answers \
--header 'X-API-Key: <api-key>'Save reusable manual answer
/v1/knowledge-base/manual-answersSave or update a reusable manual answer for security questionnaires that need approved, consistent response language.
Request body
Responses
200Manual answer saved
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/manual-answers \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Upload knowledge base document
/v1/knowledge-base/documents/uploadUpload supporting documentation so Complianz can process approved source material for questionnaire answers and policy workflows.
Request body
organizationIdstringrequiredOrganization ID that owns the document
fileNamestringrequiredFile name
fileTypestringrequiredMIME type of the file
fileDatastringBase64-encoded file contents. For the web UI / direct callers. AI/MCP clients should instead upload via /v1/uploads/presign (purpose=document) and pass `s3Key` — base64 through an LLM is impractically slow and times out. Provide exactly one of fileData or s3Key.
s3KeystringKey of a file already uploaded via /v1/uploads/presign (purpose=document). The server fetches the bytes from storage — no base64 needed. Provide exactly one of fileData or s3Key.
descriptionstringOptional description
Responses
200Document uploaded successfully
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/documents/upload \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"organizationId": "string",
"fileName": "rbac-matrix.xlsx",
"fileType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"fileData": "string",
"s3Key": "string",
"description": "string"
}'Get a signed download URL for a document
/v1/knowledge-base/documents/{documentId}/downloadGet a signed download URL for a document in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Path parameters
documentIdstringrequiredResponses
200Signed download URL generated
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/documents/<documentId>/download \
--header 'X-API-Key: <api-key>'Get a signed view URL for a document
/v1/knowledge-base/documents/{documentId}/viewGet a signed view URL for a document in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Path parameters
documentIdstringrequiredResponses
200Signed view URL generated
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/documents/<documentId>/view \
--header 'X-API-Key: <api-key>'Delete a knowledge base document
/v1/knowledge-base/documents/{documentId}/deleteDelete a knowledge base document in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Path parameters
documentIdstringrequiredResponses
200Document deleted successfully
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/documents/<documentId>/delete \
--header 'X-API-Key: <api-key>'Process knowledge base documents
/v1/knowledge-base/documents/processStart document processing so uploaded knowledge base files become searchable source material for AI-assisted compliance workflows.
Request body
Responses
200Document processing triggered
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/documents/process \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Delete a manual answer
/v1/knowledge-base/manual-answers/{manualAnswerId}/deleteDelete a manual answer in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Path parameters
manualAnswerIdstringrequiredRequest body
Responses
200Manual answer deleted
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/manual-answers/<manualAnswerId>/delete \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'Delete all manual answers for an organization
/v1/knowledge-base/manual-answers/delete-allDelete all manual answers for an organization in Complianz. Upload source documents, process them for retrieval, and manage reusable manual answers that power questionnaires and AI policy workflows.
Request body
Responses
200All manual answers deleted
curl --request POST \
--url https://api.complianz.ai/v1/knowledge-base/manual-answers/delete-all \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'