Navigation

Retrieve a challenge

Retrieve the details of an existing challenge. Supply the unique challenge ID from the Rupt SDK onChallenge callback.

Parameters


No parameters

Returns


Returns a challenge object.
GET /v2/challenges/:id
await Rupt.getChallenge(CHALLENGE_ID);
Response
{
  "id": "649873be6e8b6f9b33722a0c",
  "user": {
    "rupt_id": "649873be6e8b6f9b33722a0c",
    "id": "external_account_id",
    "email": "ab*****@rupt.dev",
    "phone": "******34"
  },
  "status": "created",
  "reasons": ["limit_exceeded", "concurrency"],
  "channels": ["text", "email"],
  "evaluation": "649873be6e8b6f9b33722a0c",
  "createdAt": "2021-09-01T00:00:00.000Z"
}