Download OpenAPI specification:Download
REST API for Platform As a Service
Some useful links:
client_id required | string |
client_secret required | string |
redirect_uri required | string |
grant_type required | string Enum: "authorization_code" "refresh_token" |
code required | string JWT token, obtained from /oauth2/authorize flow |
{- "token_type": "Bearer",
- "expires_in": 3599,
- "access_token": "eyJhbGcxxxxxxxxxxx",
- "scope": "user"
}
Base unit of device and services grouping in appartme service is space. Whithin single account there might be unlimited number of spaces. Space corresponds to a rental unit - appartment or any other facility. Space can be shared with users using email address.
[- {
- "spaceId": "b00531c7-8513-4bc4-b446-acd15a1e4f2b",
- "spaceName": "Appartment 53",
- "metadata": {
- "location": "b3/13"
}
}
]
spaceId | string Optional space selector |
deviceType | string (DeviceType) Enum: "mm" "APRM-04-001" "APRM-03-001" "APRM-05-003" "APRM-05-002" "APRM-05-001" "APRM-07-001" "APRM-02-007" "APRM-02-006" "APRM-02-005" "APRM-02-004" "APRM-02-002" "APRM-05-005" "APRM-01-001" Optional device type selector. For APRM codes, check useful links section on top. |
[- {
- "deviceId": "56a937d4-c09d-4d14-8c4e-97f5f4340288",
- "spaceId": "13a937d4-c09d-4d14-8c4e-97f5f4340288",
- "name": "Mój MM",
- "type": "mm"
}
]
deviceId required | string |
{- "deviceId": "13a937d4-c09d-4d14-8c4e-97f5f4340288",
- "spaceId": "13a937d4-c09d-4d14-8c4e-97f5f4340288",
- "name": "Water meter",
- "type": "mm",
- "properties": [
- {
- "propertyId": "waterValveOpen",
- "type": "bool",
- "mode": "readwrite"
}
]
}
deviceId required | string |
propertyId required | string |
string or boolean or number |
{- "value": false
}
{- "deviceId": "4de4adb9-21ee-47e3-aeb4-8cf8ed6c109a",
- "propertyId": "string",
- "state": "success",
- "timestamp": "2022-07-14T01:00:00+01:00"
}