Fetch a specific schema and version.

GET /v1/Schemas/{Id}/Versions/{SchemaVersion}

Version of the Schema

Fetch a specific schema and version.

Path parameters

  • Id string Required

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

  • SchemaVersion integer Required

    The version of the schema

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
    • 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
GET /v1/Schemas/{Id}/Versions/{SchemaVersion}
curl \
 --request GET 'https://events.twilio.com/v1/Schemas/{Id}/Versions/{SchemaVersion}' \
 --user "username:password"
Response examples (200)
{
  "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
}