Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: smart-me User API
version: v1
security:
- OAuth2: []
- Basic: []
tags:
- name: User
paths:
/User:
get:
tags:
- User
summary: Gets the information for the user
responses:
'200':
description: OK
content:
text/plain:
schema:
$ref: '#/components/schemas/User'
application/json:
schema:
$ref: '#/components/schemas/User'
text/json:
schema:
$ref: '#/components/schemas/User'
operationId: getUser
x-operation-id-source: derived
delete:
tags:
- User
summary: Triggers user account deletion
responses:
'200':
description: OK
operationId: deleteUser
x-operation-id-source: derived
components:
schemas:
User:
type: object
properties:
id:
type: integer
description: The ID of the User
format: int64
idAsString:
type:
- string
- 'null'
description: The ID of the user as string
username:
type:
- string
- 'null'
description: The Username of the User
email:
type:
- string
- 'null'
description: The EMail Address of the User
isAdmin:
type: boolean
description: Flag if this User is an Admin User
permissions:
type:
- array
- 'null'
items:
type: string
description: Additional Permissions
childUsers:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/User'
description: The Users created by this users.
additionalProperties: false
description: Container Class for the Web API
securitySchemes:
OAuth2:
type: oauth2
description: OAuth 2.0 authorization
flows:
clientCredentials:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
authorizationCode:
authorizationUrl: /oauth/authorize
tokenUrl: /oauth/token
scopes:
user.read: Read the user settings
user.readwrite: Read and write the user settings
device.read: Read data from the devices
device.readswitch: Read data from the device and controll the outputs
device.readwrite: Read data from the device and add/update the values
auditlog.read: Read the audit log
partner.read: Read the device of a partner
partner.write: Read and write the device of a partner
partner.updatefirmware: Update the firmware of all devices of a partner
realtimeapi.read: Read the realtime api registrations
realtimeapi.readwrite: Read and write the realtime api registrations
oauthapp.write: Write and change of oauth applications
Basic:
type: http
description: Basic authorization
scheme: Basic