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

GET/v1/knowledge-base/documents

List 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

GET/v1/knowledge-base/manual-answers

List 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

POST/v1/knowledge-base/manual-answers

Save 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

POST/v1/knowledge-base/documents/upload

Upload supporting documentation so Complianz can process approved source material for questionnaire answers and policy workflows.

Request body

organizationIdstringrequired

Organization ID that owns the document

fileNamestringrequired

File name

fileTypestringrequired

MIME type of the file

fileDatastring

Base64-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.

s3Keystring

Key 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.

descriptionstring

Optional 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

POST/v1/knowledge-base/documents/{documentId}/download

Get 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

documentIdstringrequired

Responses

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

POST/v1/knowledge-base/documents/{documentId}/view

Get 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

documentIdstringrequired

Responses

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

POST/v1/knowledge-base/documents/{documentId}/delete

Delete 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

documentIdstringrequired

Responses

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

POST/v1/knowledge-base/documents/process

Start 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

POST/v1/knowledge-base/manual-answers/{manualAnswerId}/delete

Delete 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

manualAnswerIdstringrequired

Request 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

POST/v1/knowledge-base/manual-answers/delete-all

Delete 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 '{}'