Workspace

Workspace object

{
"id": "68a0059a-1d1f-4ffb-875d-d5211ab1b674",
"ownerId": "c182bf19-3b2a-48a8-8f46-b4f25c93510f",
"name": "My Workspace",
"contactEmail": "[email protected]",
"profilePicture": "https://images.intenseye.com/nmgroiejrwger.jpg",
"settings": {},
"enterprise": true
}

Facility object

{
"id": "bf9a037b-dacd-485f-90f1-7962e6aabd3a",
"name": "Intenseye",
"address": "Maslak, intenseye, ARl 3 Binası, İTÜ Ayazağa Kampüsü, Sarıyer/İstanbul, Turkey",
"geographicCoordinates": {
"lat": 41.10792010000001,
"lng": 29.0324974
},
"workspaceId": "be74e929-50f3-4d0c-b56d-bac612e78553",
"timeZoneId": "Europe/Istanbul",
"cameraCount": 1
}

Endpoints


GET /workspaces

Get the workspace

Arguments

No arguments needed

Returns

Returns the workspace object for the account that was authenticated in the request.

{
"status": "ok",
"data": {
"id": "68a0059a-1d1f-4ffb-875d-d5211ab1b674",
"ownerId": "c182bf19-3b2a-48a8-8f46-b4f25c93510f",
"name": "My Workspace",
"contactEmail": "[email protected]",
"profilePicture": "https://images.intenseye.com/nmgroiejrwger.jpg",
"settings": {},
"enterprise": true
}
}

GET /workspaces/facilities

Get all the facilities in the workspace

Arguments

No arguments needed

Returns

Returns the facility objects for the account that was authenticated in the request.

{
"status": "ok",
"data": [
{
"id": "156bd472-07a6-4680-8e17-11816681e14a",
"name": "Intenseye",
"address": "Maslak, intenseye, ARl 3 Binası, İTÜ Ayazağa Kampüsü, Sarıyer/İstanbul, Turkey",
"geographicCoordinates": {
"lat": 41.10792010000001,
"lng": 29.0324974
},
"workspaceId": "f213e5dd-4b92-46f0-95df-0b9dfff4e588",
"timeZoneId": "Europe/Istanbul",
"cameraCount": 1
}
]
}

GET /workspaces/facilities/:facilityId

Get a single facility

Arguments

No arguments needed

PATH PARAMETERS
  • :facilityId UUID Id of the facility to retrieve

Returns

Returns a facility object containing the id of inserted item.

{
"status": "ok",
"data": {
"id": "156bd472-07a6-4680-8e17-11816681e14a",
"name": "Intenseye",
"address": "Maslak, intenseye, ARl 3 Binası, İTÜ Ayazağa Kampüsü, Sarıyer/İstanbul, Turkey",
"geographicCoordinates": {
"lat": 41.10792010000001,
"lng": 29.0324974
},
"workspaceId": "f213e5dd-4b92-46f0-95df-0b9dfff4e588",
"timeZoneId": "Europe/Istanbul"
}
}