Get Project Device List

Last Updated on : 2025-05-28 10:15:10Copy for LLMView as MarkdownDownload PDF

Based on the unique identifier (ID) of a project, get the device information of the specific device type under the project, such as locks and card issuers.

API address

GET: /v1.0/osaas/projects/{project_id}/card-issue-devices

Request parameter

Parameter nameTypeINRequiredDescription
project_idStringuritrueThe unique ID of a specified project.
requestLockCardDevicePageRequest falseThe request of getting a list of devices under a specified project.

Description of request

Parameter nameTypeINRequiredDescription
page_noInteger falseThe page number. The page number must be greater than 0. Default value: 1.
page_sizeInteger falseThe number of items returned on each page. 0 < page_size < 1000. Default value: 20.
device_typeString trueThe product type. Valid values:
  • FKQ: card issuer.
  • CARD_LOCK: door lock that can be locked and unlocked with the card.

Return parameter

Parameter nameTypeDescription
resultDeviceAbilityPageResponseThe returned list of devices on pages.

Description of result

Parameter nameTypeDescription
devicesListThe list of devices.
totalIntegerThe total number of returned items.
page_noIntegerThe page number.
page_sizeIntegerThe number of items returned on each page.

Description of devices

Parameter nameTypeDescription
device_idStringThe unique ID of a specified device.
product_idStringThe unique ID of a specified product.
device_custom_nameStringThe custom name of a specified device.
active_timeLongThe 13-digit timestamp of the activation time.
gmt_createLongThe 13-digit timestamp of the creation time.
onlineBooleanThe online status of a specified device.
room_idStringThe unique ID of a specified room.
project_idStringThe unique ID of a specified project.

Request example

GET: /v1.0/osaas/projects/150188910571223***/card-issue-devices

Return example

{
    "tid": "bc9997990e3d11ed8a61ba62b***",
    "result": {
        "devices": [
            {
                "gmt_create": 1658454190642,
                "room_id": "15492738413169***",
                "device_id": "6c470253258246b9***",
                "project_id": "150188910571***",
                "product_id": "esddz***",
                "device_custom_name": "Zigbee lock for hotel use",
                "online": true,
                "position": "Bedroom"
            }
        ],
        "page_no": 1,
        "total": 2,
        "page_size": 20
    },
    "t": 1658989384437,
    "success": true
}

Error code

For more information, see error code.