Device management API
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/server/v1
The WSO2 Identity Platform - Device Management API (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{org-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{org-name}/oauth2/authorize
3 scopes
| Scope | Description |
|---|---|
read | internal_device_mgt_view |
write | internal_device_mgt_update |
delete | internal_device_mgt_delete |
Device Management
List all registered devices in the organization.
GET /devices
This API provides the capability to list a paginated set of registered devices for the organization.
Scope (Permission) required: internal_device_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip for pagination. Default: | |
userId | query | string | Filter devices by the ID of the user who registered them. Returns devices of any status. Pagination applies as usual. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | DeviceListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
500 | Server Error | Error |
Get a registered device by ID.
GET /devices/{device-id}
This API provides the capability to retrieve a registered device by its ID.
Scope (Permission) required: internal_device_mgt_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | UUID of the registered device |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | DeviceResponse |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Delete a registered device.
DEL /devices/{device-id}
This API provides the capability to delete a registered device by its ID.
Scope (Permission) required: internal_device_mgt_delete
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | UUID of the registered device |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Rename a registered device.
PATCH /devices/{device-id}
This API provides the capability to update the display name of a registered device.
Scope (Permission) required: internal_device_mgt_update
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | UUID of the registered device |
Request body (required): application/json
Schema: DevicePatchRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
deviceName | string | Yes | The new display name for the device. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | DeviceResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
DeviceListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation. | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1. | |
count | integer | Number of elements in the returned page. | |
devices | array of DeviceResponse | Page of registered devices. | |
links | array of DeviceListLink | Pagination links (next/previous). |
DeviceListLink
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string | Relative URL to the linked page. | |
rel | string | Relation to the current page. |
DeviceResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The device UUID. | |
deviceName | string | The display name of the device. | |
deviceModel | string | The hardware model of the device. | |
status | string | The current device status. | |
registeredAt | string | The timestamp when the device was registered, in ISO-8601 format. |
DevicePatchRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
deviceName | string | Yes | The new display name for the device. |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
Was this page helpful?