Retrieve a list of all Asset Versions

GET /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions

The content of an Asset.

Retrieve a list of all Asset Versions.

Path parameters

  • ServiceSid string Required

    The SID of the Service to read the Asset Version resource from.

  • AssetSid string Required

    The SID of the Asset resource that is the parent of the Asset Version resources to read.

Query parameters

  • PageSize integer

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

Responses

  • OK

    Hide response attributes Show response attributes object
    • asset_versions array[object]
      Hide asset_versions attributes Show asset_versions attributes array[object]
      • account_sid string | null

        The SID of the Account that created the Asset Version resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

      • asset_sid string | null

        The SID of the Asset resource that is the parent of the Asset Version

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZH[0-9a-fA-F]{32}$.

      • date_created string(date-time) | null

        The ISO 8601 date and time in GMT when the Asset Version resource was created

      • path string | null

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

      • service_sid string | null

        The SID of the Service that the Asset Version resource is associated with

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZS[0-9a-fA-F]{32}$.

      • sid string | null

        The unique string that identifies the Asset Version resource

        Minimum length is 34, maximum length is 34. Format should match the following pattern: ^ZN[0-9a-fA-F]{32}$.

      • url string(uri) | null

        The absolute URL of the Asset Version resource

      • visibility string | null

        The access control that determines how the Asset Version can be accessed

        Values are public, private, or protected.

    • meta object
      Hide meta attributes Show meta attributes object
GET /v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions
curl \
 -X GET https://serverless.twilio.com/v1/Services/{ServiceSid}/Assets/{AssetSid}/Versions \
 --user "username:password"
Response examples (200)
{
  "asset_versions": [
    {
      "account_sid": "string",
      "asset_sid": "string",
      "date_created": "2023-05-04T09:42:00+00:00",
      "path": "string",
      "service_sid": "string",
      "sid": "string",
      "url": "https://example.com",
      "visibility": "public"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}
Response examples (200)
{
  "asset_versions": [
    {
      "account_sid": "string",
      "asset_sid": "string",
      "date_created": "2024-05-04T09:42:00+00:00",
      "path": "string",
      "service_sid": "string",
      "sid": "string",
      "url": "https://example.com",
      "visibility": "public"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}