Documentation Index
Fetch the complete documentation index at: https://narev.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
POST /api/applications/{application_id}/quality
Authentication
Include your Narev API key in theAuthorization header:
Request body
The ID of the response to score. Find this value in the generation logs under the
id field of the chat completion response.Your custom metric name. Must start with the
custom_ prefix (for example, custom_eslint_errors).Numeric score for the metric. Narev treats higher values as better by default.
Request example
Error responses
All errors return a JSON object with anerror field:
| Status | Code | Description |
|---|---|---|
400 | bad_request | Invalid request format or missing required fields |
401 | invalid_api_key | Invalid or missing API key |
404 | application_not_found | A/B test ID not found |
404 | response_not_found | Response ID not found in generation logs |
500 | internal_error | Internal server error |