Retrieve a paginated list of versions of the schema.

GET /v1/Schemas/{Id}/Versions

Version of the Schema

Retrieve a paginated list of versions of the schema.

Path parameters

  • Id string Required

    The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

Query parameters

  • PageSize integer(int64)

    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.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • schema_versions array[object]
      Hide schema_versions attributes Show schema_versions attributes object
      • id string | null

        The unique identifier of the schema. Each schema can have multiple versions, that share the same id.

      • schema_version integer

        The version of this schema.

        Default value is 0.

      • date_created string(date-time) | null

        The date the schema version was created, given in ISO 8601 format.

      • url string(uri) | null

        The URL of this resource.

      • raw string(uri) | null
    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v1/Schemas/{Id}/Versions
curl \
 --request GET 'https://events.twilio.com/v1/Schemas/{Id}/Versions' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "schema_versions",
    "url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=10&Page=0",
    "page": 0,
    "page_size": 10,
    "next_page_url": null,
    "first_page_url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=10&Page=0",
    "previous_page_url": null
  },
  "schema_versions": []
}
{
  "meta": {
    "key": "schema_versions",
    "url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions?PageSize=50&Page=0",
    "previous_page_url": null
  },
  "schema_versions": [
    {
      "id": "Messaging.MessageStatus",
      "raw": "https://events-schemas.twilio.com/Messaging.MessageStatus/1",
      "url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions/1",
      "public": true,
      "date_created": "2015-07-30T20:00:00Z",
      "schema_version": 1
    },
    {
      "id": "Messaging.MessageStatus",
      "raw": "https://events-schemas.twilio.com/Messaging.MessageStatus/2",
      "url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions/2",
      "public": true,
      "date_created": "2015-07-30T20:00:00Z",
      "schema_version": 2
    }
  ]
}