Skip to main content

Recognize

recognize matches a cropped/aligned face (sent as JSON) against the enrolled identities and returns the matched person, if any.

API Endpoint

  • HTTP Method: POST
  • Endpoint: /api/v1/faceEdge/recognize
  • Base URL (Cloud): https://customername.econnectcloud.com/identities
  • Base URL (On-prem): https://<server-host-or-ip>:5009

Authentication

Requires a JWT bearer token. See Authentication.

Minimum Permission

The permission name and category below are what you'll see in the Identities web app under System → System settings → Roles.

PermissionCategory
Face RecognizeFacial Recognition Services

Request Body

Content-Type: application/json.

FieldTypeRequiredDescription
detectorNamestringYesIdentifier of the detector/source.
ianaTimeZonestringYesIANA time zone of the detection.
detectTimeUtcstring (ISO-8601 UTC)YesUTC timestamp of the detection.

The face input itself (croppedAligned) and the related model fields are eConnect edge-model inputs — see Advanced below.

Code Examples

API_URL="https://customername.econnectcloud.com/identities"
TOKEN="your_jwt"
CROPPED_FILE="cropped-aligned.jpg"

CROPPED_B64=$(base64 -w 0 "$CROPPED_FILE")

REQUEST=$(cat <<EOF
{
"croppedAligned": "$CROPPED_B64",
"detectorName": "FrontDoorCam",
"ianaTimeZone": "America/Los_Angeles",
"detectTimeUtc": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
}
EOF
)

curl -sk -X POST "$API_URL/api/v1/faceEdge/recognize" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "$REQUEST" | jq

Response

200 OK — an EdgePerson for the matched identity:

{
"faceId": "5f9c2b7a-3e41-4d8a-9b6c-1a2b3c4d5e6f",
"personId": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
"firstName": "Jane",
"lastName": "Doe",
"tags": [{ "name": "VIP" }]
}

Response Fields

FieldTypeDescription
faceIdstringThe matched face's identifier.
personIdstring (GUID)The matched person's identifier.
firstName / lastNamestringThe person's primary alias.
tags[]arrayTags applied to the person ({ "name": "..." }).

Response Codes

CodeMeaning
200 OKA match was found; the EdgePerson is returned.
400 Bad RequestInvalid request, no face found, or no person matched.
401 UnauthorizedMissing or invalid JWT.
403 ForbiddenThe user lacks the Face Recognize permission.
Have files instead of base64?

Use lookup to upload the face and embeddings as multipart/form-data.

Advanced

eConnect edge-model inputs

These inputs are highly proprietary and produced by eConnect's own edge models. This endpoint is intended for eConnect edge deployments rather than general partner integrations.

FieldTypeRequiredDescription
croppedAlignedbyte[] (base64)YesThe cropped/aligned face image to match (an eConnect edge-model output).
embeddingsfloat[]NoPrecomputed embeddings.
recognitionModelstringNoRecognition model name.