fluxgatedocs
Dashboard ↗GitHub

Read one dead letter in full.

GET/v1/dead-letters/{id}
Bearer API keyQuery serviceAPI 1.0.0

Everything the list reports, plus what a person needs to judge the message: a sample of the points it carried, every window it feeds and whether each is stored, and, when the payload could not be decoded, the start of it as text.

A dead letter belonging to another tenant, one that has expired, and an ID that was never issued are the same 404.

Base URL

These addresses are for local development. Replace them with your own deployed service URLs.

http://localhost:8082 Local query API; replace with the deployed query URL.

Request example

Replace credential and batch-key placeholders before running. JavaScript examples use Node.js 24; Python examples use the standard library. Browser clients need a same-origin proxy or suitable CORS configuration. See safe retries for production retry handling.

bash
curl --request GET 'http://localhost:8082/v1/dead-letters/{id}' \
  --header 'Authorization: Bearer <YOUR_API_KEY>'

Authentication

An API key in the form fxg_<key id>_<secret>, sent as Authorization: Bearer fxg_....

The server stores only a SHA-256 digest of the secret. Every authentication failure returns an identical 401 regardless of cause, so a probing client cannot use the response to tell a valid key ID from an invalid one.

Credentials select the tenant. See tenant provisioning and key rotation.

Parameters

idpath · stringrequired

The id of a dead letter from the list.

Pattern ^[0-9a-f]{32}$

Responses

Expand a response to inspect its headers and complete schema.

200The dead letter.

The dead letter.

application/json

DeadLetterDetail ↗

allOf

DeadLetter ↗

One message the broker stopped delivering, as described by the pipeline. A property that is absent is unknown: the broker does not always report how often it tried, and a payload that could not be read has no received time or point timestamps.

Object properties
idstringrequired

Stable for the life of the entry. Not the batch ID -- a batch dead-lettered twice has two.

Pattern ^[0-9a-f]{32}$
statestringrequired

resolved once every window the batch feeds is committed, so nothing is missing. open otherwise.

"open" "resolved"
reasonstringrequired

invalid_envelope: the payload does not decode and cannot be replayed as it is. delivery_exhausted: the payload is valid and every delivery attempt failed; it can be replayed.

"invalid_envelope" "delivery_exhausted"
detailstringrequired

For an invalid_envelope, what the decoder objected to. For a delivery_exhausted, a fixed sentence: the broker does not record why delivery failed. Human-readable; do not branch on it.

batch_idstringoptional

The batch_id the ingest API returned for this batch.

request_idstringoptional

The X-Request-Id of the ingest request, for finding it in logs and traces.

dead_lettered_atstringrequired

When the broker set the message aside.

Format date-time
published_atstringoptional

When the ingest API published the batch.

Format date-time
received_atstringoptional

When the ingest API accepted the batch. Known only for a readable payload.

Format date-time
resolved_atstringoptional

When the pipeline found every window committed.

Format date-time
delivery_attemptsintegeroptional

Deliveries the broker attempted before giving up.

payload_bytesintegerrequired
pointsintegerrequired

Points in the batch. For an invalid_envelope this is the count its publisher declared, or 0 when there is none.

first_point_atstringoptional

The earliest point timestamp in the batch.

Format date-time
last_point_atstringoptional

The latest point timestamp in the batch.

Format date-time
windowsintegerrequired

Aggregation windows the batch feeds. 0 for an invalid_envelope.

windows_committedintegerrequired

How many of those windows are stored. Equal to windows when resolved.

metricsobject[]required

The batch's metrics by number of points, largest first.

Max items 20
Array items · object
Object properties
metricstringrequired
kindstringrequired
"gauge" "counter" "histogram"
pointsintegerrequired
metrics_truncatedbooleanoptional

True when the batch carries more than 20 distinct metrics.

Object properties
sampleobject[]required

The first points of the batch, in the order they were sent: at most 20, and fewer when they are large. Compare its length with points to see how much is shown. Empty for an invalid_envelope.

Max items 20
Array items · object
Object properties
metricstringrequired
kindstringrequired
"gauge" "counter" "histogram"
valuenumberrequired
timestampstringrequired
Format date-time
labelsobjectrequired
Additional values · string
window_listobject[]required

Every window the batch feeds, oldest first, and whether its data is stored.

Array items · object
Object properties
startstringrequired
Format date-time
committedbooleanrequired
raw_previewstringoptional

The start of a payload that could not be decoded, as text, at most 2 KiB. Bytes that are not printable text are shown as the replacement character.

raw_truncatedbooleanoptional

True when the payload is longer than raw_preview.

401Missing or invalid credentials.

Missing or invalid credentials.

Response headers

WWW-Authenticatestring

The Bearer challenge.

application/problem+json

Problem ↗
typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

404This tenant has no dead letter with that ID.

This tenant has no dead letter with that ID.

Response headers

X-Request-Idstring

Correlation ID, echoed on every response. Quote it when reporting a problem.

application/problem+json

Problem ↗
typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

500An RFC 9457 problem document.

An RFC 9457 problem document.

Response headers

X-Request-Idstring

Correlation ID, echoed on every response. Quote it when reporting a problem.

application/problem+json

Problem ↗
typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

503Capacity exhausted; respect Retry-After before retrying.

Capacity exhausted; respect Retry-After before retrying.

Response headers

X-Request-Idstring

Correlation ID, echoed on every response. Quote it when reporting a problem.

application/problem+json

Problem ↗
typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

504An RFC 9457 problem document.

An RFC 9457 problem document.

Response headers

X-Request-Idstring

Correlation ID, echoed on every response. Quote it when reporting a problem.

application/problem+json

Problem ↗
typestringrequired
Format uri
titlestringrequired
statusintegerrequired
detailstringoptional

Human-readable explanation. Do not branch on this.

codestringrequired

Stable machine-readable identifier. Branch on this.

"bad_request" "validation_failed" "unauthorized" "forbidden" "not_found" "method_not_allowed" "conflict" "payload_too_large" "unsupported_media_type" "rate_limited" "timeout" "service_unavailable" "internal_error"
request_idstringoptional
errorsFieldError[]optional
Array items · FieldErrorFieldError ↗
Object properties
fieldstringrequired

Dotted path to the offending value, including the batch index.

messagestringrequired

What the submitter must change.

Something to improve? Edit this page View source

Search the complete documentation.