# 2FA codes. One API call.

> Send OTP codes via WhatsApp, SMS or email with the aut2fa API. Set allowed channels for your application and track each send's channel, sender and available statuses. Sign up and get 10 free live sends For new accounts. Your signup bonus is added automatically, in addition to free test keys.

Source: https://aut2fa.com/ · Updated on 2026-10-13

## From request to verified code in three steps

1. Send: POST a phone number or e-mail address. You get the send ID right away. aut2fa generates the code unless you pass your own.
2. aut2fa delivers: aut2fa chooses an allowed, active channel and an enabled sender. Your statement records available statuses with timestamps.
3. Verify: When your user types the code, POST it to /verify. The response says if it’s valid and how many attempts are left.

## WhatsApp, SMS and email through one API

- For phone numbers, aut2fa tries allowed, active channels from lowest to highest price. Email addresses use the email channel. Telegram is not yet available.
- Your statement shows the channel, sender and available statuses of each send.

## See what happened to every code

- **Automatic routing:** For each code, aut2fa picks the cheapest channel you allowed and the number that sends it. You don’t manage provider accounts.
- **Delivery receipts:** Track the statuses each channel reports. WhatsApp supports sent, delivered and read receipts; SMS and email acceptance does not confirm recipient delivery.
- **Rate limits against SMS pumping:** Every account has a ceiling on sends per minute. On top of it, turn on limits per application, per minute and per recipient per hour, to stop SMS pumping.
- **Free test keys:** `ak_test_` keys are free, and codes aut2fa generates in test mode are always `000000`, so your tests can run the real flow.
- **Idempotency keys:** Send an `Idempotency-Key` header and a retried request returns the original send instead of a second code.
- **Per-channel pricing, no monthly fee:** WhatsApp is charged when delivery is confirmed. SMS and email are charged when the provider accepts the send. Failures without a charge return the reserved balance.

## Available deliveries and prices

See the price per code for each channel in Brazilian reais and calculate the cost of different quantities.

| Channel | Price per verification code | Status |
| --- | --- | --- |
| WhatsApp | R$0.0259 | Available |
| SMS | R$0.0699 | Available |
| E-mail | R$0.0199 | Available |

### Suggested quantities — WhatsApp

| Deliveries | Total | Price per verification code |
| --- | --- | --- |
| 1,000 | R$25.90 | R$0.0259 |
| 10,000 | R$259.00 | R$0.0259 |
| 100,000 | R$2,590.00 | R$0.0259 |

### Suggested quantities — SMS

| Deliveries | Total | Price per verification code |
| --- | --- | --- |
| 1,000 | R$69.90 | R$0.0699 |
| 10,000 | R$699.00 | R$0.0699 |
| 100,000 | R$6,990.00 | R$0.0699 |

### Suggested quantities — E-mail

| Deliveries | Total | Price per verification code |
| --- | --- | --- |
| 1,000 | R$19.90 | R$0.0199 |
| 10,000 | R$199.00 | R$0.0199 |
| 100,000 | R$1,990.00 | R$0.0199 |

Prices in Brazilian reais (BRL). WhatsApp is charged on delivery; SMS and email on provider acceptance.

## Questions

### Which channel will my user get the code on?

Phone numbers receive codes via WhatsApp or SMS; email addresses use the email channel. aut2fa tries allowed, active channels from lowest to highest price. Telegram is not yet available. Your statement shows the channel and sender used.

### How do test keys work?

Keys that start with `ak_test_` are free, and codes aut2fa generates in test mode are always `000000`. Automated tests can run the whole flow without touching your balance.

### How much does a code cost?

See the current price of each channel on the pricing page. WhatsApp is charged on delivery or read; SMS and email on provider acceptance. Test mode does not use your balance.

### What if a code isn’t delivered?

If a send fails or expires without a charge, its reservation returns to your balance. Accepted SMS and email sends are already charged, even without delivery confirmation; WhatsApp is charged on delivery or read.

### How do I pay?

Add balance in the dashboard using Pix or card through Mercado Pago. Prices are in Brazilian reais and there is no subscription.

### How do you protect against SMS pumping?

Every account has a ceiling on sends per minute. You can also turn on limits per application: sends per minute and sends per recipient per hour. Requests over a limit get a 429 with a `Retry-After` header, before anything is sent.

### Is it safe to retry a request?

Yes. Use the same `Idempotency-Key` and request body to get the original send without a new code or duplicate charge.

### Can I send my own code?

Yes. Pass it in the `code` field, or leave the field out and aut2fa generates one. Set `locale` to `en` or `pt-BR` to choose the message language.

- [Start free](https://app.aut2fa.com/signup)
- [Read the docs](https://doc.aut2fa.com)
