{"$id":"https://events-schemas.twilio.com/AccountSecurity.VerifyEventStreamEvent/3","$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"definitions":{"CheckAttempts":{"additionalProperties":false,"description":"CheckAttempts definition","properties":{"attempts":{"description":"An array of objects containing information about the each attempt.","items":{"$ref":"#/definitions/CheckAttemptsList"},"type":"array"},"count":{"description":"The number of times verification was checked.","type":"integer"}},"required":["count"],"type":"object"},"CheckAttemptsList":{"additionalProperties":false,"description":"CheckAttemptsList definition","properties":{"status":{"description":"The status of the Verification Check Attempt check. Possible values can be SUCCESS or FAILURE.","type":"string"},"time":{"description":"The date that the Verification Attempt was checked, given in ISO 8601 format.","type":"string"}},"required":["time","status"],"type":"object"},"SendCodeAttempts":{"additionalProperties":false,"description":"SendCodeAttempts definition","properties":{"attempts":{"description":"Array of objects that contain information about each attempt.","items":{"$ref":"#/definitions/SendCodeAttemptsList"},"type":"array"},"count":{"description":"The number of attempts sent as a part of a verification.","type":"integer"}},"required":["count"],"type":"object"},"SendCodeAttemptsList":{"additionalProperties":false,"description":"SendCodeAttemptsList definition","properties":{"attempt_sid":{"description":"The SID that uniquely identifies the delivery attempt resource.","type":"string"},"channel":{"description":"The communication channel used for the verification attempt, such as SMS, voice call, or WhatsApp.","type":"string"},"delivery_status":{"description":"The delivery status of the attempt. Possible values can be Accepted, Queued, Sent, Failed, Delivered & Undelivered.","type":"string"},"error_code":{"description":"The error code generated from a Verification send attempt.","type":"string"},"locale":{"description":"The locale that the system derives from the phone number’s country code for SMS, voice call, and WhatsApp verifications.","type":"string"},"tags":{"additionalProperties":{"type":"string"},"description":"Customer-defined key-value pairs used for message classification and filtering.","type":"object"},"time":{"description":"The date that the Attempt was created, given in ISO 8601 format.","type":"string"}},"required":["time","channel","attempt_sid","locale"],"type":"object"}},"description":"Verification Event data using EventStreams.","examples":[{"account_sid":"AC0000000000000000000000000000001","check_attempts":{"attempts":[{"status":"SUCCESS","time":"2025-01-01T00:00:00.000Z"}],"count":0},"code_length":6,"country":"US","created_at":"2025-01-01T00:00:00.000Z","custom_code_enabled":false,"custom_friendly_name":"My verification service","expired_at":"2025-01-01T00:10:00.000Z","friendly_name":"My verification service","send_code_attempts":{"attempts":[{"attempt_sid":"VL0000000000000000000000000000001","channel":"SMS","locale":"es","tags":{"custom_tag":"hello_world_of_tags","other_tag":"Here I am"},"time":"2025-01-01T00:00:00.000Z"}],"count":1},"service_sid":"VA0000000000000000000000000000001","to":"+11234567890","verification_sid":"VE0000000000000000000000000000001","verification_status":"APPROVED","verified_at":"2025-01-01T00:00:01.000Z"}],"properties":{"account_sid":{"description":"The SID of the Account that created the Verification resource.","type":"string"},"check_attempts":{"$ref":"#/definitions/CheckAttempts","description":"An object containing information about the check attempts."},"code_length":{"description":"The length of the generated verification code.","type":"integer"},"country":{"description":"The ISO 3166-1 alpha-2 country code.","type":"string"},"created_at":{"description":"The date when the resource was created, given in ISO 8601 format.","type":"string"},"custom_code_enabled":{"description":"Indicates whether the verification can use a customer-supplied code instead of a randomly generated code.","type":"boolean"},"custom_friendly_name":{"default":"","description":"An optional custom user defined string to describe the verification service.","type":"string"},"expired_at":{"description":"The date when the resource will expire, given in ISO 8601 format.","type":"string"},"friendly_name":{"description":"A custom user defined string that describes the verification service.","type":"string"},"send_code_attempts":{"$ref":"#/definitions/SendCodeAttempts","description":"An object containing information about the verification sent attempts."},"service_sid":{"description":"The SID of the Service used to generate the Verification resource.","type":"string"},"to":{"description":"Destination of a verification. It is phone number in E.164 format.","type":"string"},"verification_sid":{"description":"The SID created to uniquely identify the Verification resource.","type":"string"},"verification_status":{"description":"The status of the verification.","type":"string"},"verified_at":{"description":"The date when the resource was verified, given in ISO 8601 format.","type":"string"}},"required":["account_sid","service_sid","verification_sid","friendly_name","custom_code_enabled","created_at","to","verification_status","country","send_code_attempts","check_attempts"],"title":"VerifyEvents","type":"object","x-twilio-eventstreams-customer-traceparent":false}