CompletableFuture clients for Torpedo’s email and SMS API.
Install
Create a client
Send email
Send a batch
Send SMS
.from(...). It must match exactly,
including capitalization:
from to use your default sender ID. See Sender ID for the
full rules.
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(ListVerificationsOptions). See Verify phone numbers on WhatsApp.
Async calls
Pagination
Errors and retries
429, and 5xx responses three times by default. Every send has one idempotency key that is reused across retry attempts. Configure .timeout(Duration) and .maxRetries(int) on the client builder.