Query Face Data of a User

Last Updated on : 2023-06-15 06:00:02

Query the face data of a specified user based on the user ID.

API address

GET: /v1.0/iot-02/faces

Request parameter

Parameter name Type IN Required Description
uid String query true The user ID.

Return parameter

Parameter name Type Description
result List The returned result.

Description of result

Parameter name Type Description
uid String The user ID.
img_url String The URL of a specified face image, which is valid for 2 hours.
create_time Long The time when it is created.

Request example

GET: /v1.0/iot-02/faces?uid=bay1634126568561****

Return example

{ "result": [ { "create_time": 1634356910365, "uid": "bay1634126568561****", "img_url": "https://****.****.com" } ], "t": 1637653091983, "success": true }

Error code

For more information, see error code.