cURL
curl --request POST \ --url https://ragapi.sno.ai/v1/add \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "content": "<string>", "spaces": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "id": "<string>", "metadata": {}, "images": [ "<string>" ], "prefetched": { "contentToVectorize": "<string>", "contentToSave": "<string>", "title": "<string>", "type": "page", "description": "<string>", "ogImage": "<string>" } } '
{ "message": "<string>", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "page" }
Adds new content to the RAG system. Supports URLs, plain text, and various file types. Content can be assigned to specific spaces and include metadata or prefetched information.
Enter your API key as a Bearer token. Example: 'Bearer YOUR_API_KEY'
URL or plain text content
Array of space IDs to associate content with
Custom ID for the content
Arbitrary metadata
Show child attributes
page
tweet
note
document
Content added successfully