Navigation
Retrieve challenge devices
Retrieve the list of devices for an existing challenge. Supply the unique challenge ID from the Rupt SDK onChallenge callback.
Parameters
No parameters
Returns
Returns a list of device objects.
GET /v2/challenges/:id/devices
const { data } = await Rupt.getChallengeDevices(CHALLENGE_ID);
Response
[
{
"id": "635940382397b3ac0b81c0b7",
"user": "649873be6e8b6f9b33722a0c",
"status": "attached",
"metadata": {
"key": "value"
},
"info": {
"device": {
"vendor": "Apple",
"model": "iPhone 12",
"type": "mobile"
}
},
"attached_at": "2021-09-01T00:00:00.000Z",
"actively_connected": true,
"createdAt": "2021-09-01T00:00:00.000Z",
"updatedAt": "2021-09-01T00:00:00.000Z"
}
]