All Products
Search
Document Center

AI Guardrails:Obtain individual information

Last Updated:Mar 31, 2026

Call the getPersonInfo operation to query the details of an individual registered in the face recognition library, including the individual's name, associated face image IDs, and individual group memberships.

Rate limits

This operation supports up to 20 calls per second per account. Exceeding this limit triggers throttling, which may affect your business.

Request syntax

POST /green/sface/person HTTPS|HTTP

Request headers

This operation uses only common request headers.

Request parameters

ParameterTypeRequiredExampleDescription
clientInfoJSONObjectNo{"userId":"120234234","userNick":"Mike","userType":"others"}The client information serialized from the ClientInfo structure in JSON format. Includes the unique machine identifier (UMID) and International Mobile Equipment Identity (IMEI) of the client. For more information, see ClientInfo.

Request body

ParameterTypeRequiredExampleDescription
personIdStringYesperson1The ID of the individual to query.

Response parameters

All responses are returned in JSON format. For common response parameters, see Common response parameters.

The data field contains the following parameters.

Note: The data field may be empty if an error occurs.
ParameterTypeExampleDescription
codeInteger200The HTTP status code. For more information, see Common error codes.
personIdStringperson1The ID of the individual.
nameStringTomThe name of the individual.
groupIdsStringArray["group1","group2"]The IDs of the individual groups to which the individual belongs.
faceIdsStringArray["1234999323333","124556455466"]The IDs of the face images associated with the individual.
noteStringMaleThe description of the individual.

Examples

Request example

POST /green/sface/person HTTP/1.1
<Common request headers>
{
    "personId": "person1"
}

Response example

{
    "msg": "OK",
    "code": 200,
    "requestId": "36D384DA-8023-4E84-BCFD-0C5581352C16",
    "data": {
        "code": 200,
        "personId": "person1",
        "name": "Tom",
        "groupIds": [
            "group1",
            "group2"
        ],
        "faceIds": [
            "1234999323333",
            "124556455466"
        ],
        "note": "Male"
    }
}