Skip to main content
POST
Internal rail inbound callback

Headers

X-Internal-Callback
string

Internal callback shared secret

Body

application/json
payloadHash
string
required

SHA-256 hex digest of the referenced payload bytes: 64 hexadecimal characters, either case. Checked against the staged bytes by the handler, which answers 400 on a mismatch for the same ack-table reason as receivedAt.

Example:

"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

payloadRef
string
required

Opaque reference to the payload bytes held in the server-side resolver

receivedAt
string
required

Timestamp the mesh received the rail message, RFC3339 UTC. Shape is enforced by the handler rather than the schema so an unparseable value is redelivered (400) instead of acknowledged and dropped (422).

Example:

"2026-06-14T12:00:00Z"

source
string
required

Originating rail/source identifier of the inbound message. Lerian's own mesh vocabulary, not a BACEN code.

channel
string

Optional channel discriminator routing the message to a handler

headers
object

Forwarded transport headers (e.g. X-Idempotency), used for idempotency and routing

payload
string

Optional base64-encoded payload bytes; staged server-side after hash verification

Response

OK

processingDecision
string
required

Outcome of processing the inbound message (e.g. ACCEPTED, QUARANTINED)

Example:

"ACCEPTED"

humanReason
string

Safe-to-return human-readable explanation of the decision

messageRecordId
string

UUID of the persisted message record when the message was accepted

Example:

"550e8400-e29b-41d4-a716-446655440002"

quarantineId
string

UUID of the quarantine record when the message was quarantined

Example:

"550e8400-e29b-41d4-a716-446655440003"