Skip to main content
message.failed is emitted when Rewrite cannot complete the send with the provider.
Notes:
  • data.type can be SMS or OTP.
  • OTP failures also use this event, not sms.otp.
  • Sandbox magic numbers can force deterministic failures for testing.
  • Inspect data.error for provider-facing details.