RAG – Add Document to Knowledge Base
Needs an API key of an account (not a test key).
Input
{
"knowledgeBase": "Support FAQ",
"documentId": "faq-billing",
"title": "FAQ Billing",
"text": "How do I cancel my subscription? Go to Settings → Subscription and click Cancel.",
"metadata": {
"department": "billing"
}
}Output · HTTP 200
{
"statusCode": 200
}Show curl command
curl -X POST 'https://api.1001fx.com/rag/adddocument' \
-H 'X-API-KEY: YOURSECRETAPIKEY'