Rate this page:


You can see your dependencies in the dependencies tab in the Functions Editor and on Build status via API.


Default Dependencies

You should now always see Twilio and @twilio/runtime-handler in the dependencies pane if you are using the UI and build details using API.

The default version of the Twilio SDK dependency and Runtime handler are included on all Builds. These dependencies are visible on all existing Builds on API and Functions UI Editor. This does not apply to Functions(Classic).

These dependencies are responsible for interpreting and executing your code and providing stability and scalability as your business grows.

Screenshot 2021-01-28 at 6.54.18 AM.png

handler dependency terminal.png

You can determine the latest version of Twilio Node helper library here or simply add the latest dependencies on your twilio functions with a * or latest. Keeping twilio helper libraries up to date enables you to take advantage o the latest Twilio product functionality.

This Serverless handler is responsible for combining together the three components of the .zip file and deploy the code also providing additional Twilio specific functionality to user code:

  • Add logging around
    • start time
    • end times
    • error codes
    • Override exception handling
    • Hijack the console log object
  • Security around the auth token, redact the auth token so we don't print it out.
  • If there is an account sid and auth token we create the twilio client automatically
  • Give you the ability to return TwiML
  • Helps expose your functions and assets
    • Get private asset
    • Get to other functions
  • In the context object
    • Domain name
    • Path
    • Environment variables
  • In the event object
    • Parameters that you call their function with
  • Provides a consistent response. It is an object with
    • status code
    • body
    • headers
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