Delivery: envelopes, signatures and acknowledgement
A dispatch job reaches its consumer as an HTTP POST from the platform’s delivery callback. This page
describes that request, how to check it came from FlowCatalyst, and what each possible answer does to
the job.
The request
Section titled “The request”- Method and target:
POSTto the job’s target URL (the subscription’s endpoint, or a direct job’stargetUrl). - Timeout: the job’s
timeoutSeconds(default 30 seconds), never more than 2 minutes. - Redirects are not followed. A
3xxis treated as a failed attempt: following a301or302would turn thePOSTinto aGETwithout a body. - Outbound guard: the platform refuses to deliver to loopback addresses, link-local addresses and
the cloud metadata service, and by default to private networks too
(
FC_DELIVERY_ALLOW_PRIVATE). Target URLs are customer input, and the platform calls them from inside its own network. An IPv6 address that carries a zone (such asfe80::1%eth0, which names a network interface) is refused too: the platform judges the address without its zone, and then refuses it for having one.
Headers
Section titled “Headers”| Header | When | Value |
|---|---|---|
Content-Type |
Always | application/json for the envelope; the job’s own content type for a data-only body |
X-Dispatch-Job-Id |
Always | The job id. Use it to make the handler idempotent. |
X-Event-Type |
Always | The job’s code (the event type, for an event-raised job) |
X-FlowCatalyst-Client |
When the job’s client resolves | {clientId}:{clientCode}, so a multi-tenant endpoint knows which tenant the delivery is for |
X-FlowCatalyst-Timestamp |
When the signing account has a signing secret | The signing time, UTC, ISO 8601 with milliseconds (2026-11-09T09:15:02.481Z) |
X-FlowCatalyst-Signature |
When the signing account has a signing secret | Lowercase hex HMAC-SHA256 (see below) |
Authorization |
When the signing account has an auth token | Bearer <token> |
The body: envelope or data only
Section titled “The body: envelope or data only”Each job is delivered in one of two shapes, chosen by its dataOnly flag.
The envelope (dataOnly false) is JSON:
| Field | Meaning |
|---|---|
id |
The dispatch job id |
type |
The job’s code |
attemptNumber |
1 for the first attempt, then 2, 3 and so on. Deferrals do not raise it. |
time |
When the job was created, UTC, RFC 3339 with milliseconds |
dataContentType |
The payload’s content type, when the job has one |
source, subject, correlationId, messageGroup |
Present when the job has them |
clientId, clientCode |
The job’s client. clientCode is left out when the client cannot be resolved. |
data |
The payload: parsed JSON when it parses, otherwise the text as a string |
Data only (dataOnly true) sends the payload byte for byte, with the job’s own
Content-Type. An XML payload arrives as XML. The envelope’s identifying fields travel in the
headers instead (X-Dispatch-Job-Id, X-Event-Type, X-FlowCatalyst-Client).
Use the envelope when the consumer wants context with the payload; use data only when the consumer expects a fixed format (an existing API, a file format, another vendor’s webhook).
The signature
Section titled “The signature”When the signing service account has a signing secret, every delivery carries:
X-FlowCatalyst-Signature = hex( HMAC-SHA256( secret, timestamp + rawBody ) )where timestamp is the exact X-FlowCatalyst-Timestamp header value and rawBody is the request
body as sent. The signature covers the body alone, not the headers.
Verify before you parse. Compute the HMAC over the bytes you received, compare it in constant time, and only then parse the body. Re-serialising parsed JSON changes the bytes (key order, spacing, number formats) and breaks the signature. The SDK verifiers also reject a timestamp more than 5 minutes old, as a replay guard, and one too far in the future (more than a minute in most SDKs; the Go verifier allows 5 minutes either way).
import "github.com/flowcatalyst/go-sdk/webhook"
verifier := webhook.NewVerifier(os.Getenv("FLOWCATALYST_SIGNING_SECRET"))
func handle(w http.ResponseWriter, r *http.Request) { body, _ := io.ReadAll(r.Body) // the raw bytes, before any parsing err := verifier.Verify(body, r.Header.Get(webhook.SignatureHeader), r.Header.Get(webhook.TimestampHeader)) if err != nil { http.Error(w, "invalid signature", http.StatusUnauthorized) return } // handle the delivery, keyed on r.Header.Get("X-Dispatch-Job-Id")}// throws WebhookSignature.WebhookSignatureException on any failureWebhookSignature.verify(rawBodyBytes, request.header("X-FlowCatalyst-Signature"), request.header("X-FlowCatalyst-Timestamp"), signingSecret);import { verifyDeliverySignature } from "@flowcatalyst/sdk";
// throws WebhookSignatureError (with a .code saying what to fix)verifyDeliverySignature({ rawBody, signature: req.headers["x-flowcatalyst-signature"], timestamp: req.headers["x-flowcatalyst-timestamp"], secret: process.env.FLOWCATALYST_SIGNING_SECRET!,});use FlowCatalyst\Exceptions\WebhookValidationException;use FlowCatalyst\Webhook\WebhookValidator;
// Or put the route behind the 'flowcatalyst.webhook' middleware.try { WebhookValidator::fromConfig()->validateRequest($request);} catch (WebhookValidationException $e) { return response()->json(['error' => 'Invalid signature'], 401);}use flowcatalyst_sdk::webhook::{WebhookVerifier, SIGNATURE_HEADER, TIMESTAMP_HEADER};
let verifier = WebhookVerifier::from_env()?; // FLOWCATALYST_SIGNING_SECRETlet signature = headers.get(SIGNATURE_HEADER).and_then(|v| v.to_str().ok());let timestamp = headers.get(TIMESTAMP_HEADER).and_then(|v| v.to_str().ok());verifier.verify(&raw_body, signature, timestamp)?;The bearer token is a second, static credential sent beside the signature. Some SDK verifiers can check it as well (an extra gate, never a replacement): the signature is the real proof, because it binds the secret to this body at this time.
Which secret. Deliveries are signed by the service account of the subscription’s connection, so the consumer verifies with that account’s signing secret. If no account can be resolved, or the named account has no credentials, the delivery goes out unsigned and the attempt records why.
What each answer does
Section titled “What each answer does”| The consumer answers | The job |
|---|---|
2xx |
COMPLETED. The real status is recorded. |
2xx with {"ack": false}, optionally "notBefore": "<RFC 3339>" or "delaySeconds": n |
Deferred: back to PENDING, due again at notBefore (else after n seconds, else 30). No attempt is spent. |
429 |
Deferred for Retry-After, given as seconds or as an HTTP date (30 seconds when absent). No attempt is spent. |
401 or 403 |
FAILED at once: the consumer refused the credentials, and a retry would send the same ones. |
422 with FlowCatalyst-Outcome: reject |
FAILED at once: the consumer says retrying cannot help. |
3xx, any other 4xx, any 5xx, a timeout or a connection error |
A failed attempt. Retried with backoff until the attempts run out, then FAILED. |
Backoff. After a failed attempt the job waits as its retryStrategy says: exponential (the default) waits 5 seconds, then 15, 30, 60, and 120 seconds for every later attempt; fixed waits 30 seconds every time; immediate waits only for the next scheduler poll. maxRetries (default 3) is the number of attempts in all.
Parked means FAILED. A job that is out of attempts, or refused outright, stays FAILED with its
last error and the full attempt history, until an operator requeues, cancels or completes it
(dispatch jobs). In a BLOCK_ON_ERROR group it also
holds the jobs behind it.
Delay and age before delivery
Section titled “Delay and age before delivery”Two subscription settings are applied before the request is made, both counted from the event’s creation. delaySeconds holds the delivery until that time has passed: the callback tells the router the exact time ({"ack": false, "notBefore": ..., "delaySeconds": ...}) and the router redelivers then. maxAgeSeconds (24 hours unless set) is the limit: a job reached after it is marked EXPIRED, acknowledged and never attempted, even when it spent the time held behind a failed job in a BLOCK_ON_ERROR group. A job whose pool is SUSPENDED or ARCHIVED is returned to PENDING without an attempt and waits for the pool to be active.
ack=false means “later”, not “failed”
Section titled “ack=false means “later”, not “failed””A consumer that is healthy but cannot take this delivery yet (a dependency is down, it is throttling
itself, the record it needs has not arrived) answers 2xx with {"ack": false}. That is a
deferral, not a failure: the job comes back later without spending an attempt, and nothing counts
it against the consumer. Use a failure status only when something is actually wrong.
No circuit breaker per consumer
Section titled “No circuit breaker per consumer”A consumer that keeps failing gets retries with backoff, and then failed jobs for an operator. There is no circuit breaker in front of each consumer: the router’s breakers protect the URL the router itself calls, which for dispatch jobs is the platform’s delivery callback, not your endpoint.
Read next
Section titled “Read next”- Receive deliveries and verify signatures: the how-to.
- Delivery and webhook signatures: the exact signing string, test vectors, and a checker.
- Dispatch jobs and ordering.
- Message router: outcomes for messages the router delivers itself.
- Decisions: ack=false means deferral, sign the received bytes, the connection’s service account signs.