{"$id":"https://events-schemas.twilio.com/AccountSecurity.VerifyEventStreamEvent/2","$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":"An array of objects containing information about the 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":"A string specifying the communication channel used for the verification attempt, i.e. SMS, CALL, WHATSAPP etc.","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 will automatically resolve based on phone number country code for SMS, Call and WhatsApp channel verifications.","type":"string"},"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","delivery_status":"UNDELIVERED","error_code":"30004","locale":"es","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":"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":"A boolean value to define whether verifications are allowed to be sent with a custom code instead of a randomly generated one.","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 to describe 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"}