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?

Asset Version

Asset Versions are specific instances of static files that you can host at a particular domain in an Environment.

The steps to create Assets are as follows:

  1. Create an Asset
  2. Create an Asset Version (this resource)

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

AssetVersion properties

Names in PHP format
sid
sid<ZN> Not PII

The unique SID identifier of this Asset Version.

accountSid
sid<AC> Not PII

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

serviceSid
sid<ZS> Not PII

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

assetSid
sid<ZH> Not PII

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

path

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

visibility
enum:visibility Not PII

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

dateCreated
date_time<iso8601> Not PII

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

url
url Not PII

The URL of this Asset Version.

Fetch an AssetVersion resource

get
https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{AssetSid}/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 Asset Version.

asset_sid
Required
get sid<ZH> Not PII

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

sid
Required
get sid<ZN> Not PII

The unique SID identifier of this Asset Version.

Example
        
        
        
        

        Read multiple AssetVersion resources

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

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

        asset_sid
        Required
        get sid<ZH> Not PII

        The unique SID identifier of the Asset that is the parent for these Asset Versions.

        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.