API Reference
- Session Management
- User Management
- Content Management
- Space Management
- Memory Management
- Integrations
API Reference
Content Management
Memory Management
Session Management
User Management
Space Management
Integrations
Content Management
Search Content
Searches content within specified spaces using a query string.
POST
/
search
Copy
curl --request POST \
--url https://ragapi.sno.ai/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": "<string>",
"limit": 10,
"threshold": 0,
"spaces": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
Copy
{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"url": "<string>",
"content": "<string>",
"similarity": 123,
"createdAt": "2023-11-07T05:31:56Z",
"type": "page",
"chunks": [
{
"content": "<string>",
"similarity": 123
}
]
}
]
}
Authorizations
Enter your API key as a Bearer token. Example: 'Bearer YOUR_API_KEY'
Body
application/json
Response
200
application/json
Search results
The response is of type object
.
Copy
curl --request POST \
--url https://ragapi.sno.ai/v1/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": "<string>",
"limit": 10,
"threshold": 0,
"spaces": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}'
Copy
{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>",
"url": "<string>",
"content": "<string>",
"similarity": 123,
"createdAt": "2023-11-07T05:31:56Z",
"type": "page",
"chunks": [
{
"content": "<string>",
"similarity": 123
}
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.