The Telnyx Email API now makes it easier to test email workflows, retrieve messages, and understand what happens throughout the delivery lifecycle. New sandbox outcomes, message filtering, event names, and webhook coverage give developers more visibility without affecting production sends.
sandbox_mode to true, then use a reserved @test.telnyx.com recipient to simulate delivered, hard-bounce, soft-bounce, complaint, suppressed, invalid-recipient, DKIM-failure, or rate-limit outcomes. The soft-bounce scenario records a terminal bounced outcome with a synthetic 450 response; it does not emit email.deferred.The exact reserved recipients are:
[email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected]filter[tags] and filter[metadata].canonical_event_type field, distinguishing gateway rejection as email.gw_reject, injection timeout as email.injection_timeout, and queue expiration as email.expired without breaking existing integrations.Developers can test both successful and failure paths without generating real email traffic, making it easier to validate application behavior before going to production.
Tags and metadata also make message retrieval more useful, while expanded event coverage provides clearer signals about why an email was rejected, delayed, expired, or otherwise failed.
Additional webhook coverage means applications can react to more Email API lifecycle events as they happen.
Prerequisites
Set sandbox_mode to true in the send request and choose one of the reserved @test.telnyx.com recipients listed above. For webhook monitoring, subscribe to email.cancelled, email.daily_limit_exceeded, and/or the existing email.failed event as needed.
Use the reserved @test.telnyx.com recipients to trigger deterministic test outcomes. For production monitoring, configure Email API webhooks for the events your application needs to receive.
Learn more in the Email Webhooks and Events documentation and the Email sending documentation.