Publish a scoped native incident snapshot with revision fencing

POST /api/v1/public/incidents/external

POST /api/v1/public/incidents/external

Create or trigger incidents external.

Operation ID: post_api_v1_public_incidents_external.

Authentication

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

CredentialCarrierOAuth scopes
ServiceAccountBearerAuthAuthorization: BearerSee credential policy

For OAuth and service-account credentials, send the selected project UUID in x-project-id, including when the header is optional for legacy keys.

Service-account tokens need the corresponding functional scopes listed for OAuth, as well as an active binding and role for the selected project.

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

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; Required service-account or OAuth project selection; format: uuid; Pattern constrained; see the downloadable schema.

Request body

Body required: yes.

application/json

FieldType / allowed valuesRequired in parentDescription / constraints
$objectYesadditionalProperties: false
project_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
org_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
source"incident_loop"Yes—
incident_idstringNoformat: uuid; Pattern constrained; see the downloadable schema.
fingerprintstringNominLength: 1; maxLength: 255
revisionintegerNominimum: 1; maximum: 9007199254740991
complete_snapshotbooleanYes—
window_startstringYesformat: date-time; Pattern constrained; see the downloadable schema.
window_endstringYesformat: date-time; Pattern constrained; see the downloadable schema.
titlestringYesminLength: 1; maxLength: 240
descriptionstringYesminLength: 1; maxLength: 20000
severity"critical" | "high" | "medium" | "low"Nodefault: medium
attention_state"show" | "watch" | nullNo—
attention_state (anyOf 1)"show" | "watch"Yes—
categorystring | nullNo—
category (anyOf 1)stringYesmaxLength: 32
workflowstringYesminLength: 1; maxLength: 128
failure_occurrencesarray<object>YesmaxItems: 1000
failure_occurrences[]objectYesadditionalProperties: false
failure_occurrences[].source_event_idstringYesminLength: 1; maxLength: 128
failure_occurrences[].trace_idstringYesminLength: 1; maxLength: 255
failure_occurrences[].span_idstring | nullNo—
failure_occurrences[].span_id (anyOf 1)stringYesminLength: 1; maxLength: 255
failure_occurrences[].observed_atstringYesformat: date-time; Pattern constrained; see the downloadable schema.
representative_samplesarray<string>NomaxItems: 50
representative_samples[]stringYes—
presentationobjectNoadditionalProperties: false
presentation.version1Yes—
presentation.findingsarray<object>YesmaxItems: 10
presentation.findings[]objectYesadditionalProperties: false
presentation.findings[].idstringYesminLength: 1; maxLength: 80
presentation.findings[].textstringYesminLength: 1; maxLength: 2000
presentation.findings[].basis"check_result" | "trace_observation" | "inference"Yes—
presentation.findings[].source_event_idsarray<string>YesminItems: 1; maxItems: 10
presentation.findings[].source_event_ids[]stringYesminLength: 1; maxLength: 128
presentation.open_questionsarray<string>YesmaxItems: 8
presentation.open_questions[]stringYesminLength: 1; maxLength: 500
presentation.coverageobjectYesadditionalProperties: false
presentation.coverage.judged_targetsinteger | nullYes—
presentation.coverage.judged_targets (anyOf 1)integerYesminimum: 0; maximum: 9007199254740991
presentation.coverage.census_turnsinteger | nullYes—
presentation.coverage.census_turns (anyOf 1)integerYesminimum: 0; maximum: 9007199254740991
presentation.coverage.completefalse | nullYes—
presentation.coverage.complete (anyOf 1)falseYes—
presentation.coverage.limitationsarray<string>YesmaxItems: 8
presentation.coverage.limitations[]stringYesminLength: 1; maxLength: 500
presentation.monitoringarray<object>YesmaxItems: 10
presentation.monitoring[]objectYesadditionalProperties: false
presentation.monitoring[].requirement_idstringYesminLength: 1; maxLength: 128
presentation.monitoring[].detection_idstring | nullYes—
presentation.monitoring[].detection_id (anyOf 1)stringYesformat: uuid; Pattern constrained; see the downloadable schema.
presentation.monitoring[].draft_idstring | nullYes—
presentation.monitoring[].draft_id (anyOf 1)stringYesformat: uuid; Pattern constrained; see the downloadable schema.
presentation.monitoring[].state"pending" | "active" | "inactive" | "blocked" | "failed" | "deleted" | "unknown"Yes—
presentation.monitoring[].config_fingerprintstring | nullYes—
presentation.monitoring[].config_fingerprint (anyOf 1)stringYesminLength: 1; maxLength: 128
presentation.monitoring[].backfill_statusstring | nullYes—
presentation.monitoring[].backfill_status (anyOf 1)stringYesminLength: 1; maxLength: 64
overviewobjectNoadditionalProperties: false
overview.version1Yes—
overview.examplesarray<object>NomaxItems: 10
overview.examples[]objectYesadditionalProperties: false
overview.examples[].idstringYesminLength: 1; maxLength: 128; Pattern constrained; see the downloadable schema.
overview.examples[].textstringYesminLength: 1; maxLength: 1200; Pattern constrained; see the downloadable schema.
overview.examples[].source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.examples[].source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.examplestring | nullNo—
overview.example (anyOf 1)stringYesminLength: 1; maxLength: 1200; Pattern constrained; see the downloadable schema.
overview.priority_assessmentobject | nullNo—
overview.priority_assessment (anyOf 1)objectYesadditionalProperties: false
overview.priority_assessment (anyOf 1).priority"critical" | "high" | "medium" | "low" | "unknown"Yes—
overview.priority_assessment (anyOf 1).rationalestringYesminLength: 1; maxLength: 800; Pattern constrained; see the downloadable schema.
overview.priority_assessment (anyOf 1).source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.priority_assessment (anyOf 1).source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.priority_assessment (anyOf 1).impact_basis"observed" | "sampled"Yes—
overview.priority_assessment (anyOf 1).rubric_version1Yes—
overview.confidence_assessmentobject | nullNo—
overview.confidence_assessment (anyOf 1)objectYesadditionalProperties: false
overview.confidence_assessment (anyOf 1).evidence_receiptsarray<string>No—
overview.confidence_assessment (anyOf 1).evidence_receipts[]stringYesPattern constrained; see the downloadable schema.
overview.confidence_assessment (anyOf 1).factorsobjectYesadditionalProperties: false
overview.confidence_assessment (anyOf 1).factors.evidence_strengthnumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).factors.pattern_consistencynumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).factors.detection_alignmentnumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).factors.historical_matchnumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).factors.user_signal_weightnumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).factors.expected_impactnumberYesminimum: 0; maximum: 1
overview.confidence_assessment (anyOf 1).rationalestringYesminLength: 1; maxLength: 800; Pattern constrained; see the downloadable schema.
overview.confidence_assessment (anyOf 1).source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.confidence_assessment (anyOf 1).source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.confidence_assessment (anyOf 1).rubric_version1Yes—
overview.confidence_assessment (anyOf 1).investigation_revisionstring | nullNo—
overview.confidence_assessment (anyOf 1).investigation_revision (anyOf 1)stringYesPattern constrained; see the downloadable schema.
overview.review_idstring | nullNo—
overview.review_id (anyOf 1)stringYesformat: uuid; Pattern constrained; see the downloadable schema.
overview.impact_sampleobject | nullNo—
overview.impact_sample (anyOf 1)objectYesadditionalProperties: false
overview.impact_sample (anyOf 1).cohortstringYesminLength: 1; maxLength: 256
overview.impact_sample (anyOf 1).check_idstringYesminLength: 1; maxLength: 128
overview.impact_sample (anyOf 1).check_revisionstringYesminLength: 1; maxLength: 128
overview.impact_sample (anyOf 1).checked_atstringNoformat: date-time; Pattern constrained; see the downloadable schema.
overview.impact_sample (anyOf 1).trace_idsarray<string>YesminItems: 1; maxItems: 2000
overview.impact_sample (anyOf 1).trace_ids[]stringYesminLength: 1; maxLength: 255
overview.impact_sample (anyOf 1).context_startstring | nullNo—
overview.impact_sample (anyOf 1).context_start (anyOf 1)stringYesformat: date-time; Pattern constrained; see the downloadable schema.
overview.impact_sample (anyOf 1).context_reasonstring | nullNo—
overview.impact_sample (anyOf 1).context_reason (anyOf 1)stringYesminLength: 1; maxLength: 500
overview.confirmation_source_event_idsarray<string>NomaxItems: 10
overview.confirmation_source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.representative_source_event_idstring | nullNo—
overview.representative_source_event_id (anyOf 1)stringYesminLength: 1; maxLength: 128
overview.recommendationobject | object | nullNo—
overview.recommendation (anyOf 1)object | objectYes—
overview.recommendation (anyOf 1) (anyOf 1)objectYesadditionalProperties: false
overview.recommendation (anyOf 1) (anyOf 1).titlestringYesminLength: 1; maxLength: 2000
overview.recommendation (anyOf 1) (anyOf 1).stepsarray<string>YesminItems: 1; maxItems: 8
overview.recommendation (anyOf 1) (anyOf 1).steps[]stringYesminLength: 1; maxLength: 2000
overview.recommendation (anyOf 1) (anyOf 1).source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.recommendation (anyOf 1) (anyOf 1).source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.recommendation (anyOf 1) (anyOf 1).investigation_thread_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
overview.recommendation (anyOf 1) (anyOf 1).investigation_revisionstringYesPattern constrained; see the downloadable schema.
overview.recommendation (anyOf 1) (anyOf 2)objectYesadditionalProperties: false
overview.recommendation (anyOf 1) (anyOf 2).titlestringYesminLength: 1; maxLength: 2000
overview.recommendation (anyOf 1) (anyOf 2).stepsarray<string>YesminItems: 1; maxItems: 8
overview.recommendation (anyOf 1) (anyOf 2).steps[]stringYesminLength: 1; maxLength: 2000
overview.recommendation (anyOf 1) (anyOf 2).source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.recommendation (anyOf 1) (anyOf 2).source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.recommendation (anyOf 1) (anyOf 2).investigation_thread_idnullNo—
overview.recommendation (anyOf 1) (anyOf 2).investigation_revisionnullNo—
overview.feedback_questionobject | nullNo—
overview.feedback_question (anyOf 1)objectYesadditionalProperties: false
overview.feedback_question (anyOf 1).idstringYesminLength: 1; maxLength: 80
overview.feedback_question (anyOf 1).textstringYesminLength: 1; maxLength: 2000
overview.feedback_question (anyOf 1).source_event_idsarray<string>YesminItems: 1; maxItems: 10
overview.feedback_question (anyOf 1).source_event_ids[]stringYesminLength: 1; maxLength: 128
overview.feedback_consumedarray<object>NomaxItems: 25
overview.feedback_consumed[]objectYesadditionalProperties: false
overview.feedback_consumed[].answer_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
overview.feedback_consumed[].run_idstringYesminLength: 1; maxLength: 128

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/incidents/external"
CURL_CONFIG

Responses

StatusDescriptionContent type
200Native incident snapshot receipt; fingerprint and revision are its replay identityapplication/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
409Incident revision conflictapplication/problem+json
413Public API request body too largeapplication/problem+json
415Unsupported public API request bodyapplication/problem+json
422Incident snapshot evidence is invalidapplication/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.signal_idstringYesformat: uuid; Pattern constrained; see the downloadable schema.
data.canonical_fingerprintstringYes—
data.accepted_revisionintegerYesminimum: -9007199254740991; maximum: 9007199254740991
data.appliedbooleanYes—
data.applied_occurrence_countintegerYesminimum: 0; maximum: 9007199254740991
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.