Overview
Inbound is the flow for messages that come back into your project. When Rewrite receives a supported inbound message from a provider, it normalizes that message as a project message and can emit themessage.received webhook.
What is public in this flow
- The public event for inbound traffic is
message.received. - The payload uses the standard message-event envelope.
data.statusisRECEIVED.- Related events and logs keep the same signature and retry behavior as any other Rewrite webhook.
What changes in the payload
For inbound, the message represents received content rather than an outbound dispatch. Fields worth paying attention to:typeremainsSMS.statusbecomesRECEIVED.sandboxshows whether the message belongs to a sandbox project.contactandcontactIdmay be present when Rewrite can associate the sender with a saved contact.
Editorial boundary
Rewrite may rely on provider-specific callbacks and operational integrations to ingest inbound traffic, but those internal routes are not part of the public documentation set. For external integrations, treatmessage.received as the stable public contract.