API Interface List

This topic provides a summary list of Milesight Development Platform API interfaces.

Authentication

Function HTTP method API endpoint
Get an Access Token POST /oauth/token
Refresh an Access Token POST /oauth/token

Device management

Function HTTP method API endpoint
Add a Device POST /device/openapi/v1/devices
Search Specific Devices POST /device/openapi/v1/devices/search
Query a Specific Device GET /device/openapi/v1/devices/{deviceId}
Query the TSL Model of a Device GET /device/openapi/v1/devices/{deviceId}/thing-specification
Query the Historical Data of Properties Reports GET device/openapi/v1/devices/{deviceId}/properties/history?{query parameters}
Invoke Device Services Asynchronously POST /device/openapi/v1/devices/{deviceId}/services/call
Update a Device Information PUT /device/openapi/v1/devices
Update Device Properties Incrementally PATCH /device/openapi/v1/devices/{deviceId}/properties
Delete a Device DELETE /device/openapi/v1/devices/{deviceId}
Remove a Device from Application PUT /device/openapi/v1/devices/remove/{deviceId}

RPS management

Function HTTP method API endpoint
Specify the Profile URL for RPS POST /device/openapi/v1/rps/profile
Query Profile URL List POST /device/openapi/v1/rps/search
Delete RPS Record of a Device DELETE device/openapi/v1/rps/{sn}