Challenge Resource
Verify Push is in Public Beta.
A Challenge
represents a single verification attempt of an Entity using a Factor
. A single Factor has multiple Challenges
.
Verify Push is priced per approved/denied Challenge
料金表While usage of Verify Push is currently free in the Private Beta release stage, we will start billing for it once it hits Public Beta. Consistent with overall Verify pricing, Verify Push will be billed at a rate of $0.05 per verification. In technical terms, a "verification" is defined as a Challenge
that is updated with a status
of approved
or denied
.
Challenge properties
Resource Properties in REST API format | |
---|---|
sid
|
A 34 character string that uniquely identifies this Challenge. |
account_sid
|
The unique SID identifier of the Account. |
service_sid
|
The unique SID identifier of the Service. |
entity_sid
|
The unique SID identifier of the Entity. |
identity
|
Customer unique identity for the Entity owner of the Challenge |
factor_sid
|
The unique SID identifier of the Factor. |
date_created
|
The date that this Challenge was created, given in ISO 8601 format. |
date_updated
|
The date that this Challenge was updated, given in ISO 8601 format. |
date_responded
|
The date that this Challenge was responded, given in ISO 8601 format. |
expiration_date
|
The date-time when this Challenge expires, given in ISO 8601 format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. |
status
|
The Status of this Challenge. One of |
responded_reason
|
Reason for the Challenge to be in certain |
details
|
Details provided to give context about the Challenge. Intended to be shown to the end user. |
hidden_details
|
Details provided to give context about the Challenge. Not intended to be shown to the end user. It must be a stringified JSON with only strings values eg. |
factor_type
|
The Factor Type of this Challenge. Currently only |
url
|
The URL of this resource. |
Create a Challenge resource
https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges
パラメーター
Parameters in REST API format | |
---|---|
service_sid
Path
|
The unique SID identifier of the Service. |
identity
Path
|
The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. |
factor_sid
必須
|
The unique SID identifier of the Factor. |
expiration_date
オプション
|
The date-time when this Challenge expires, given in ISO 8601 format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation. |
details.message
オプション
|
Shown to the user when the push notification arrives. Required when |
details.fields
オプション
|
A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field. Used when |
hidden_details
オプション
|
Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. |
例 1
Fetch a Challenge resource
https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
service_sid
Path
|
The unique SID identifier of the Service. |
identity
Path
|
The unique external identifier for the Entity of the Service. This identifier should be immutable, not PII, and generated by your external system, such as your user's UUID, GUID, or SID. |
sid
Path
|
A 34 character string that uniquely identifies this Challenge. |
例 1
Read multiple Challenge resources
https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges
パラメーター
Parameters in REST API format | |
---|---|
service_sid
Path
|
The unique SID identifier of the Service. |
identity
Path
|
Customer unique identity for the Entity owner of the Challenge |
factor_sid
オプション
|
The unique SID identifier of the Factor. |
status
オプション
|
The Status of the Challenges to fetch. One of |
例 1
Update a Challenge resource
https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}
パラメーター
Parameters in REST API format | |
---|---|
service_sid
Path
|
The unique SID identifier of the Service. |
identity
Path
|
Customer unique identity for the Entity owner of the Challenge |
sid
Path
|
A 34 character string that uniquely identifies this Challenge. |
auth_payload
オプション
|
The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. |
例 1
ヘルプが必要ですか?
誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。