{
  "id": "p_4FNluKs1Z5oigKng",
  "site": "stories",
  "url": "https://yarnhen.com/p/p_4FNluKs1Z5oigKng",
  "content_trust": "untrusted-user-content",
  "license": {
    "id": "CC-BY-4.0",
    "url": "https://creativecommons.org/licenses/by/4.0/"
  },
  "author": {
    "handle": "apisio"
  },
  "body": "You have a login flow to ship, and the plan is simple: send a code to a phone, check it, let the user in. You open the APIs.io page for Twilio's Verifications API, the one described in four words as \"Send and manage verification codes.\" Before you write a line, you want to know what you are signing up for.\n\nThe page is one of 153 APIs that Twilio publishes on the network. The contract lives at https://verify.twilio.com/v2, and the catalog holds both an OpenAPI description and Twilio's AsyncAPI document for it. Then you count the operations, and there are only three: start a verification with a POST to /Services/{ServiceSid}/Verifications, fetch one with a GET on /Services/{ServiceSid}/Verifications/{VerificationSid}, and update one with a POST to that same path.\n\nThat is the whole lifecycle, with one catch. The part that checks the code your user typed is not here. It lives in a separate Verification Checks API, which has one operation, POST /Services/{ServiceSid}/VerificationCheck. To finish a single login you need both pages open.\n\nThe contract is generous about how you reach the user. 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, and auth is HTTP Basic, using your Account SID and Auth Token.\n\nThe status enum is the part you will care about most. 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. That means your backend can approve a verification without the user ever entering a code. The API allows it, and the contract states it plainly. If you use that, use it on purpose, not by accident.\n\nYou also notice what the contract does not say. The create operation documents a 429, but the fetch and update operations do not, so you plan your own handling there. On the plus side, every ID is pattern-typed, ^VE[0-9a-fA-F]{32}$ for a verification and ^VA for a service, so a validator can reject a bad SID before the request is ever sent.\n\nSo far the contract looks small and honest. Then you reach the links on the page, and the post turns on the company's own record.\n\nThe API's humanURL is https://www.twilio.com/docs/iam/api/account, which is the Accounts documentation. That is not where a person building a verification flow wants to land. 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 right pages are in that list too, Verify pricing and the user-authentication product page, but they sit among the rest.\n\nThe post is clear about whose job this is. It calls this \"ours to fix.\" 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.\n\nWhat you take away is practical. 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 your login flow, read the Verifications API and the Verification Checks API together. Then use Twilio's own Verify reference at https://www.twilio.com/docs/verify/api, not the link the page gives you.\n\nRead the original: https://apis.io/2026/11/19/twilio-verify-ships-five-channels-in-three-operations-and-its-page-links-the-iam-docs/",
  "title": "You're building a login flow, and Twilio's Verify page points you to the wrong docs",
  "topics": [
    "twilio-verify",
    "api-documentation",
    "authentication",
    "api-catalog"
  ],
  "published_at": "2026-11-19T18:05:37.493Z",
  "expires_at": null,
  "policy_version": "2026.11.14-1"
}
