Read bounded redacted evaluator replay steps
GET /api/v1/public/evaluations/{evaluationId}/runs/{runId}/trace
GET /api/v1/public/evaluations/{evaluationId}/runs/{runId}/traceOAuth evaluation reader with current App visibility. Verify campaign/project/run ownership before reading the native diagnostic artifact. Paginated assistant, tool call/result and verdict steps, bounded content and argument previews, credential-key redaction, generic failed-step errors and explicit truncation. System/user prompt steps are omitted and counted. Native source cap 2 MiB, 20-second timeout. Debug artifact retention and best-effort persistence can make traces unavailable even for a completed run.
Operation ID: get_api_v1_public_evaluations_evaluationId_runs_runId_trace.
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. |
runId | path | Yes | string | runId path parameter; format: uuid; Pattern constrained; see the downloadable schema. |
offset | query | No | integer | offset query parameter; default: 0; minimum: 0; maximum: 100000 |
limit | query | No | integer | limit query parameter; default: 25; minimum: 1; maximum: 100 |
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>/runs/<runId>/trace"
CURL_CONFIGResponses
| Status | Description | Content type |
|---|---|---|
200 | Redacted replay step 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 | Public API request body too large | 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 | Native trace is 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.id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.evaluationId | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.steps | array<object> | Yes | maxItems: 100 |
data.steps[] | object | Yes | additionalProperties: false |
data.steps[].index | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.steps[].role | "assistant" | "tool_call" | "tool_result" | "verdict" | Yes | — |
data.steps[].content | string | null | Yes | — |
data.steps[].content (anyOf 1) | string | Yes | maxLength: 4000 |
data.steps[].argumentsPreview | string | null | Yes | — |
data.steps[].argumentsPreview (anyOf 1) | string | Yes | maxLength: 2000 |
data.steps[].toolName | string | null | Yes | — |
data.steps[].toolName (anyOf 1) | string | Yes | maxLength: 160 |
data.steps[].ok | boolean | null | Yes | — |
data.steps[].ok (anyOf 1) | boolean | Yes | — |
data.steps[].latencyMs | number | null | Yes | — |
data.steps[].latencyMs (anyOf 1) | number | Yes | minimum: 0 |
data.steps[].truncated | boolean | Yes | — |
data.steps[].redacted | boolean | Yes | — |
data.page | object | Yes | additionalProperties: false |
data.page.offset | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.page.limit | integer | Yes | minimum: 1; maximum: 100 |
data.page.nextOffset | integer | null | Yes | — |
data.page.nextOffset (anyOf 1) | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.page.totalSteps | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.page.omittedSteps | integer | Yes | minimum: 0; maximum: 9007199254740991 |
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.
