Ziwako Docs
Ziwako AI (Mayele)Référence APIKnowledge

Search the user knowledge base

POST
/knowledge/search

Authorization

AccessToken
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/knowledge/search" \  -H "Content-Type: application/json" \  -d '{    "query": "string"  }'
{  "type": "string",  "code": "string",  "message": "string",  "status": 0,  "data": {    "results": [      {        "text": "string",        "score": 0,        "sourceType": "document",        "title": "string",        "role": "string",        "documentId": "string",        "conversationId": "string"      }    ],    "count": 0  }}