API endpoint for validating queries and responses
https://accurix.aiAll requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY/webhook/validateCheck if the API service is running and database is connected.
Example cURL:
curl --location 'https://accurix.ai/webhook/validate'/webhook/validateValidate a query and response against a project's knowledge base.
Headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
Request Body:
{
"project_id": "6958ffae6197f667bc408e17",
"query": "when is Golden Age",
"response": "Hi there",
"share_citations": false,
"share_highlighted_response": true
}Unauthorized
Missing or invalid API key
Forbidden
API key is inactive or expired
Bad Request
Missing required fields or invalid format
Not Found
Project doesn't exist or access denied
Internal Server Error
Validation processing failed
Service Unavailable
Database connection failed
Rate limits apply per API key. Contact support if you need higher limits.
Contact the Accurix team or generate one from your dashboard
Set up a project with an associated knowledge base
Use the example above with your API key and project ID