Extract the image from the capture
Extracts the facial image from the encrypted capture. The required multipart field is capture.
This endpoint normalizes the errors of the analysis engine like POST /api/v1/iad/evaluate: it returns the same NoneBecause* and Replay attack detected messages, and ErrorFacialImage instead of ErrorProcessing for unclassified failures. When the license stopped being valid while the service runs, the response is HTTP 400 with Invalid license: <reason> (code: <code>). When the analysis engine does not respond, the response is HTTP 503 with Engine communication error: <detail>.
The validation errors of the capture field are the same as in POST /api/v1/iad/evaluate.
JWT signed with HS256 and sent as Authorization: Bearer <jwt>. Only required when JWT authentication is enabled.
Encrypted facial capture generated by the Facephi capture component.
Extracted image data.
Extracted facial image, Base64 encoded (standard RFC 4648 alphabet).
MIME type of the extracted image. The service always returns image/jpeg.
image/jpegRequest validation error, capture the analysis engine could not process, capture rejected by the replay mitigation, license that is not valid, or unclassified failure.
The authentication token is missing or invalid. Only returned when JWT authentication is enabled. The response includes the WWW-Authenticate header with the value Bearer.
The request body exceeds client_max_body_size. This response is produced by the HTTP server before the request reaches the service, so it does not carry the standard Facephi error body.
An unhandled internal error occurred.
The analysis engine does not respond: its process has stopped, is blocked or does not answer in time. The capture was not evaluated; retry later.
message is Engine communication error: followed by the detail: Too many retries when the engine still did not respond after the retries configured in engine_max_retries, or Connection failed or Request timeout when no retries are configured.
POST /api/v1/iad/extract HTTP/1.1
Host: 127.0.0.1:6982/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 20
{
"capture": "binary"
}{
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD...",
"mimeType": "image/jpeg"
}Last updated