Fetch a specific schema with its nested versions.

GET /v1/Schemas/{Id}

Versioned Schema definitions for Event Types

Fetch a specific schema with its nested versions.

Path parameters

  • Id string Required

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

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.

    • url string(uri) | null

      The URL of this resource.

    • latest_version_date_created string(date-time) | null

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

    • latest_version integer

      The latest version published of this schema.

      Default value is 0.

GET /v1/Schemas/{Id}
curl \
 --request GET 'https://events.twilio.com/v1/Schemas/{Id}' \
 --user "username:password"
Response examples (200)
{
  "id": "Messaging.MessageStatus",
  "url": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus",
  "links": {
    "versions": "https://events.twilio.com/v1/Schemas/Messaging.MessageStatus/Versions"
  },
  "latest_version": 1,
  "latest_version_date_created": "2020-07-30T20:00:00Z"
}