cURL
curl --request POST \ --url https://api.getmalakai.com/api/api/knowledgebase \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --header 'x-access-token: <x-access-token>' \ --data ' { "name": "<string>", "description": "<string>", "files": [ "<string>" ], "urls": [ "<string>" ] } '
{ "responseCode": 2000, "message": "Knowledgebase created successfully", "data": { "name": "test", "description": "description", "files": [], "urls": [ "https://en.wikipedia.org/wiki/Pakistan" ], "user_id": "<hidden>", "ml_file_id": null, "id": "<hidden>", "status": "pending", "createdAt": "2025-07-29T10:44:05.242Z", "updatedAt": "2025-07-29T10:44:05.242Z" } }
Create a knowledgebase from multiple files to use in your workflows
Bearer
{ "name": "test", "description": "description", "files": [], "urls": [ "https://en.wikipedia.org/wiki/aboutWiki" ] }