API reference guide
1. Introduction
This document includes the API description of the service provided in the product FacePhi INE Service.
2. Rest API
JWT authentication is optional and is configured only at startup. When enabled, GET /api/v1/health and GET /api/v1/version remain public, while POST /api/v1/facial/authentication requires a valid JWT.
The service offers the following endpoints:
/api/v1/facial/authentication: This endpoint is used to authenticate two facial photos. It supports image-image, template-template, and mixed image-template combinations. It returns a score value that indicates whether the face belongs to the same person, and a probability that indicates the similarity between the two faces. The image or template must be encoded in base64.
/api/v1/health: This endpoint returns the service health status and remains public even when JWT authentication is enabled.
/api/v1/version: This endpoint returns the service version and SDK information.
The service does not expose endpoints GET/POST /config at runtime.
3. Photo types
INE = 0
JPEG = 1
TEMPLATE_RAW = 2
BEST_IMAGE_TOKEN = 34. Error codes
Payloads with malformed JSON or Base64 are returned as HTTP 400 BadRequest with a field message describing the problem.
Last updated