Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

Menu

Expand
Rate this page:

Thanks for rating this page!

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

Function Version

Function Versions are specific versions of JavaScript Node.js code that execute at a particular domain.

The steps to create Functions are as follows:

  1. Create a Function
  2. Create a Function Version (this resource) via serverless-upload.twilio.com

We will need the Function Version SID to include this Function in a Build.

FunctionVersion properties

Names in PHP format
sid
sid<ZN> Not PII

The unique SID identifier of this Function Version.

accountSid
sid<AC> Not PII

The unique SID identifier of the Account that owns this Function Version.

serviceSid
sid<ZS> Not PII

The unique SID identifier of the Service for this Function Version.

functionSid
sid<ZH> Not PII

The unique SID identifier of the Function that is the parent for this Function Version.

path

The URL-friendly string by which this Function Version can be referenced.

visibility
enum:visibility Not PII

The access control which determines how the Function Version can be accessed. One of public, protected, or private.

dateCreated
date_time<iso8601> Not PII

The date that this Function Version was created, given in ISO 8601 format.

url
url Not PII

The URL of this Function Version.

Fetch a FunctionVersion resource

get
https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions/{Sid}
Parameters
Names in None format
service_sid
Required
get sid_like<ZS> Not PII

The unique SID identifier of the Service for this Function Version.

function_sid
Required
get sid<ZH> Not PII

The unique SID identifier of the Function that is the parent for this Function Version.

sid
Required
get sid<ZN> Not PII

The unique SID identifier of this Function Version.

Example
        
        
        
        

        Read multiple FunctionVersion resources

        get
        https://serverless.twilio.com/v1/Services/{ServiceSid}/Functions/{FunctionSid}/Versions
        Parameters
        Names in None format
        service_sid
        Required
        get sid_like<ZS> Not PII

        The unique SID identifier of the Service for these Function Versions.

        function_sid
        Required
        get sid<ZH> Not PII

        The unique SID identifier of the Function that is the parent for this Function Version.

        Example
              
              
              
              
              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.