Create an owned durable full-answer CSV or JSON export
POST /api/v1/public/evaluations/{evaluationId}/exports
POST /api/v1/public/evaluations/{evaluationId}/exportsOAuth creator only, selected-project evaluation manage access and current entitlement. Jobs remain scoped to organization/project/evaluation/requesting user. Requires the existing durable export lane and worker configuration; disabled lanes fail with 503. Full submitted answers and reviewer/item context are rendered as CSV or JSON by the existing snapshot worker; caller filters and sensitive trace payload selectors are not accepted. Snapshot source changes fail the job rather than mixing data. One active job per organization, bounded rows/bytes, worker lease/retry/cancellation rules and retention apply. Current status reads resume an existing handle without admitting a new job. Terminal cancellation/failure requires a new creation key to start another job; no force-restart operation. Current creator authorization is rechecked on every read and mutation replay. Stable key recovers the same job through uncertain commit acknowledgments. Response records durable queue admission, not completion or storage delivery.
Operation ID: post_api_v1_public_evaluations_evaluationId_exports.
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:write |
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 requires the public-api-mutations capability to be enabled for the deployment. Its presence in the contract does not guarantee availability. See operation availability.
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. |
idempotency-key | header | Yes | string | idempotency-key header parameter; Required canonical UUIDv4 or high-entropy base64url idempotency key; minLength: 22; maxLength: 43; Pattern constrained; see the downloadable schema. |
x-project-id | header | Yes | string | x-project-id header parameter; format: uuid; Pattern constrained; see the downloadable schema. |
Request body
Body required: yes.
application/json
| Field | Type / allowed values | Required in parent | Description / constraints |
|---|---|---|---|
$ | object | Yes | additionalProperties: false |
format | "csv" | "json" | Yes | — |
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 = "POST"
header = "Authorization: Bearer ${NEATLOGS_TOKEN}"
header = "idempotency-key: ${IDEMPOTENCY_KEY}"
header = "x-project-id: ${NEATLOGS_PROJECT_ID}"
header = "Content-Type: application/json"
data-binary = "@request-body.txt"
url = "https://app.neatlogs.com/api/v1/public/evaluations/<evaluationId>/exports"
CURL_CONFIGResponses
| Status | Description | Content type |
|---|---|---|
200 | Creator-owned durable evaluation export; inspect status | 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 | Owned evaluation or export not found | application/problem+json |
409 | Evaluation export conflict | application/problem+json |
410 | Evaluation export expired | 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 | 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.job | object | Yes | additionalProperties: false |
data.job.attemptCount | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.job.completedAt | string | null | Yes | — |
data.job.completedAt (anyOf 1) | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.job.createdAt | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.job.error | object | null | Yes | — |
data.job.error (anyOf 1) | object | Yes | additionalProperties: false |
data.job.error (anyOf 1).code | string | Yes | maxLength: 128 |
data.job.error (anyOf 1).message | string | Yes | maxLength: 2048 |
data.job.expiresAt | string | null | Yes | — |
data.job.expiresAt (anyOf 1) | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
data.job.format | "csv" | "json" | Yes | — |
data.job.id | string | Yes | format: uuid; Pattern constrained; see the downloadable schema. |
data.job.processedCount | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.job.responseCount | integer | Yes | minimum: 0; maximum: 9007199254740991 |
data.job.status | "queued" | "running" | "cancel_requested" | "completed" | "failed" | "cancelled" | Yes | — |
data.job.updatedAt | string | Yes | format: date-time; Pattern constrained; see the downloadable schema. |
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.
