# List devices in classroom
List all devices in a given classroom.
GET api/v1/classrooms/{classroom}/devices
Example request:
curl https://app.anyclassroom.com/api/v1/classrooms/1/devices \
-H 'X-Token-AC: {token}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'
Example response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{
"anydesk_id": "123456789",
"anydesk_alias": null,
"anydesk_password": "MyPassword1",
"has_2fa": true,
"status": "enabled"
},
...
],
"links": [
{
"url": null,
"label": "Previous",
"active": false
},
{
"url": "https://app.anyclassroom.com/api/v1/classrooms/1/devices?page=1",
"label": 1,
"active": true
},
{
"url": null,
"label": "Next",
"active": false
}
],
"meta": {
"total": 2,
"per_page": 50,
"current_page": 1,
"last_page": 1
}
}