Skip to content

Authentication

OpenBiometrics currently runs as a self-hosted service with no authentication required. All endpoints are open by default.

Terminal window
curl -X POST http://localhost:8000/api/v1/detect \
-F "image=@photo.jpg"

The SDKs work with any apiKey value when connecting to a self-hosted instance:

const ob = new OpenBiometrics({
apiKey: 'any-value',
baseUrl: 'http://localhost:8000',
});
ob = OpenBiometrics(
api_key="any-value",
base_url="http://localhost:8000",
)

A hosted cloud API with key-based authentication (ob_live_, ob_test_ prefixes) is planned but not yet available. For now, self-host the API server.