What Routa guarantees
No silent loss
An accepted message (
202) is durably stored before the response. It never disappears without a trace: it reaches its destination or becomes failed.A status that never goes back
The status only moves forward. A message does not go from
read back to sent because of a late notice.Permanent failures are visible
Every terminal failure produces
message.failed, and temporary ones are retried automatically.Recoverable events
Events stay in the log for 90 days and can be queried and replayed.
What Routa does not guarantee
- Immediate delivery. Accepted is not delivered. Latency depends on the provider and on the channel queue.
- Global order. Messages and events can arrive out of order. Use
sequence,occurred_atand the monotonic status to reconcile. - Exactly once. Exactly-once delivery does not exist against a third-party HTTP API. The guarantee is at least once.
Sending: accepted, then asynchronous
- The API validates and stores the message and the
message.acceptedevent in the same transaction. Only then does it respond202. - A worker sends it to the provider, within the rate limits of the channel.
- Confirmations from the provider (
sent,delivered,read,failed) update the message and produce events.
If something fails along the way
Unknown outcome
The hardest case is a timeout against the provider: the message may or may not have been sent. Routa:- Sends a deterministic reference along with the message, so the provider can deduplicate.
- Before trying again, asks the provider whether it already recorded the message, when the provider offers that query.
- If the doubt remains, tries again: the guarantee is at least once. Duplicates are rare and acknowledged, never hidden.
Receiving
Inbound messages are persisted before they are processed, and Routa deduplicates provider redeliveries. If an inbound media file fails for good, the message still exists, with the mediaunavailable.
The rule for what Routa does not understand has two parts:
- Types Routa does not model (such as
interactiveandcontacts) becomecontent.type = "unsupported". The message is stored and producesmessage.received. - Reactions and system notices (such as a contact changing their number) are ignored on purpose. They create no message, produce no
message.receivedand do not count as usage. Routa does not yet tell you about a number change: a send to the old number can fail with no prior warning.
Events and webhooks
- Each event is delivered at least once to each subscribed endpoint, with the same
idon every attempt. - A delivery is retried for about 20 hours. After that it becomes
exhaustedand can be replayed. See Retries and replay. GET /v1/eventslets you reconcile. See Reconcile events.
How to design your integration
1
Send with idempotency
Use
Idempotency-Key on every send. See Idempotency.2
Do not treat 202 as delivery
Confirm delivery through
message.delivered.3
Process events idempotently
Deduplicate by
event.id and never move the status backwards.4
Run a check job
Run
GET /v1/events periodically as a safety net.Data retention
Retention periods published as part of the API contract.Message content retention
The period counts fromaccepted_at. Once it ends, Routa removes the content of the message. The rest of it stays: identifiers, addresses, status, timestamps and metadata.
- The plan sets the maximum. Each plan keeps content for a number of days. See the values in the table above and on the Routa website.
- The project can choose less. On the Project preferences page, in the dashboard, you choose 30, 60, 120 or 365 days. The choice never exceeds the plan maximum.
- The removal is permanent. Extending retention later does not bring back content that was already removed.
- The removal is not instant. It runs periodically, and a message that is still being sent only loses its content after sending ends.
metadatais not removed. It is yours and stays on the message.- A plan downgrade shortens the period. The new maximum applies from the next removal run, with no grace period. See Plans and allowance.
content: null and a filled-in content_redacted_at. See Content removed by retention.