Retrieve a list of all Challenges for a Factor.
Retrieve a list of all Challenges for a Factor.
Path parameters
-
The unique SID identifier of the Service.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^VA[0-9a-fA-F]{32}$
. -
Customer unique identity for the Entity owner of the Challenge. This identifier should be immutable, not PII, length between 8 and 64 characters, and generated by your external system, such as your user's UUID, GUID, or SID. It can only contain dash (-) separated alphanumeric characters.
Query parameters
-
The unique SID identifier of the Factor.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^YF[0-9a-fA-F]{32}$
. -
The Status of the Challenges to fetch. One of
pending
,expired
,approved
ordenied
.Values are
pending
,expired
,approved
, ordenied
. -
The desired sort order of the Challenges list. One of
asc
ordesc
for ascending and descending respectively. Defaults toasc
.Values are
asc
ordesc
. -
How many resources to return in each list page. The default is 50, and the maximum is 1000.
Minimum value is
1
, maximum value is1000
. -
The page index. This value is simply for client state.
Minimum value is
0
. -
The page token. This is provided by the API.
curl \
--request GET 'https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges' \
--user "username:password"
{
"meta": {
"key": "challenges",
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
"previous_page_url": null
},
"challenges": []
}
{
"meta": {
"key": "challenges",
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
"page": 0,
"page_size": 50,
"next_page_url": null,
"first_page_url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
"previous_page_url": null
},
"challenges": [
{
"sid": "YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"notifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
},
"status": "pending",
"details": {
"date": "2020-07-01T12:13:14Z",
"fields": [
{
"label": "Action",
"value": "Sign up in portal"
}
],
"message": "Hi! Mr. John Doe, would you like to sign up?"
},
"identity": "ff483d1ff591898a9942916050d2ca3f",
"metadata": null,
"entity_sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"factor_sid": "YF03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"factor_type": "push",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"date_responded": "2015-07-30T20:00:00Z",
"hidden_details": {
"ip": "172.168.1.234"
},
"expiration_date": "2015-07-30T20:00:00Z",
"responded_reason": "none"
},
{
"sid": "YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"notifications": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
},
"status": "pending",
"details": {
"date": "2020-07-01T12:13:14Z",
"fields": [
{
"label": "Action",
"value": "Sign up in portal"
}
],
"message": "Hi! Mr. John Doe, would you like to sign up?"
},
"identity": "ff483d1ff591898a9942916050d2ca3f",
"metadata": null,
"entity_sid": "YEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"factor_sid": "YF02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"factor_type": "totp",
"service_sid": "VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"date_responded": "2015-07-30T20:00:00Z",
"hidden_details": {
"ip": "172.168.1.234"
},
"expiration_date": "2015-07-30T20:00:00Z",
"responded_reason": "none"
}
]
}