Read paginated campaign AI insights
GET /api/v1/public/evaluations/{evaluationId}/ai-insights
GET /api/v1/public/evaluations/{evaluationId}/ai-insightsOAuth selected-project evaluation reader with current app evaluation visibility. Stable descending timestamp/id cursor is bound to actor, project and campaign; concurrent updates may change run state. Metrics cover only the returned page, not the full campaign. Verdicts above 32 KiB are omitted with explicit incomplete metrics; reasoning and scalar answer prefixes, field count and evidence references have explicit truncation. No raw provider errors, trace content, tool arguments/results or guest tokens. Response cap 1 MiB minus envelope allowance; reduce page size after 413.
Operation ID: get_api_v1_public_evaluations_evaluationId_ai_insights.
Authentication
Choose a credential. Each row is an accepted alternative; access also depends on current roles, project bindings, and entitlements.
| Credential | Carrier | OAuth scopes |
|---|---|---|
OAuth2 | Authorization: Bearer | evaluation:read |
For OAuth and service-account credentials, send the selected project UUID in x-project-id, including when the header is optional for legacy keys.
Availability
This operation belongs to the standard API surface. Authentication and authorization still apply.
Request parameters
| Name | Location | Required | Type / allowed values | Description / constraints |
|---|---|---|---|---|
evaluationId | path | Yes | string | evaluationId path parameter; format: uuid; Pattern constrained; see the downloadable schema. |
cursor | query | No | string | cursor query parameter; minLength: 1; maxLength: 1024 |
limit | query | No | integer | limit query parameter; default: 10; minimum: 1; maximum: 25 |
x-project-id | header | Yes | string | x-project-id header parameter; Required service-account or OAuth project selection; format: uuid; Pattern constrained; see the downloadable schema. |
Request example
Replace placeholder IDs and environment variables with values from your authorized project. Credentials are expanded into curl's stdin configuration, not its command arguments. Keep shell tracing off and do not log this configuration. For requests with a body, put a payload matching the schema in request-body.txt; form requests use URL-encoded content.
curl --fail-with-body --silent --show-error --config - <<CURL_CONFIG
request = "GET"
header = "Authorization: Bearer ${NEATLOGS_TOKEN}"
header = "x-project-id: ${NEATLOGS_PROJECT_ID}"
url = "https://app.neatlogs.com/api/v1/public/evaluations/<evaluationId>/ai-insights"
CURL_CONFIGResponses
| Status | Description | Content type |
|---|---|---|
200 | Campaign insight page | application/json |
400 | Invalid public API request | application/problem+json |
401 | Missing or invalid public API credential | application/problem+json |
403 | Public API request is not authorized | application/problem+json |
404 | Evaluation not found | application/problem+json |
409 | Public API request conflict | application/problem+json |
413 | Insight page exceeds response limit | application/problem+json |
415 | Unsupported public API request body | application/problem+json |
429 | Public API rate limit exceeded | application/problem+json |
500 | Internal server error | application/problem+json |
503 | Public API credential, project context, or rate limiting unavailable. Backend is draining; retry after the Retry-After delay. | application/problem+json, application/json |
200 response fields
Content type: application/json.
| Field | Type / allowed values | Required in parent | Description / constraints |
|---|---|---|---|
$ | object | Yes | additionalProperties: false |
data | object | Yes | additionalProperties: false |
data.runs | array<object> | Yes | maxItems: 25 |
data.runs[] | object | Yes | additionalProperties: false |
data.runs[].id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.runs[].definitionId | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.runs[].definitionName | string | Yes | maxLength: 255 |
data.runs[].itemId | string | null | Yes | — |
data.runs[].itemId (anyOf 1) | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.runs[].traceId | string | null | Yes | — |
data.runs[].traceId (anyOf 1) | string | Yes | maxLength: 255 |
data.runs[].spanId | string | null | Yes | — |
data.runs[].spanId (anyOf 1) | string | Yes | maxLength: 64 |
data.runs[].status | "pending" | "running" | "succeeded" | "failed" | Yes | — |
data.runs[].passed | boolean | null | Yes | — |
data.runs[].passed (anyOf 1) | boolean | Yes | — |
data.runs[].overallScore | number | null | Yes | — |
data.runs[].overallScore (anyOf 1) | number | Yes | — |
data.runs[].reasoning | string | null | Yes | — |
data.runs[].reasoning (anyOf 1) | string | Yes | maxLength: 4000 |
data.runs[].reasoningTruncated | boolean | Yes | — |
data.runs[].fields | array<object> | Yes | maxItems: 50 |
data.runs[].fields[] | object | Yes | additionalProperties: false |
data.runs[].fields[].key | string | Yes | maxLength: 160 |
data.runs[].fields[].value | string | boolean | number | null | Yes | — |
data.runs[].fields[].value (anyOf 1) | string | Yes | maxLength: 4000 |
data.runs[].fields[].value (anyOf 2) | boolean | Yes | — |
data.runs[].fields[].value (anyOf 3) | number | Yes | — |
data.runs[].fields[].valueOmitted | boolean | Yes | — |
data.runs[].fields[].truncated | boolean | Yes | — |
data.runs[].fields[].score | number | null | Yes | — |
data.runs[].fields[].score (anyOf 1) | number | Yes | — |
data.runs[].fields[].confidence | number | null | Yes | — |
data.runs[].fields[].confidence (anyOf 1) | number | Yes | — |
data.runs[].fields[].reasoning | string | null | Yes | — |
data.runs[].fields[].reasoning (anyOf 1) | string | Yes | maxLength: 1000 |
data.runs[].fields[].evidenceRefs | array<string> | Yes | maxItems: 20 |
data.runs[].fields[].evidenceRefs[] | string | Yes | maxLength: 255 |
data.runs[].fields[].offList | boolean | Yes | — |
data.runs[].verdictTruncated | boolean | Yes | — |
data.runs[].toolCalls | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.runs[].durationMs | integer | null | Yes | — |
data.runs[].durationMs (anyOf 1) | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.runs[].createdAt | string | null | Yes | — |
data.runs[].createdAt (anyOf 1) | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.runs[].completedAt | string | null | Yes | — |
data.runs[].completedAt (anyOf 1) | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.runs[].errorCode | "EVALUATOR_RUN_FAILED" | null | Yes | — |
data.runs[].errorCode (anyOf 1) | "EVALUATOR_RUN_FAILED" | Yes | — |
data.evaluators | array<object> | Yes | maxItems: 25 |
data.evaluators[] | object | Yes | additionalProperties: false |
data.evaluators[].definitionId | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.evaluators[].definitionName | string | Yes | maxLength: 255 |
data.evaluators[].totalRuns | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.evaluators[].succeeded | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.evaluators[].failed | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.evaluators[].passRate | number | null | Yes | — |
data.evaluators[].passRate (anyOf 1) | number | Yes | minimum: 0; maximum: 1 |
data.evaluators[].avgScore | number | null | Yes | — |
data.evaluators[].avgScore (anyOf 1) | number | Yes | — |
data.evaluators[].avgDurationMs | number | null | Yes | — |
data.evaluators[].avgDurationMs (anyOf 1) | number | Yes | minimum: 0 |
data.evaluators[].totalToolCalls | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.metricsScope | "page" | Yes | — |
data.metricsIncomplete | boolean | Yes | — |
data.page | object | Yes | additionalProperties: false |
data.page.hasMore | boolean | Yes | — |
data.page.limit | integer | Yes | minimum: 1; maximum: 100 |
data.page.nextCursor | string | null | Yes | — |
data.page.nextCursor (anyOf 1) | string | Yes | minLength: 1; maxLength: 1024 |
requestId | string | Yes | Pattern constrained; see the downloadable schema. |
success | true | Yes | — |
Response headers
| Header | Description / constraints |
|---|---|
RateLimit-Limit | Effective request ceiling for the current window; minimum: 1 |
RateLimit-Remaining | Requests remaining in the current window; minimum: 0 |
RateLimit-Reset | Unix timestamp in seconds when the current window resets; minimum: 0 |
X-NeatLogs-RateLimit-Degraded | Whether bounded emergency enforcement is active; — |
X-NeatLogs-RateLimit-Limit | Effective request ceiling for the current window; minimum: 1 |
X-NeatLogs-RateLimit-Policy | Applied pre-authentication or authenticated rate class; — |
X-NeatLogs-RateLimit-Remaining | Requests remaining in the current window; minimum: 0 |
X-NeatLogs-RateLimit-Reset-After | Whole seconds until the current window resets; minimum: 1 |
X-NeatLogs-RateLimit-Version | NeatLogs rate-limit contract version; — |
X-Request-Id | Server-owned request correlation identifier; Pattern constrained; see the downloadable schema. |
Failures use Problem Details. For exact validation patterns and all response schemas, download the OpenAPI specification.
