Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Device management API by user

Download OpenAPI (YAML)Version v1

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

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

ID of the registered device.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

ID of the registered device.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

ID of the registered device.

Request body (required): application/json

Schema: DevicePatchRequest

2 properties
NameTypeRequiredDescription
deviceNamestring

The new display name for the device.

statusstring

The new status of the device. An inactive device cannot be used for device-based login checks.

Allowed values: ACTIVE, INACTIVE

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

devicesarray of DeviceResponse

Page of devices registered to the authenticated user.

linksarray of DeviceListLink

Pagination links (next/previous).

Type: object

2 properties
NameTypeRequiredDescription
hrefstring

Relative URL to the linked page.

relstring

Relation to the current page.

DeviceResponse​

Type: object

5 properties
NameTypeRequiredDescription
idstring

The device ID.

deviceNamestring

The display name of the device.

deviceModelstring

The hardware model of the device.

statusstring

The current device status (ACTIVE or INACTIVE).

registeredAtstring

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
NameTypeRequiredDescription
deviceNamestring

The new display name for the device.

statusstring

The new status of the device. An inactive device cannot be used for device-based login checks.

Allowed values: ACTIVE, INACTIVE

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestringYes
messagestringYes
descriptionstring
traceIdstring

Was this page helpful?