mirror of
https://github.com/hanzoai/iam.git
synced 2026-11-19 18:37:16 +00:00
POST /v1/iam/verification-codes texted any number anyone typed, paced only per destination. A phone number is now texted only when an account the application signs in holds it, or when the bearer of a person adding it to their own account asks. Any other number is charged, answered ok and texted nothing, with the same status, headers and body; the carrier is not waited for, so the answer carries no round trip. Every texted code passes otp.Textable (an international mobile or VoIP number, never premium, toll free, shared cost, personal or landline, in a country IAM_TEXT_REGIONS names; default US and territories, CA, GB, EU 27, IS, LI, NO, CH, AU, NZ) and is charged to the budgets beside ResendInterval: 30 s and 10 a day per number, 30 an hour per client, 1,000 texts a day per application, 5,000 a day in all, 50,000 requests a day. Exhausted is 429 text_limited with Retry-After. The ledger is schema.Text, keyed digests only, and records the SMS consent flag. A texted code is no longer the whole sign-in of an account whose only second factor is SMS and which has a password or an email: two_step_required.