For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SDKsHelp CenterLog inSign up
    • Overview
  • Getting Started
    • API Mechanics
    • Quickstart
  • Guides
    • Communications API
    • Troubleshooting
    • Events
    • Changelog
  • Comms API Reference
LogoLogo
SDKsHelp CenterLog inSign up

Communications API

Was this page helpful?

API Mechanics

Next
Built with
Private Beta

Twilio Communications API is currently available as a Private Beta product and the information contained in this document is subject to change. You acknowledge and agree that your use of Twilio Communications API is subject to the terms of the Services in Private Beta. This means that some features are not yet implemented and others may be changed before the product is declared as Generally Available. Private Beta products are not covered by the Twilio Support Terms or Twilio Service Level Agreement.

Request Access

Request access to the private beta through this form.

A comprehensive communications API for connecting people through software.

Send with precise control over every aspect of your message or share control with Twilio and up-level your comms with data-driven optimizations.

Messaging (SMS, MMS, RCS, WhatsApp) Email (Powered by Twilio SendGrid)Push Notifications (FCM & APN)
1
Buy a Twilio phone number or port your phone number to Twilio.
Twilio Servers
2
Send a message using the Twilio Communications API
1const accountSid = process.env.TWILIO_ACCOUNT_SID;
2const authToken = process.env.TWILIO_AUTH_TOKEN;
3const client = require('twilio')(accountSid, authToken);
4
5client.messages
6 .send({
7 to: [{
8 address: '+14153902337',
9 channel: 'PHONE'
10 }],
11 content: {
12 text: 'Ahoy, world!'
13 }
14 })
3
Twilio sends the “Ahoy, World!” text message to the recipient.

Ahoy, World!