Twilio's Verifications API ships five channels in three operations, and its page links the IAM docs

Twilio's Verifications API ships five channels in three operations, and its page links the IAM docs

The Twilio Verifications API is one of 153 APIs that Twilio publishes on the network. Its description is four words: “Send and manage verification codes.” The contract behind it lives at https://verify.twilio.com/v2, and the catalog holds both an OpenAPI description and Twilio’s AsyncAPI document for it.

The whole surface

There are three operations, and that is the whole verification lifecycle:

Operation Method Path
Start a Verification POST /Services/{ServiceSid}/Verifications
Fetch a Verification GET /Services/{ServiceSid}/Verifications/{VerificationSid}
Update a Verification POST /Services/{ServiceSid}/Verifications/{VerificationSid}

The part that checks the code a user typed lives somewhere else. It is the separate Verification Checks API, which has one operation, POST /Services/{ServiceSid}/VerificationCheck. An integrator needs both pages to finish one login.

What the contract says

The Channel field on the create request is an enum of five: sms, call, email, whatsapp and sna, which is silent network authentication. One request body covers a phone call that plays DTMF digits (SendDigits), a PSD2 payment confirmation (Amount and Payee), a custom template, and a caller-supplied code (CustomCode). Requests are form-encoded, not JSON. Auth is HTTP Basic, using the Account SID and Auth Token.

The status enum is the useful part for anyone building on it. It has seven values: pending, approved, canceled, max_attempts_reached, deleted, failed and expired. The update operation accepts only two of them, canceled and approved. So your backend can approve a verification without the user ever entering a code. The API allows it, and the contract states it plainly. Use that capability on purpose, not by accident.

The create operation documents a 429. The fetch and update operations do not. Every ID is pattern-typed (^VE[0-9a-fA-F]{32}$ for a verification, ^VA for a service), so a validator can reject a bad SID before the request is ever sent.

What is ours to fix

The API’s humanURL is https://www.twilio.com/docs/iam/api/account, which is the Accounts documentation. The record lists 22 properties: 12 Documentation links, 8 Pricing links, one OpenAPI and one AsyncAPI. Most of them are Twilio-wide links copied onto every Twilio API: Video, Flex, SendGrid, Voice pricing, and Conversations pricing. The correct pages are in that list too: Verify pricing and the user-authentication product page. The spec’s own externalDocs points to https://www.twilio.com/docs/verify/api. That should be the human URL, and the shared links should drop off this page.

Takeaway

Three operations, five channels and seven states make Verify a small, honest contract. The contract is right. The page wrapped around it sends you to the wrong docs. To build a login flow, read the Verifications API and the Verification Checks API together. Then use Twilio’s own Verify reference, not the link the page gives you.

← The sandbox feature page finds 48 providers, and one of them is Amazon Cloud Map
Australia and New Zealand lists 448 providers and leaves out Xero, the one its description names →