- Auth
- Users
- Reports
- Room
- Device
- category
- Sensor
- Automation
Get all Rooms for spesfic user
Developing
GET
room/getAll
RoomGet
Request
Header Params
Authorization
string
optional
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'room/getAll' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY3OWU4M2Y0OGUxMThjNDA3OWIyNTFjMyIsImVtYWlsIjoiYWxpaXNtYWlsaDA4QGdtYWlsLmNvbSIsInJvbGUiOiJjdXN0b21lciIsImlhdCI6MTc0MTI0MjUwMiwiZXhwIjoxNzQzODM0NTAyfQ.ABNTRtJ6iJn1AJpPKcUrr1SOW2aYXRjRkn0Vv1YURoI'
Responses
🟢200Success
application/json
Body
object {0}
Example
{
"rooms": [
{
"_id": "67c95eceb3527a2216093373",
"userId": "679e83f48e118c4079b251c3",
"name": "Sleaping Room ",
"description": "Room in First Floor",
"createdAt": "2025-03-06T08:37:34.108Z",
"updateAt": "2025-03-06T08:37:34.108Z",
"updatedAt": "2025-03-06T08:37:34.108Z",
"__v": 0,
"roomDevices": [
"67c95ee7b3527a2216093377",
"67c95f1bfc2359b484d16708",
"67cd7bea42408ff2c5a255be",
"67cd7c1ff5d20d71ffc9f4f5"
]
},
{
"_id": "67d7ade73adb097a01018dd0",
"userId": "679e83f48e118c4079b251c3",
"name": "Living Room",
"description": "Spacious living room with a balcony",
"createdAt": "2025-03-17T05:06:47.797Z",
"updatedAt": "2025-03-17T05:06:47.797Z",
"roomDevices": []
},
{
"_id": "67d7ade73adb097a01018dd1",
"userId": "679e83f48e118c4079b251c3",
"name": "Master Bedroom",
"description": "Large bedroom with an attached bathroom",
"createdAt": "2025-03-17T05:06:47.797Z",
"updatedAt": "2025-03-17T05:06:47.797Z",
"roomDevices": []
},
{
"_id": "67d7ade73adb097a01018dd2",
"userId": "679e83f48e118c4079b251c3",
"name": "Guest Room",
"description": "Cozy guest room with a queen-size bed",
"createdAt": "2025-03-17T05:06:47.797Z",
"updatedAt": "2025-03-17T05:06:47.797Z",
"roomDevices": []
},
{
"_id": "67d7ade73adb097a01018dd3",
"userId": "679e83f48e118c4079b251c3",
"name": "Office",
"description": "Work office with a large desk and bookshelves",
"createdAt": "2025-03-17T05:06:47.797Z",
"updatedAt": "2025-03-17T05:06:47.797Z",
"roomDevices": []
}
]
}