Navigation

Retrieve a challenge

Retrieve an existing challenge by its ID. You get the challenge ID from the challenge reference on an evaluation whose verdict is challenge.

Parameters


No parameters

Returns


Returns a challenge object.
GET/v3/challenges/:id
const challenge = await rupt.getChallenge(CHALLENGE_ID);
Response
{
  "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"
  },
  "evaluation": "649873be6e8b6f9b33722a0c",
  "email_verified": false,
  "phone_verified": false,
  "verify_attempts": 1,
  "createdAt": "2021-09-01T00:00:00.000Z",
  "updatedAt": "2021-09-01T00:00:00.000Z"
}