cURL
curl --request POST \ --url https://api.revring.ai/v1/knowledge-bases \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>" } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "sourceCount": 123, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "description": "<string>", "sources": [ { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "knowledgeBaseId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "sourceType": "file", "displayName": "<string>", "status": "queued", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "content": "<string>", "originalUrl": "<string>", "mimeType": "<string>", "fileSize": 123, "errorMessage": "<string>" } ] } }
Create a new knowledge base. After creation, add sources (text, URL, or file) to populate it.
API key for authentication. Generate API keys from the RevRing dashboard.
Knowledge base name
128
Optional description
500
Knowledge base created
Knowledge base with sources for agent retrieval
Show child attributes