Install
Create a client
Send raw HTML email
Send a template email
Template support is specific to the TypeScript SDK. The SDK renders the template tohtml,
generates plain text, and sends the existing Torpedo email API request.
React Email support is optional. Install it only when you want to send React templates:
text if you want full control over the plain-text part:
Send a batch
Batch sends can mix raw HTML and templates:Send SMS
from. It must match exactly, including
capitalization:
from to use your default sender ID. See Sender ID for the
full rules.
The SDK automatically adds an idempotency key for each write request so SDK retries are safe. You
can also pass idempotencyKey to email and SMS send inputs.
Verify a phone number
Send a one-time code over WhatsApp, then check what the user types:torpedo.verify also has resend(id, { channel }), report(id), cancel(id), get(id) and
list({ status, channel, to }). See Verify phone numbers on WhatsApp.