Device management API by user
Base URL: https://api.asgardeo.io/t/<ORGANIZATION_NAME>/api/users/v1
The WSO2 Identity Platform - User Device Management API (version v1).
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://api.asgardeo.io/t/{organization-name}/oauth2/token, authorization URL https://api.asgardeo.io/t/{organization-name}/oauth2/authorize
me
Operations for the authenticated user.
List the devices registered to the authenticated user.
GET /me/devices
This API provides the capability to list a paginated set of the devices registered to the authenticated user. Returns devices of any status (ACTIVE or INACTIVE).
Scope (Permission) required: internal_login
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: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | DeviceListResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Get a device registered to the authenticated user.
GET /me/devices/{device-id}
This API provides the capability to retrieve a device registered to the authenticated user by its ID.
Scope (Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | ID 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 device registered to the authenticated user.
DEL /me/devices/{device-id}
This API provides the capability to delete a device registered to the authenticated user.
Scope (Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | ID of the registered device. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Successfully Deleted | |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update a device registered to the authenticated user.
PATCH /me/devices/{device-id}
This API provides the capability to rename, activate or deactivate a device registered to the authenticated user. At least one of 'deviceName' or 'status' must be provided.
Scope (Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device-id | path | string | Yes | ID of the registered device. |
Request body (required): application/json
Schema: DevicePatchRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceName | string | The new display name for the device. | |
status | string | The new status of the device. An inactive device cannot be used for device-based login checks. Allowed values: |
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 devices registered to the authenticated user. | |
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 ID. | |
deviceName | string | The display name of the device. | |
deviceModel | string | The hardware model of the device. | |
status | string | The current device status (ACTIVE or INACTIVE). | |
registeredAt | string | The timestamp when the device was registered, in ISO-8601 format. |
DevicePatchRequest
Type: object
Fields to update. At least one of 'deviceName' or 'status' must be provided.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
deviceName | string | The new display name for the device. | |
status | string | The new status of the device. An inactive device cannot be used for device-based login checks. Allowed values: |
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | |
message | string | Yes | |
description | string | ||
traceId | string |
Was this page helpful?