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

INE Service

Facephi INE Service is a C++ REST API service that enables identity verification using facial recognition. The service is based on the SelphID SDK, a technology developed by FacePhi. It implements the Mexican Mexipay-INE (Instituto Nacional Electoral) specification.

The service exposes the following endpoints:

  • POST /api/v1/facial/authentication

  • GET /api/v1/health

  • GET /api/v1/version

The supported image formats are:

  • INE (0)

  • JPEG (1)

  • TEMPLATE RAW (2)

  • BEST IMAGE TOKEN (3)

The service's main distribution is an Ubuntu 26.04-based Docker container.

JWT authentication

JWT authentication is optional and disabled by default.

  • It is configured when the service starts in config.json using auth_enabled, auth_jwt_secret, auth_accept_authorization_header, auth_accept_api_key_header and auth_api_key_header_name.

  • The same values can be overridden using the environment variables FACEPHI_INE_REST_AUTH_*.

  • GET /api/v1/health and GET /api/v1/version remain public.

  • POST /api/v1/facial/authentication requires a valid JWT when authentication is enabled.

  • The service does not expose GET/POST /config endpoints at runtime, so JWT configuration can only be set at startup.

Last updated