Menu

Expand
Rate this page:

Functions

BETA

This Twilio product is currently available as a beta release. Some features are not yet implemented and others may be changed before the product is declared as Generally Available. Beta products are not covered by a Twilio SLA. Learn more about beta product support.

Twilio Functions is a serverless environment which empowers developers to quickly and easily create production-grade, event-driven Twilio applications that scale with their businesses.

Key features of Functions:

  • Secure By Default - Automatically ensure that only Twilio requests can execute your function
  • Serverless - Offload your operational burden to Twilio and skip maintaining any infrastructure
  • Autoscaling - Automatically add capacity to meet the unique demands of your application
  • Native Twilio Integration - Use Functions as a first class member of the Twilio console with a preinitialized Twilio REST Helper Library built in
  • Familiar - Work in an environment powered by Node 10

How it Works

Functions overview diagram

Twilio Functions replaces your need to find hosting or stand up a server to serve TwiML or any other HTTP based responses. With Functions, you no longer have to worry about maintaining or scaling web infrastructure - it's all managed seamlessly by Twilio, scaling with your use case.

Typical use cases include manipulating voice calls, serving up tokens for our mobile SDKs or invoking the Twilio REST API in response to an event such as an inbound SMS.

Getting Started with Serverless and Twilio Functions

Twilio Functions and Assets Editor brings together Functions, Assets, Dependencies, Environment Variables and Debugging in the same window. You can create and edit static files to use as assets. You can access all your functions to edit them in multiple tabs simultaneously.

Functions Editor Main Page

We have put together code examples that you can use to get your application development started with Twilio Functions and Assets. These are simple code snippets for your functions that you can learn from and use to expand into your business use case.

You can use Twilio Functions with Programmable SMS and Voice to send and receive text messages and phone calls without managing your own infrastructure. All you need is a Twilio account and a few lines of Node.js code.

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

        
        
        

        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more