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

Download OpenAPI (YAML)Version 1.0.0

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
ScopeDescription
readinternal_device_mgt_view
writeinternal_device_mgt_update
deleteinternal_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

NameInTypeRequiredDescription
limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip for pagination.

Default: 0

userIdquerystring

Filter devices by the ID of the user who registered them. Returns devices of any status. Pagination applies as usual.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

UUID of the registered device

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

UUID of the registered device

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
device-idpathstringYes

UUID of the registered device

Request body (required): application/json

Schema: DevicePatchRequest

1 property
NameTypeRequiredDescription
deviceNamestringYes

The new display name for the device.

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 registered devices.

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 UUID.

deviceNamestring

The display name of the device.

deviceModelstring

The hardware model of the device.

statusstring

The current device status.

registeredAtstring

The timestamp when the device was registered, in ISO-8601 format.

DevicePatchRequest​

Type: object

1 property
NameTypeRequiredDescription
deviceNamestringYes

The new display name for the device.

Error​

Type: object

4 properties
NameTypeRequiredDescription
codestring
messagestring
descriptionstring
traceIdstring

Was this page helpful?