Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Challenge Resource


The Challenge resource is currently used by Verify Push and Verify TOTP features. It represents a single verification attempt of an Entity using a Factor. When the factor_type is push, a Challenge is created to verify the signature of the message sent from the registered device with the public key stored in the Factor. When the factor_type is totp, a Challenge is created to verify that the TOTP code provided by the user matches the one generated by the seed stored in the Factor. Some Challenge properties apply to all factor_types and others do not. A single Entity links to multiple Factors and a single Factor links to multiple Challenges.


Challenges and Billing

challenges-and-billing page anchor

Verify Push

Consistent with overall Verify pricing(link takes you to an external page), Verify Push is billed at a rate of $0.05 per verification. In technical terms, a Verify Push "verification" is defined as a Challenge of factor_type:push that is updated with a status of approved or denied.

Verify TOTP

Consistent with overall Verify pricing(link takes you to an external page), Verify TOTP will be billed at a rate of $0.05 per verification. In technical terms, a Verify TOTP "verification" is defined as a Challenge of factor_type:totp that is updated with a status of approved.


sidSID<YC>
Not PII

A 34 character string that uniquely identifies this Challenge.

Pattern: ^YC[0-9a-fA-F]{32}$Min length: 34Max length: 34

account_sidSID<AC>

The unique SID identifier of the Account.

Pattern: ^AC[0-9a-fA-F]{32}$Min length: 34Max length: 34

service_sidSID<VA>

The unique SID identifier of the Service.

Pattern: ^VA[0-9a-fA-F]{32}$Min length: 34Max length: 34

entity_sidSID<YE>

The unique SID identifier of the Entity.

Pattern: ^YE[0-9a-fA-F]{32}$Min length: 34Max length: 34

identitystring
PII MTL: 30 days

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.


factor_sidSID<YF>

The unique SID identifier of the Factor.

Pattern: ^YF[0-9a-fA-F]{32}$Min length: 34Max length: 34

date_createdstring<date-time>

The date that this Challenge was created, given in ISO 8601(link takes you to an external page) format.


date_updatedstring<date-time>

The date that this Challenge was updated, given in ISO 8601(link takes you to an external page) format.


date_respondedstring<date-time>

The date that this Challenge was responded, given in ISO 8601(link takes you to an external page) format.


expiration_datestring<date-time>

The date-time when this Challenge expires, given in ISO 8601(link takes you to an external page) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation.


statusenum<string>

The Status of this Challenge. One of pending, expired, approved or denied.

Possible values:
pendingexpiredapproveddenied

responded_reasonenum<string>

Reason for the Challenge to be in certain status. One of none, not_needed or not_requested.

Possible values:
nonenot_needednot_requested

detailsobject

Details provided to give context about the Challenge. Intended to be shown to the end user.


hidden_detailsobject

Details provided to give context about the Challenge. Intended to be hidden from the end user. It must be a stringified JSON with only strings values eg. {"ip": "172.168.1.234"}


metadataobject

Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. {"os": "Android"}. Can be up to 1024 characters in length.


factor_typeenum<string>

The Factor Type of this Challenge. Currently push and totp are supported.

Possible values:
pushtotp

urlstring<uri>

The URL of this resource.


linksobject<uri-map>

Contains a dictionary of URL links to nested resources of this Challenge.


Create a Challenge resource

create-a-challenge-resource page anchor
POST https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges

Path parameters

path-parameters page anchor
ServiceSidSID<VA>required

The unique SID identifier of the Service.

Pattern: ^VA[0-9a-fA-F]{32}$Min length: 34Max length: 34

Identitystringrequired

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.

FactorSidSID<YF>required

The unique SID identifier of the Factor.

Pattern: ^YF[0-9a-fA-F]{32}$Min length: 34Max length: 34

ExpirationDatestring<date-time>

The date-time when this Challenge expires, given in ISO 8601(link takes you to an external page) format. The default value is five (5) minutes after Challenge creation. The max value is sixty (60) minutes after creation.


Details.Messagestring

Shown to the user when the push notification arrives. Required when factor_type is push. Can be up to 256 characters in length


Details.Fieldsarray

A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field, the label can be up to 36 characters in length and the value can be up to 128 characters in length. Used when factor_type is push. There can be up to 20 details fields.


HiddenDetailsobject

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. {"ip": "172.168.1.234"}. Can be up to 1024 characters in length


AuthPayloadstring

Optional payload used to verify the Challenge upon creation. Only used with a Factor of type totp to carry the TOTP code that needs to be verified. For TOTP this value must be between 3 and 8 characters long.

Create Push Challenge

create-push-challenge page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_19
// Download the helper library from https://www.twilio.com/docs/node/install
_19
// Find your Account SID and Auth Token at twilio.com/console
_19
// and set the environment variables. See http://twil.io/secure
_19
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_19
const authToken = process.env.TWILIO_AUTH_TOKEN;
_19
const client = require('twilio')(accountSid, authToken);
_19
_19
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_19
.entities('ff483d1ff591898a9942916050d2ca3f')
_19
.challenges
_19
.create({
_19
'details.message': 'Hi! Mr. John Doe, would you like to sign up?',
_19
'details.fields': [{'label': 'Action', 'value': 'Sign up in portal'}, {'label': 'Location', 'value': 'California'}],
_19
hiddenDetails: {
_19
ip: '127.0.0.1'
_19
},
_19
factorSid: 'YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
_19
})
_19
.then(challenge => console.log(challenge.sid));

Output

_33
{
_33
"sid": "YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_33
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"identity": "ff483d1ff591898a9942916050d2ca3f",
_33
"factor_sid": "YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"date_created": "2015-07-30T20:00:00Z",
_33
"date_updated": "2015-07-30T20:00:00Z",
_33
"date_responded": "2015-07-30T20:00:00Z",
_33
"expiration_date": "2015-07-30T20:00:00Z",
_33
"status": "pending",
_33
"responded_reason": "none",
_33
"details": {
_33
"message": "Hi! Mr. John Doe, would you like to sign up?",
_33
"date": "2020-07-01T12:13:14Z",
_33
"fields": [
_33
{
_33
"label": "Action",
_33
"value": "Sign up in portal"
_33
}
_33
]
_33
},
_33
"hidden_details": {
_33
"ip": "127.0.0.1"
_33
},
_33
"metadata": null,
_33
"factor_type": "push",
_33
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_33
"links": {
_33
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
_33
}
_33
}

Create TOTP Challenge With AuthPayload

create-totp-challenge-with-authpayload page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_20
// Download the helper library from https://www.twilio.com/docs/node/install
_20
// Find your Account SID and Auth Token at twilio.com/console
_20
// and set the environment variables. See http://twil.io/secure
_20
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_20
const authToken = process.env.TWILIO_AUTH_TOKEN;
_20
const client = require('twilio')(accountSid, authToken);
_20
_20
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_20
.entities('ff483d1ff591898a9942916050d2ca3f')
_20
.challenges
_20
.create({
_20
'details.message': 'Hi! Mr. John Doe, would you like to sign up?',
_20
'details.fields': [{'label': 'Action', 'value': 'Sign up in portal'}, {'label': 'Location', 'value': 'California'}],
_20
hiddenDetails: {
_20
ip: '127.0.0.1'
_20
},
_20
authPayload: '12345678',
_20
factorSid: 'YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
_20
})
_20
.then(challenge => console.log(challenge.sid));

Output

_33
{
_33
"sid": "YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_33
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"identity": "ff483d1ff591898a9942916050d2ca3f",
_33
"factor_sid": "YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_33
"date_created": "2015-07-30T20:00:00Z",
_33
"date_updated": "2015-07-30T20:00:00Z",
_33
"date_responded": "2015-07-30T20:00:00Z",
_33
"expiration_date": "2015-07-30T20:00:00Z",
_33
"status": "approved",
_33
"responded_reason": "none",
_33
"details": {
_33
"message": "Hi! Mr. John Doe, would you like to sign up?",
_33
"date": "2020-07-01T12:13:14Z",
_33
"fields": [
_33
{
_33
"label": "Action",
_33
"value": "Sign up in portal"
_33
}
_33
]
_33
},
_33
"hidden_details": {
_33
"ip": "127.0.0.1"
_33
},
_33
"metadata": null,
_33
"factor_type": "totp",
_33
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_33
"links": {
_33
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
_33
}
_33
}


Fetch a Challenge resource

fetch-a-challenge-resource page anchor
GET https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}

ServiceSidSID<VA>required

The unique SID identifier of the Service.

Pattern: ^VA[0-9a-fA-F]{32}$Min length: 34Max length: 34

Identitystringrequired

Customer unique identity for the Entity owner of the Challenges. 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.


SidSID<YC>required

A 34 character string that uniquely identifies this Challenge.

Pattern: ^YC[0-9a-fA-F]{32}$Min length: 34Max length: 34
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.entities('identity')
_12
.challenges('YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.fetch()
_12
.then(challenge => console.log(challenge.sid));

Output

_35
{
_35
"sid": "YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"identity": "ff483d1ff591898a9942916050d2ca3f",
_35
"factor_sid": "YFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"date_created": "2015-07-30T20:00:00Z",
_35
"date_updated": "2015-07-30T20:00:00Z",
_35
"date_responded": "2015-07-30T20:00:00Z",
_35
"expiration_date": "2015-07-30T20:00:00Z",
_35
"status": "approved",
_35
"responded_reason": "none",
_35
"details": {
_35
"message": "Hi! Mr. John Doe, would you like to sign up?",
_35
"date": "2020-07-01T12:13:14Z",
_35
"fields": [
_35
{
_35
"label": "Action",
_35
"value": "Sign up in portal"
_35
}
_35
]
_35
},
_35
"hidden_details": {
_35
"ip": "172.168.1.234"
_35
},
_35
"metadata": {
_35
"os": "Android"
_35
},
_35
"factor_type": "push",
_35
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"links": {
_35
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Notifications"
_35
}
_35
}


Read multiple Challenge resources

read-multiple-challenge-resources page anchor
GET https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges

ServiceSidSID<VA>required

The unique SID identifier of the Service.

Pattern: ^VA[0-9a-fA-F]{32}$Min length: 34Max length: 34

Identitystringrequired

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.

FactorSidSID<YF>

The unique SID identifier of the Factor.

Pattern: ^YF[0-9a-fA-F]{32}$Min length: 34Max length: 34

Statusenum<string>

The Status of the Challenges to fetch. One of pending, expired, approved or denied.

Possible values:
pendingexpiredapproveddenied

Orderenum<string>

The desired sort order of the Challenges list. One of asc or desc for ascending and descending respectively. Defaults to asc.

Possible values:
ascdesc

PageSizeinteger

How many resources to return in each list page. The default is 50, and the maximum is 1000.

Minimum: 1Maximum: 1000

Pageinteger

The page index. This value is simply for client state.

Minimum: 0

PageTokenstring

The page token. This is provided by the API.

List multiple Challenges

list-multiple-challenges page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.entities('identity')
_12
.challenges
_12
.list({limit: 20})
_12
.then(challenges => challenges.forEach(c => console.log(c.sid)));

Output

_79
{
_79
"challenges": [
_79
{
_79
"sid": "YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"identity": "ff483d1ff591898a9942916050d2ca3f",
_79
"factor_sid": "YF03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"date_created": "2015-07-30T20:00:00Z",
_79
"date_updated": "2015-07-30T20:00:00Z",
_79
"date_responded": "2015-07-30T20:00:00Z",
_79
"expiration_date": "2015-07-30T20:00:00Z",
_79
"status": "pending",
_79
"responded_reason": "none",
_79
"details": {
_79
"message": "Hi! Mr. John Doe, would you like to sign up?",
_79
"date": "2020-07-01T12:13:14Z",
_79
"fields": [
_79
{
_79
"label": "Action",
_79
"value": "Sign up in portal"
_79
}
_79
]
_79
},
_79
"hidden_details": {
_79
"ip": "172.168.1.234"
_79
},
_79
"metadata": null,
_79
"factor_type": "push",
_79
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"links": {
_79
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
_79
}
_79
},
_79
{
_79
"sid": "YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_79
"identity": "ff483d1ff591898a9942916050d2ca3f",
_79
"factor_sid": "YF02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"date_created": "2015-07-30T20:00:00Z",
_79
"date_updated": "2015-07-30T20:00:00Z",
_79
"date_responded": "2015-07-30T20:00:00Z",
_79
"expiration_date": "2015-07-30T20:00:00Z",
_79
"status": "pending",
_79
"responded_reason": "none",
_79
"details": {
_79
"message": "Hi! Mr. John Doe, would you like to sign up?",
_79
"date": "2020-07-01T12:13:14Z",
_79
"fields": [
_79
{
_79
"label": "Action",
_79
"value": "Sign up in portal"
_79
}
_79
]
_79
},
_79
"hidden_details": {
_79
"ip": "172.168.1.234"
_79
},
_79
"metadata": null,
_79
"factor_type": "totp",
_79
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_79
"links": {
_79
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC02aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
_79
}
_79
}
_79
],
_79
"meta": {
_79
"page": 0,
_79
"page_size": 50,
_79
"first_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
_79
"previous_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
_79
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=0",
_79
"next_page_url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges?PageSize=50&Page=1",
_79
"key": "challenges"
_79
}
_79
}


Update a Challenge resource

update-a-challenge-resource page anchor
POST https://verify.twilio.com/v2/Services/{ServiceSid}/Entities/{Identity}/Challenges/{Sid}

ServiceSidSID<VA>required

The unique SID identifier of the Service.

Pattern: ^VA[0-9a-fA-F]{32}$Min length: 34Max length: 34

Identitystringrequired

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.


SidSID<YC>required

A 34 character string that uniquely identifies this Challenge.

Pattern: ^YC[0-9a-fA-F]{32}$Min length: 34Max length: 34
AuthPayloadstring

The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. For TOTP this value must be between 3 and 8 characters long. For Push this value can be up to 5456 characters in length


Metadataobject

Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. {"os": "Android"}. Can be up to 1024 characters in length.

Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.entities('identity')
_12
.challenges('YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.update({authPayload: 'auth_payload'})
_12
.then(challenge => console.log(challenge.sid));

Output

_35
{
_35
"sid": "YCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"service_sid": "VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"entity_sid": "YEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_35
"identity": "ff483d1ff591898a9942916050d2ca3f",
_35
"factor_sid": "YF03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_35
"date_created": "2015-07-30T20:00:00Z",
_35
"date_updated": "2015-07-30T20:00:00Z",
_35
"date_responded": "2015-07-30T20:00:00Z",
_35
"expiration_date": "2015-07-30T20:00:00Z",
_35
"status": "approved",
_35
"responded_reason": "none",
_35
"details": {
_35
"message": "Hi! Mr. John Doe, would you like to sign up?",
_35
"date": "2020-07-01T12:13:14Z",
_35
"fields": [
_35
{
_35
"label": "Action",
_35
"value": "Sign up in portal"
_35
}
_35
]
_35
},
_35
"hidden_details": {
_35
"ip": "172.168.1.234"
_35
},
_35
"metadata": {
_35
"os": "Android"
_35
},
_35
"factor_type": "push",
_35
"url": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
_35
"links": {
_35
"notifications": "https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/ff483d1ff591898a9942916050d2ca3f/Challenges/YC03aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications"
_35
}
_35
}


Rate this page: