メニュー

Expand
ページを評価:

Schema Resource

Schemas define how information is organized within an event’s data attribute. You can use the schema to explore the fields in an event type before subscribing to it. You can use also it in production to validate that the events you receive match their published schemas.

There are two ways to find the schema id of an Event-Type.

  1. You can fetch any event type resource through the Event Type API and find the schema_id in its properties.
  2. If you are already receiving events in your sink, the metadata of the event will contain the url of its schema in a field called dataschema. The schema id is part of the url. For example, if the url is https://events-schemas.twilio.com/VoiceInsights.CallSummary/1, the schema id is VoiceInsights.CallSummary.

Schema properties

Resource Properties in REST API format
id
文字列 Not PII

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

url
url Not PII

The URL of this resource.

links
uri_map Not PII

Contains a dictionary of URL links to nested resources of this schema.

latest_version_date_created
date_time<iso8601> Not PII

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

latest_version
integer Not PII

The latest version published of this schema.

Fetch a Schema resource

GET
https://events.twilio.com/v1/Schemas/{Id}
パラメーター
Parameters in REST API format
id
Path
GET 文字列 Not PII

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

例 1
        
        
        
        ページを評価:

        ヘルプが必要ですか?

        We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

              
              
              

              フィードバックくださりありがとうございます!

              We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

              Sending your feedback...
              🎉 Thank you for your feedback!
              Something went wrong. Please try again.

              Thanks for your feedback!

              Refer us and get $10 in 3 simple steps!

              ステップ1

              Get link

              Get a free personal referral link here

              ステップ2:

              Give $10

              Your user signs up and upgrade using link

              ステップ3

              Get $10

              1,250 free SMSes
              OR 1,000 free voice mins
              OR 12,000 chats
              OR more