Skip to main content

Publish (Fire-and-Forget)

publish submits a detected face image to the facial-recognition engine without waiting for or returning detection results. It is the fire-and-forget counterpart to publishWithResponse — use it for high-throughput feeds where you don't need the result back.

API Endpoint

  • HTTP Method: POST
  • Endpoint: /api/v1/faceEdge/publish
  • 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 PublishingFacial Recognition Services

Request Body

Content-Type: application/json. Same shape as publishWithResponse without the largestFaceOnly / allowDoubleDetection options.

Required Fields

FieldTypeDescription
expandedbyte[] (base64)The detected face image bytes.
detectorNamestringIdentifier of the detector/source.
ianaTimeZonestringIANA time zone of the detection.
detectTimeUtcstring (ISO-8601 UTC)UTC timestamp of the detection.

Code Examples

API_URL="https://customername.econnectcloud.com/identities"
TOKEN="your_jwt"
FACE_FILE="face.jpg"

EXPANDED_B64=$(base64 -w 0 "$FACE_FILE")

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

# Returns 200 OK with an empty body on success.
curl -sk -X POST "$API_URL/api/v1/faceEdge/publish" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d "$REQUEST"

Response Codes

CodeMeaning
200 OKImage accepted for processing (empty body).
400 Bad RequestInvalid request — for example, expanded is missing.
401 UnauthorizedMissing or invalid JWT.
403 ForbiddenThe user lacks the Face Publishing permission.
500 Internal Server ErrorA server-side error occurred.
Need the detection result?

Use publishWithResponse to get the detected faces back in the same call.

Advanced

eConnect edge-model fields (leave unset)

The following request fields are highly proprietary and intended for eConnect's own edge models only. Partner integrations should not set them.

FieldTypeDescription
croppedAlignedbyte[] (base64)eConnect models only. Do not set.
embeddingsfloat[]eConnect models only. Do not set.
recognitionModelstringeConnect models only. Do not set.