v1

latestOpenAPI 3.1.0Apache-2.02026-07-17586455.2 KB
Documents

Mark the document as extraction-failed.

Service-owned status transition: callers declare that extraction failed and what category via a bounded error_code. The route service-truncates error_message to a fixed cap and rejects arbitrary status combinations. Idempotent on retry; 409 on invalid source state with the row's current per-layer status echoed in the response body.

post/v1/documents/{id}/extraction-failure

Path parameters

idstring uuid required

Request body

error_code'parser_threw' | 'parser_timeout' | 'parser_oom' | 'unsupported_encoding' | 'corrupt_input' | 'unknown' required

Bounded extraction-layer failure code. Open-ended exception messages ride on error_message; this code is what the UI / metrics layer pivots on.

error_messagestring required
user_idstring required

Required. user_id.

Response

Marker write acknowledgement; durable row echoed.

idempotentboolean required