curl --request POST \
--url https://api.pawa-ai.com/v1/store/knowledge-base \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form knowledgeBase='@example-file' \
--form 'name=Pawa Knowledge Base' \
--form 'description=This is a sample knowledge base for Pawa.'{
"success": true,
"message": "Knowledge base created successfully",
"data": {
"id": 21,
"name": "WCF Knowledge Base",
"kbReferenceId": "kb-5d76835d-fe3e-4793-b0d6-f2e1a668eb5d",
"description": "This is a knowledge base for WCF, it contains information about various concerns about Workers Compesation Fund., it is used to answer questions about WCF",
"status": "ACTIVE",
"createdAt": "2025-08-04T16:35:37.522Z",
"updatedAt": "2025-08-04T16:35:37.522Z"
}
}This endpoint used to create the new knowledge base in the Pawa AI Platform.
curl --request POST \
--url https://api.pawa-ai.com/v1/store/knowledge-base \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form knowledgeBase='@example-file' \
--form 'name=Pawa Knowledge Base' \
--form 'description=This is a sample knowledge base for Pawa.'{
"success": true,
"message": "Knowledge base created successfully",
"data": {
"id": 21,
"name": "WCF Knowledge Base",
"kbReferenceId": "kb-5d76835d-fe3e-4793-b0d6-f2e1a668eb5d",
"description": "This is a knowledge base for WCF, it contains information about various concerns about Workers Compesation Fund., it is used to answer questions about WCF",
"status": "ACTIVE",
"createdAt": "2025-08-04T16:35:37.522Z",
"updatedAt": "2025-08-04T16:35:37.522Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
One or more files to create a Knowledge Base (PDF, DOCX, TXT, Excell, PPT, html, audio, images). NOTE: HERE ON THE DOC WE SUPPORT ONE FILE AT A TIME BUT IN REAL REQUEST PLEASE SEND MULTIPLE FILES AS LIST OF FILES
The name of the knowledge base
The description of the knowledge base