cURL
curl --request POST \ --url https://api.example.com/api/vector/search \ --header 'Content-Type: application/json' \ --data ' { "query": "<string>", "k_limit": 123 } '
{ "collection_id": "<string>", "collection_name": "<string>", "similarity_score": 123 }
Search for API collections using natural language
curl -X POST https://api.sari-platform.com/api/vector/search \ -H "X-Client-ID: client_abc123" \ -H "X-API-Key: <api_key>" \ -H "Content-Type: application/json" \ -d '{ "query": "payment processing API", "k_limit": 10 }'
[ { "collection_id": "550e8400-e29b-41d4-a716-446655440000", "collection_name": "Stripe Payment API", "similarity_score": 0.89 }, { "collection_id": "550e8400-e29b-41d4-a716-446655440001", "collection_name": "PayPal Checkout API", "similarity_score": 0.75 }, { "collection_id": "550e8400-e29b-41d4-a716-446655440002", "collection_name": "Square Payments API", "similarity_score": 0.72 } ]