Start or continue an owned persistent form-builder conversation

POST /api/v1/public/evaluation-form-builder/chat

POST /api/v1/public/evaluation-form-builder/chat

OAuth user only, selected-project evaluation write/manage permission, Tier C compute gate and stable idempotency key. Body contains query and bounded current-form/selection context, plus optional sessionId for continuation. Actor identity and history are server-owned. A missing or foreign supplied session never creates a replacement. New admission reserves compute budget; unconfirmed replay first recovers the owned runtime receipt; already-ready replay and action-result recovery return the immutable originally confirmed response snapshot. A confirmed running snapshot never upgrades on replay. For this operation compute succeeded means confirmed response delivery, not native chat completion. Later visible conversation content is available through get_api_v1_public_evaluation_form_builder_sessions_sessionId_messages (CLI: neatlogs evaluations assistant messages <session-id>) using the same project and independent evaluation:read scope plus eval:read permission and current ownership. Messages are bounded history, not an exact turn-status API; do not poll saved results, message counts or compute success to infer native completion. Write-only chat credentials gain no history-read scope. Inspect running/completed/failed state: only completed output has atomically persisted messages and suggestion IDs. A disconnected or expired attempt never regenerates with the same key; a new key explicitly retries a failed turn. At most 100 messages/turns and 256 KiB history/receipt per session; capacity requires a new conversation. Every replay rechecks current authorization and runtime ownership. App stores only bounded turn/session identity and, for completed snapshots, a canonical response digest/reference; native output remains in its existing owned receipt and is materialized with GET only. App never copies prompt or output into its idempotency/finality/compute result storage. Missing native confirmation returns retryable 503. Requires the durable native FormBuilder turn prerequisite; does not apply or save a form.

Operation ID: post_api_v1_public_evaluation_form_builder_chat.

Authentication

Choose a credential. Each row is an accepted alternative; access also depends on current roles, project bindings, and entitlements.

CredentialCarrierOAuth scopes
OAuth2Authorization: Bearerevaluation: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 tier-c-compute capability to be enabled for the deployment. Its presence in the contract does not guarantee availability. See operation availability.

Request parameters

NameLocationRequiredType / allowed valuesDescription / constraints
idempotency-keyheaderYesstringidempotency-key header parameter; Required canonical UUIDv4 or high-entropy base64url idempotency key; minLength: 22; maxLength: 43; Pattern constrained; see the downloadable schema.
x-project-idheaderYesstringx-project-id header parameter; format: uuid; Pattern constrained; see the downloadable schema.

Request body

Body required: yes.

application/json

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
querystringYesminLength: 1; maxLength: 2000
contextobjectYesadditionalProperties: false
context.current_page"build_form" | "evals"Nodefault: build_form
context.trace_mode"existing" | "future"Yes—
context.runs_onobjectYesadditionalProperties: false
context.runs_on.scope"all" | "types" | "names"Yes—
context.runs_on.typesarray<string> | nullNo—
context.runs_on.types (anyOf 1)array<string>YesmaxItems: 100
context.runs_on.types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
context.runs_on.namesarray<string> | nullNo—
context.runs_on.names (anyOf 1)array<string>YesmaxItems: 100
context.runs_on.names (anyOf 1)[]stringYesminLength: 1; maxLength: 255
context.current_formobjectNoadditionalProperties: false
context.current_form.namestringNodefault: ``; maxLength: 255
context.current_form.questionsarray<object>NomaxItems: 100
context.current_form.questions[]objectYesadditionalProperties: false
context.current_form.questions[].idstringNodefault: ``; maxLength: 255
context.current_form.questions[].textstringYesminLength: 1; maxLength: 500
context.current_form.questions[].type"short_answer" | "paragraph" | "multiple_choice" | "checkboxes" | "dropdown" | "linear_scale" | "rating" | "multiple_choice_grid" | "checkbox_grid"Yes—
context.current_form.questions[].descriptionstring | nullNo—
context.current_form.questions[].description (anyOf 1)stringYesmaxLength: 500
context.current_form.questions[].requiredbooleanNodefault: true
context.current_form.questions[].configobjectNo—
context.current_form.questions[].config.*anyNo—
context.selected_itemsarray<object> | nullNo—
context.selected_items (anyOf 1)array<object>YesmaxItems: 10
context.selected_items (anyOf 1)[]objectYesadditionalProperties: false
context.selected_items (anyOf 1)[].item_type"trace" | "span"Yes—
context.selected_items (anyOf 1)[].item_idstringYesminLength: 1; maxLength: 255
context.selected_items (anyOf 1)[].parent_trace_idstring | nullNo—
context.selected_items (anyOf 1)[].parent_trace_id (anyOf 1)stringYesminLength: 1; maxLength: 255
context.selection_descriptorobject | nullNo—
context.selection_descriptor (anyOf 1)objectYesadditionalProperties: false
context.selection_descriptor (anyOf 1).filterobject | nullNo—
context.selection_descriptor (anyOf 1).filter (anyOf 1)objectYes—
context.selection_descriptor (anyOf 1).filter (anyOf 1).*anyNo—
context.selection_descriptor (anyOf 1).fromstring | nullNo—
context.selection_descriptor (anyOf 1).from (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
context.selection_descriptor (anyOf 1).tostring | nullNo—
context.selection_descriptor (anyOf 1).to (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
context.selection_descriptor (anyOf 1).search_querystring | nullNo—
context.selection_descriptor (anyOf 1).search_query (anyOf 1)stringYesmaxLength: 4096
context.selection_descriptor (anyOf 1).sort"startedAt:asc" | "startedAt:desc" | "random" | nullNo—
context.selection_descriptor (anyOf 1).sort (anyOf 1)"startedAt:asc" | "startedAt:desc" | "random"Yes—
context.selection_descriptor (anyOf 1).sort_seedstring | nullNo—
context.selection_descriptor (anyOf 1).sort_seed (anyOf 1)stringYesminLength: 1; maxLength: 255
context.selection_descriptor (anyOf 1).target"traces" | "spans"Nodefault: traces
context.selection_descriptor (anyOf 1).span_typesarray<string> | nullNo—
context.selection_descriptor (anyOf 1).span_types (anyOf 1)array<string>YesmaxItems: 100
context.selection_descriptor (anyOf 1).span_types (anyOf 1)[]stringYesminLength: 1; maxLength: 255
context.selection_descriptor (anyOf 1).span_namesarray<string> | nullNo—
context.selection_descriptor (anyOf 1).span_names (anyOf 1)array<string>YesmaxItems: 100
context.selection_descriptor (anyOf 1).span_names (anyOf 1)[]stringYesminLength: 1; maxLength: 255
context.selection_descriptor (anyOf 1).review_countinteger | nullNo—
context.selection_descriptor (anyOf 1).review_count (anyOf 1)integerYesminimum: 1; maximum: 1000
context.selection_descriptor (anyOf 1).excluded_item_idsarray<string>NomaxItems: 1000
context.selection_descriptor (anyOf 1).excluded_item_ids[]stringYesminLength: 1; maxLength: 255
context.selection_summaryobject | nullNo—
context.selection_summary (anyOf 1)objectYesadditionalProperties: false
context.selection_summary (anyOf 1).mode"explicit" | "allMatching"No—
context.selection_summary (anyOf 1).target"traces" | "spans"No—
context.selection_summary (anyOf 1).totalItemsintegerNominimum: 0; maximum: 1000000
context.selection_summary (anyOf 1).traceCountintegerNominimum: 0; maximum: 1000000
context.selection_summary (anyOf 1).spanCountintegerNominimum: 0; maximum: 1000000
context.filtersarray<object> | nullNo—
context.filters (anyOf 1)array<object>YesmaxItems: 100
context.filters (anyOf 1)[]objectYes—
context.filters (anyOf 1)[].fieldstringYesminLength: 1
context.filters (anyOf 1)[].operatorstringYesminLength: 1
context.filters (anyOf 1)[].valueanyYes—
context.ends_atstring | nullNo—
context.ends_at (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
context.batch_schedulestring | nullNo—
context.batch_schedule (anyOf 1)stringYesmaxLength: 255
context.mode"fast" | "pro"Nodefault: fast
sessionIdstringNoformat: 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 = "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/evaluation-form-builder/chat"
CURL_CONFIG

Responses

StatusDescriptionContent type
200Owned durable chat turn; inspect state before using outputapplication/json
400Invalid public API requestapplication/problem+json
401Missing or invalid public API credentialapplication/problem+json
403Public API request is not authorizedapplication/problem+json
404Public API resource not foundapplication/problem+json
409Public API request conflictapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
429Public API rate limit exceededapplication/problem+json
500Internal server errorapplication/problem+json
503Public 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.

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
dataobjectYesadditionalProperties: false
data.turnIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.sessionIdstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.state"running" | "completed" | "failed"Yes—
data.outputobjectNoadditionalProperties: false
data.output.contentstringYesmaxLength: 16384
data.output.formSuggestionsarray<object>YesmaxItems: 20
data.output.formSuggestions[]objectYesadditionalProperties: false
data.output.formSuggestions[].type"form_suggestion"No—
data.output.formSuggestions[].suggestion_idstringNomaxLength: 255
data.output.formSuggestions[].message_idstringNomaxLength: 255
data.output.formSuggestions[].action"REPLACE_ALL" | "ADD_QUESTIONS" | "UPDATE_QUESTION" | "REMOVE_QUESTION" | "ADD" | "MODIFY" | "UPDATE" | "REMOVE"Yes—
data.output.formSuggestions[].form_namestringNomaxLength: 1024
data.output.formSuggestions[].questionsarray<object>NomaxItems: 100
data.output.formSuggestions[].questions[]objectYesadditionalProperties: false
data.output.formSuggestions[].questions[].idstringYesmaxLength: 255
data.output.formSuggestions[].questions[].textstringYesmaxLength: 16384
data.output.formSuggestions[].questions[].typestringYesmaxLength: 64
data.output.formSuggestions[].questions[].descriptionstring | nullNo—
data.output.formSuggestions[].questions[].description (anyOf 1)stringYesmaxLength: 16384
data.output.formSuggestions[].questions[].requiredbooleanNo—
data.output.formSuggestions[].questions[].configobjectNo—
data.output.formSuggestions[].questions[].config.*anyNo—
data.output.formSuggestions[].reasoningstringNomaxLength: 16384
data.output.formSuggestions[].target_indicesarray<integer> | nullNo—
data.output.formSuggestions[].target_indices (anyOf 1)array<integer>YesmaxItems: 100
data.output.formSuggestions[].target_indices (anyOf 1)[]integerYesminimum: 0; maximum: 9007199254740991
data.output.formSuggestions[].changesarray<object>NomaxItems: 100
data.output.formSuggestions[].changes[]objectYesadditionalProperties: false
data.output.formSuggestions[].changes[].opstringNomaxLength: 32
data.output.formSuggestions[].changes[].target_idstringNomaxLength: 255
data.output.formSuggestions[].changes[].questionobjectNoadditionalProperties: false
data.output.formSuggestions[].changes[].question.idstringYesmaxLength: 255
data.output.formSuggestions[].changes[].question.textstringYesmaxLength: 16384
data.output.formSuggestions[].changes[].question.typestringYesmaxLength: 64
data.output.formSuggestions[].changes[].question.descriptionstring | nullNo—
data.output.formSuggestions[].changes[].question.description (anyOf 1)stringYesmaxLength: 16384
data.output.formSuggestions[].changes[].question.requiredbooleanNo—
data.output.formSuggestions[].changes[].question.configobjectNo—
data.output.formSuggestions[].changes[].question.config.*anyNo—
data.output.formSuggestions[].changes[].reasonstringNomaxLength: 16384
data.output.suggestionsarray<string>YesmaxItems: 20
data.output.suggestions[]stringYesmaxLength: 2048
requestIdstringYesPattern constrained; see the downloadable schema.
successtrueYes—

Response headers

HeaderDescription / constraints
RateLimit-LimitEffective request ceiling for the current window; minimum: 1
RateLimit-RemainingRequests remaining in the current window; minimum: 0
RateLimit-ResetUnix timestamp in seconds when the current window resets; minimum: 0
X-NeatLogs-RateLimit-DegradedWhether bounded emergency enforcement is active; —
X-NeatLogs-RateLimit-LimitEffective request ceiling for the current window; minimum: 1
X-NeatLogs-RateLimit-PolicyApplied pre-authentication or authenticated rate class; —
X-NeatLogs-RateLimit-RemainingRequests remaining in the current window; minimum: 0
X-NeatLogs-RateLimit-Reset-AfterWhole seconds until the current window resets; minimum: 1
X-NeatLogs-RateLimit-VersionNeatLogs rate-limit contract version; —
X-Request-IdServer-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.

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.