Backend API
Get a list of documents in a knowledge base
cURL
curl --request GET \ --url https://api.wacht.dev/ai-knowledge-bases/{kb_id}/documents \ --header 'Authorization: Bearer <token>'
{ "total": 100, "page": 1, "per_page": 20, "total_pages": 5, "data": [ { "id": "<string>", "knowledge_base_id": "<string>", "name": "user-manual.pdf", "type": "pdf", "size": 2048576, "token_count": 15000, "status": "ready", "uploaded_at": "2023-11-07T05:31:56Z" } ] }
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
Successful response
The response is of type object.
object