# List classrooms
List all classrooms in your account.
GET api/v1/classrooms
Example request:
curl https://app.anyclassroom.com/api/v1/classrooms \
-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": [
{
"id": 1,
"name": "Einstein Classroom",
"devices_count": 2,
"created_at": "2020-08-01T15:27:00.000000Z",
"updated_at": "2020-08-01T15:27:00.000000Z"
}
...
],
"links": [
{
"url": null,
"label": "Previous",
"active": false
},
{
"url": "https://app.anyclassroom.com/api/v1/classrooms?per_page=1&page=1",
"label": 1,
"active": true
},
],
"meta": {
"total": 23,
"per_page": 1,
"current_page": 1,
"last_page": 23
}
}