Skip to content

Communication · openapi

Twilio API Mock Server

Messaging API (2010)

Send fake SMS, MMS, and voice calls through a local Twilio replica. Carbon persists the message log and phone-number pool between requests, so your notification pipeline can be tested end-to-end without spending on real SMS.

Quickstart

npx carbon-api emulate --catalog twilio

Runs on http://localhost:8787 by default. No account, no signup.

Try it

Real HTTP against the local replica.

Create a Message

curl -X POST http://localhost:8787/Messages \
  -H 'content-type: application/json' \
  -d '{"name":"example"}'

List them back (state persists)

curl http://localhost:8787/Messages

What's covered

Carbon compiles the entire spec — these are just the resources most integrations reach for first.

  • Messages
  • Calls
  • IncomingPhoneNumbers

Under the hood

Everything Carbon gives you comes with this emulator — for free.

  • · Stateful CRUD — writes persist across requests.
  • · Snapshots — freeze and restore the whole world with one command.
  • · Chaos presets — inject latency, 5xx, and network errors on demand.
  • · Deterministic — the same requests produce the same responses in CI.