The challenge object
Attributes
id string
The unique identifier of the challenge.
status enum
Where the challenge is in its lifecycle.
created
The challenge was created and is waiting to be presented to the user.
presented
The user has opened the hosted challenge.
code_sent
A verification code was sent to the user.
in_progress
The user is inside a KYC flow, between accepting consent and a decision.
verified
The user entered a valid code.
completed
The challenge finished successfully.
failed
The challenge did not pass.
skipped
The challenge was skipped.
overridden
The challenge was resolved by an override rather than by the user.
type string (optional)
What the challenge is guarding against. One of repeat_trial, account_sharing, account_takeover, multi_accounting, fake_account, linked_accounts, or kyc.
challenge_mode string (optional)
How the challenge is run. Rupt-hosted challenges return rupt_managed.
delivery_status string (optional)
The delivery state of the verification code. One of pending, sent, delivered, failed, or bounced.
channels array (optional)
The channels the verification code was sent through, in the order they were used. Values are email and text.
reasons array (optional)
The signals that triggered the challenge, for example limit_exceeded, new_fingerprint, or new_ip.
actions array (optional)
The actions available on the challenge, for example verify, view, or skip.
user object (optional)
The user being challenged. See the user object.
evaluation string (optional)
The identifier of the evaluation that created the challenge.
origin_url string (optional)
The URL the user was on when the challenge was triggered.
email_verified boolean (optional)
Whether the user verified ownership of their email during the challenge.
phone_verified boolean (optional)
Whether the user verified ownership of their phone during the challenge.
verify_attempts number (optional)
How many times the user has tried to enter a verification code.
kyc object (optional)
Present on kyc challenges.
kyc.level string
selfie or document.
kyc.reasons array
Why the latest submission was rejected, for example liveness_failed, face_mismatch, document_no_face or document_expired. Empty once the challenge completes.
kyc.reference_matched boolean (optional)
Present only after a reference photo was supplied through enrich an evaluation, and true once the selfie matched it.
kyc.reference_field_matches object (optional)
How each field supplied through enrich an evaluation matched the ID. Present once they were compared, and only for fields the ID carries. Each is exact (the same once case, accents, punctuation and spacing are ignored), fuzzy (one or two characters off), partial (an initial, a short form or nickname, or an extra word, such as Jon and JONATHAN or GARCIA and GARCIA LOPEZ) or none.
kyc.document object (optional)
The fields Rupt read off the government ID. Present once a document level challenge completes or fails with reference_name_mismatch, and never on a selfie level one. Use it to check that the person who passed is the person the account claims to be: compare the name, date of birth or address with what the user entered when they signed up.
Values come back as read from the ID. Dates are ISO strings when they could be parsed, for example 1990-01-31T00:00:00. A field the document does not carry, or that could not be read clearly, is left out, so check for its presence before comparing.
Name: first_name, middle_name, last_name, suffix.
Birth: date_of_birth, place_of_birth.
Document: id_type, document_number, state_name (the issuing state), date_of_issue, expiration_date, class, endorsements, restrictions, veteran, and mrz_code on passports.
Address: address, city_in_address, state_in_address, zip_code_in_address, county.
The document is only returned by retrieve a challenge and on the challenge of the evaluation object. Webhook payloads leave it out, so fetch the challenge when a challenge.completed webhook arrives.
kyc.linked_users array (optional)
The other users in your project who passed KYC with the same ID, matched on its document number and issuing state. Each entry has rupt_id, and id when the user has one. The user this challenge belongs to is never in the list, so an empty array means nobody else has used this ID.
Present whenever document is, and left out of webhook payloads for the same reason. One person verifying several accounts is the multi-accounting signal KYC can give you: decide whether to allow it, send the account to review, or suspend the others.
createdAt date
When the challenge was created.
updatedAt date (optional)
When the challenge was last updated.
{
"id": "649873be6e8b6f9b33722a0c",
"status": "code_sent",
"type": "account_takeover",
"challenge_mode": "rupt_managed",
"delivery_status": "delivered",
"channels": ["email"],
"reasons": ["new_fingerprint", "new_ip"],
"actions": ["verify", "skip"],
"user": {
"rupt_id": "649873be6e8b6f9b33722a0c",
"id": "external_account_id",
"email": "user@example.com",
"phone": "+15551234567",
"suspended": false
},
"evaluation": "649873be6e8b6f9b33722a0c",
"origin_url": "https://app.example.com/login",
"email_verified": false,
"phone_verified": false,
"verify_attempts": 1,
"createdAt": "2021-09-01T00:00:00.000Z",
"updatedAt": "2021-09-01T00:00:00.000Z"
}
{
"id": "649873be6e8b6f9b33722a0d",
"status": "completed",
"type": "kyc",
"challenge_mode": "rupt_managed",
"user": {
"rupt_id": "649873be6e8b6f9b33722a0c",
"id": "external_account_id",
"email": "user@example.com",
"suspended": false
},
"evaluation": "649873be6e8b6f9b33722a0c",
"kyc": {
"level": "document",
"reasons": [],
"document": {
"first_name": "JANE",
"last_name": "DOE",
"date_of_birth": "1990-01-31T00:00:00",
"id_type": "DRIVER LICENSE FRONT",
"document_number": "D1234567",
"state_name": "CALIFORNIA",
"expiration_date": "2029-01-31T00:00:00",
"address": "123 MAIN ST",
"city_in_address": "SACRAMENTO",
"state_in_address": "CA",
"zip_code_in_address": "95814"
},
"linked_users": [
{ "rupt_id": "649873be6e8b6f9b33722a0e", "id": "second_account_id" }
]
},
"createdAt": "2021-09-01T00:00:00.000Z",
"updatedAt": "2021-09-01T00:00:00.000Z"
}