Skip to content
Answer Stack
Open menu

How does CPaaS work?

✓ Verified Last reviewed by AnswerStack Next review due Oct 17, 2026

Every claim is sourced below

CPaaS works by putting communication channels, such as calling and texting, behind an API. For voice and SMS, the provider holds the phone numbers and the carrier connections. To send a text or place a call, your application makes an HTTPS request to the provider, and the provider hands it to the carrier network. Incoming traffic runs the other way. When someone calls or texts your number, providers commonly notify your application with a request to a URL you host, and your code says what to do next. The main charges are per message or per minute, and you write and run everything on your side of that exchange.

What the provider runs and what you write

CPaaS stands for communications platform as a service. Twilio's CPaaS guide describes it as embedding communication channels in your own application through APIs, SDKs and documentation, in place of a separate communications app. Twilio exposes calls, messages and phone numbers as resources your code creates and manages with HTTPS requests. A request to its phone number resource provisions a new number. Its client SDKs add voice, video and chat inside your app.

So the provider runs the numbers, the carrier connections and the infrastructure behind each channel. Your side is ordinary web development. You need code that makes requests, and a web address where the provider can reach you.

How your application sends a message

An outbound message starts as an authenticated HTTPS request from your server. Twilio's API documentation uses HTTP Basic authentication, with an API key as the username and the key's secret as the password. The request names the destination number and the content. You can write that request by hand or use the provider's SDK for your programming language, which wraps the same call.

Twilio recommends API keys for applications because a key can be revoked. If each application has its own key and one leaks, you turn that key off without disturbing the others.

Apps that run in a browser or on a phone need a different arrangement, since an account key stored on a customer's device can be copied. Twilio's client SDKs authenticate with a short-lived access token that your server issues.

How an incoming call reaches your code

Inbound traffic is where CPaaS differs most from an ordinary API. The provider has no way to know what your business wants to do with a call, so it asks.

Twilio's voice documentation lays out its version of the sequence. Each phone number has a URL configured on it. When a call arrives, Twilio sends a request to that URL and carries out the instructions it gets back. Those instructions are written in TwiML, an XML format with verbs such as Say, Play, Dial and Record.

In Twilio's format, a reply can be this short:

<Response>
  <Say>Thanks for calling. Connecting you now.</Say>
  <Dial>+13015550123</Dial>
</Response>

Twilio reads the greeting aloud and then connects the caller to that number. Your server made that choice as the call came in, so it could have looked up the caller first and sent a regular customer somewhere else. The callback design exists so each call can run through logic you wrote.

That URL sits on the public internet, so anyone who finds it could send it fake call events. Twilio signs each request with an X-Twilio-Signature header. Your code should check that signature before it responds, and Twilio recommends using the validation method in its SDK over writing your own.

How the provider connects to the phone network

In this Twilio setup, the provider supplies the numbers and carrier connections, so your application can provision a number through an API call.

US text messaging has one more step before traffic flows. Twilio's 10DLC documentation says anyone sending SMS or MMS from an application to US recipients over a standard 10-digit number must register. Registration has two parts. The brand tells carriers who is sending. The campaign describes what the messages are for and how recipients opt in, opt out and get help.

Carriers treat all traffic from a messaging provider as application traffic, so the rule covers even a hobby project. Twilio says registered traffic gets less filtering and higher throughput.

How CPaaS usage is billed

The main charges count traffic. Twilio's US price list charges $0.0083 per SMS segment, sent or received. A segment holds up to 160 standard characters, and fewer when a message is split into parts or uses emoji or other non-standard characters. An outbound MMS costs $0.022.

Carriers add their own per-message fees, which appear on the bill separately. Twilio's examples are $0.0035 for an outbound SMS to AT&T and $0.0045 to T-Mobile. Twilio also rents each phone number by the month, and 10DLC registration carries its own fees.

Suppose a clinic sends 4,000 appointment reminders a month and each one is a single billable segment. The base charge is 4,000 × $0.0083, or $33.20. If every recipient were on AT&T or T-Mobile, carrier fees would add between $14 and $18. That brings message and carrier charges to between $47.20 and $51.20 a month, before number rental and registration fees.

Building texting with CPaaS versus buying it finished

In that example the message bill is about $50 a month. The build asks for more: code that sends each reminder, an endpoint that receives replies, a signature check, carrier registration, and a developer to keep it all running. That balance belongs to this example, and a sender with far higher volume would see a different one.

The alternative is to buy texting finished. Atlantech's atlantech|text puts SMS and MMS inside Microsoft Teams on the direct-dial number an employee already has. Atlantech runs the messaging through its own session border controllers, and employees text from the Teams desktop or mobile app. There's no API to call and no server to host. The price is set per number, starting at $10 per number per month.

A finished service is a texting workflow that's already built. For the clinic, it would give front-desk staff a way to text patients themselves, without a build. The automated reminders are a separate job. CPaaS is for a messaging workflow you need to design yourself, whoever or whatever triggers each message. If the clinic builds its reminders that way, it takes on the endpoint, the registration and the upkeep described above.

Sources

What is Communications platform as a service (CPaaS)?

TechTarget

Independent Verified Jul 17, 2026 Supports: Definition of CPaaS as a cloud delivery model using APIs; usage-based pricing with no seat licensing; the build-your-own distinction from UCaaS.

“Communications platform as a service is a cloud-based delivery model that lets organizations add real-time communications capabilities, such as voice, video and messaging, to business applications by deploying application programming interfaces.”

What is Azure Communication Services?

Microsoft Learn

Primary source Verified Jul 17, 2026 Supports: REST APIs plus client SDKs across voice, video, chat, SMS and email; phone numbers acquired through API, SDK or portal; user access tokens for clients; direct routing over SIP and session border controllers with your own carrier.

“Azure Communication Services include REST APIs and client library SDKs, so you don't need to be an expert in the underlying technologies to add communication into your apps.”

Making requests to the Twilio API

Twilio

Primary source Verified Jul 17, 2026 Supports: HTTP Basic authentication with API key and secret; the api.twilio.com/2010-04-01/Accounts base path; form-encoded request bodies; API keys recommended over account SID and auth token in production.

“To authenticate requests to the Twilio APIs, Twilio supports HTTP Basic authentication. Twilio APIs expect the API request content type to be application/x-www-form-urlencoded or multipart/form-data.”

TwiML for Programmable Voice

Twilio

Primary source Verified Jul 17, 2026 Supports: Inbound call triggers an HTTP request to the URL configured on the number; parameters such as CallSid, From, To and CallStatus; TwiML verbs Say, Play, Dial, Record and Gather executed in document order.

“TwiML (the Twilio Markup Language) is a set of instructions you can use to tell Twilio what to do when you receive an incoming call or SMS.”

Webhooks security

Twilio

Primary source Verified Jul 17, 2026 Supports: X-Twilio-Signature header computed with HMAC-SHA1 over request parameters and the configured URL using the auth token; requirement to validate before responding; guidance against certificate pinning.

“Your web application should verify that Twilio is the service that sent a webhook before responding to that request.”

Messages API Overview

Vonage

Primary source Verified Jul 17, 2026 Supports: A single messaging API spanning SMS, MMS, RCS, WhatsApp, Messenger, Viber and email, corroborating the multi-channel abstraction pattern.

“SMS, MMS, RCS, WhatsApp, Messenger, Viber, and Email.”

RFC 3261: SIP: Session Initiation Protocol

IETF / RFC Editor

Primary source Verified Jul 17, 2026 Supports: SIP as the signaling protocol used to create, modify and terminate voice sessions, with media carried separately from signaling.

“This document describes Session Initiation Protocol (SIP), an application-layer control (signaling) protocol for creating, modifying, and terminating sessions with one or more participants.”

RFC 8825: Overview: Real-Time Protocols for Browser-Based Applications

IETF / RFC Editor

Primary source Verified Jul 17, 2026 Supports: WebRTC requires SRTP in all implementations and uses ICE for NAT traversal; signaling protocol choice is outside the scope of the WebRTC suite, which is why vendor SDKs are not interoperable.

“The choice of protocols for client-server and inter-server signaling, and the definition of the translation between them, are outside the scope of the WebRTC protocol suite described in this document.”

SMPP: Short Message Peer to Peer Protocol

SMPP.org

Primary source Verified Jul 17, 2026 Supports: SMPP as the open industry standard for transferring short message data between an external application and a carrier message center, with transmitter, receiver and transceiver session types.

“The SMPP (Short Message Peer-to-Peer) protocol is an open, industry standard protocol designed to provide a flexible data communications interface for the transfer of short message data.”

The Campaign Registry

The Campaign Registry

Primary source Verified Jul 17, 2026 Supports: 10DLC as an A2P channel in which brands and campaign service providers are verified before being allowed to send, with campaigns registered through a portal or API.

“10DLC is an A2P messaging channel in which Brands and Campaign Service Providers (CSPs) are verified prior to being allowed to send messages.”

A2P 10DLC messaging compliance

Twilio Docs

Primary source Verified Jul 17, 2026 Supports: Brand registration identifies the sender and campaign registration describes opt-in, opt-out and help plus message purpose; standard brand throughput ranges from 2,000 segments per day to unlimited toward T-Mobile by trust score; unregistered senders incur additional carrier fees.

“A2P (Application-to-Person) 10DLC (10-digit long code) is the standard that United States telecom carriers have put in place to ensure that SMS traffic to US end-users through long code phone numbers is verified and consensual.”

47 CFR 64.6301: Caller ID authentication in internet Protocol networks

Cornell Law School, Legal Information Institute

Primary source Verified Jul 17, 2026 Supports: STIR/SHAKEN caller ID authentication is a duty placed on voice service providers in the IP portions of their networks, including authenticating originated SIP calls and verifying received SIP calls.

“Authenticate caller identification information for all SIP calls it originates and that it will exchange with another voice service provider or intermediate provider.”

Rules and Regulations Implementing the Telephone Consumer Protection Act of 1991, Report and Order and FNPRM (FCC 24-24)

Federal Communications Commission

Primary source Verified Jul 17, 2026 Supports: Revocation requests must be honored within a reasonable time not to exceed ten business days of receipt; the words stop, quit, end, revoke, opt out, cancel or unsubscribe in reply constitute revocation; a one-time confirmation text sent within five minutes is presumed within prior express consent.

“consent revocation requests within a reasonable time not to exceed 10 business days of receipt”

SMS and MMS pricing in the United States

Twilio

Primary source Verified Jul 17, 2026 Supports: US SMS outbound and inbound listed at $0.0083 per message, outbound MMS at $0.022, carrier fees shown as separate line items varying by carrier, and a $0.001 failed message processing fee.

“SMS Outbound: $0.0083. A failed message processing fee of $0.001 per message.”

CAMARA: APIs enabling access to telco network capabilities

CAMARA Project (Linux Foundation)

Primary source Verified Jul 17, 2026 Supports: CAMARA is an open source project within the Linux Foundation defining and testing network APIs, working with the GSMA Operator Platform Group to align requirements and publish API definitions across operators and countries.

“an open source project within Linux Foundation to define, develop and test the APIs”

Revision history

1 revision since publication
Originally published