Verification Check
The Verification Check Resource represents a verification validation. This will check whether the user-provided token is correct.
必要なもの:
VerificationCheck Response Properties
These fields are returned in the output JSON response. The type SID<VE>
is a unique ID starting with the letters VE.
Resource Properties in REST API format | |
---|---|
sid
|
The unique string that we created to identify the VerificationCheck resource. |
service_sid
|
The SID of the Service the resource is associated with. |
account_sid
|
The SID of the Account that created the VerificationCheck resource. |
to
|
The phone number or email being verified. Phone numbers must be in E.164 format. |
channel
|
The verification method to use. One of: |
status
|
The status of the verification. Can be: |
valid
|
Use "status" instead. Legacy property indicating whether the verification was successful. |
amount
|
The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. |
payee
|
The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. |
date_created
|
The ISO 8601 date and time in GMT when the Verification Check resource was created. |
date_updated
|
The ISO 8601 date and time in GMT when the Verification Check resource was last updated. |
Check a Verification
https://verify.twilio.com/v2/Services/{ServiceSid}/VerificationCheck
Twilio deletes the verification SID once it’s:
- expired (10 minutes)
- approved
- when the max attempts to check a code have been reached
If any of these occur, verification checks will return a 404 not found error like this:
Unable to create record: The requested resource /Services/VAXXXXXXXXXXXXX/VerificationCheck was not found
If you’d like to double check what happened with a given verification - please use the logs found in the Twilio Console under your Verification Service:
These are the available input parameters for checking a verification. The type SID<VE>
is a unique ID starting with the letters VE.
パラメーター
Parameters in REST API format | |
---|---|
service_sid
Path
|
The SID of the verification Service to create the resource under. |
code
必須
|
The 4-10 character string being verified. |
to
オプション
|
The phone number or email to verify. Either this parameter or the |
verification_sid
オプション
|
A SID that uniquely identifies the Verification Check. Either this parameter or the |
amount
オプション
|
The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. |
payee
オプション
|
The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. |
例 1
例 2
例 3
ヘルプが必要ですか?
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 Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.