For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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.

post
Authorizations
AuthorizationstringRequired

JWT signed with HS256 and sent as Authorization: Bearer <jwt>. Only required when JWT authentication is enabled.

Body
capturestring · binaryRequired

Encrypted facial capture generated by the Facephi capture component.

Responses
200

Extracted image data.

application/json
imagestring · byteOptional

Extracted facial image, Base64 encoded (standard RFC 4648 alphabet).

mimeTypestringOptional

MIME type of the extracted image. The service always returns image/jpeg.

Example: image/jpeg
post/api/v1/iad/extract
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