SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How to Set Visibility of Functions

Objective

This article explains how to set the visibility of functions to public, protected, or private.

 

Product

Functions 

 

Environment

legacy Twilio Console

 

Procedure 

The visibility of a function or asset can be set via the Twilio Console or via the Serverless Toolkit.

Twilio Console

In the Functions Editor of the Twilio Console, the visibility of a function can be set by clicking on the icon that is to the right of the function name, and then selecting the desired level of visibility.

 

Serverless Toolkit

When developing an application using the Serverless Toolkit, a function or assets visibility can be specified by prepending either protected or private in front of the file extension. For example:

  • Protected: names.protected.json
  • Private: function.private.js

Note: A file without protected or private in front of the file extension indicates that the file is public. For example:

  • Public: rickroll.mp3

 

Additional Information 

More information regarding how to set the visibility of functions and assets can be found at the following links:

Have more questions? Submit a request
Powered by Zendesk