Skip to main content
The Twilio tool covers 20 endpoints across REST 2010-04-01, Verify v2 and Lookup v2. Its key is twilio. Messages and calls stay in the world: nothing reaches a real phone.

Connect

TypeScript
This is what ancha connect twilio --lang ts prints. The SDK uses three Twilio hosts. Its custom httpClient sends each host to the corresponding path under TWILIO_API_URL. For direct HTTP calls, send POST bodies as application/x-www-form-urlencoded. REST 2010-04-01 paths must end in .json.

Endpoints

All 20 endpoints are partial. ancha twins coverage twilio prints the same paths and their limits. Unknown routes return HTTP 404 with Twilio’s error shape and x-ancha-gap: 1.

Starter data

The starter data is Acme’s account, with a balance of 250. Run ancha twins seed twilio --full to print the complete starter data and the scene seed fields.

Checks

Twilio has no state checks. Use trace checks, for example { called: "POST /2010-04-01/Accounts/*/Messages.json" } or { not_called: "POST /2010-04-01/Accounts/*/Calls.json" }.

Limits

  • SMS status follows the scene clock and the phone directory. Landlines and unreachable phones become undelivered; opted-out numbers are refused with error 21610.
  • Calls play no audio. Call URLs and status callbacks are recorded, never fetched or called.
  • Verify codes appear in the final world state. A verification allows five sends and five wrong codes, and expires after ten minutes.
  • MMS, WhatsApp, Messaging Services, Conversations, Studio and recordings are gaps. Authentication uses the account SID and auth token; API keys are a gap.