/api/v1/selphid/custom-event/liveness
Sends a custom external liveness event to the Api Tracking platform.
HS256 JWT signed with auth_jwt_secret and carrying an exp claim, sent as Authorization: Bearer <jwt>.
Accepted while auth_accept_authorization_header is true (default). Only enforced when auth_enabled is
true.
Data to register an external liveness event in the Api Tracking platform. It also supports the image buffer.
Family under which to register the Api Tracking events.
OnBoardingValores possíveis: Possible results of a liveness operation.
NoLiveValores possíveis: The source of an event in the Api Tracking service.
event.source.externalToolRaw image buffer in .png, .jpg or .bmp format, base64-encoded.
/9j/4AAQSkZJRgABAQEAtAC0AAD...Tokenized data used to call the Api Tracking service after the operation, base64-encoded.
BQABAQGkJhiCqQjKYUZyDM...Result of the event tracking.
The result of an Api Tracking operation.
Status returned by the Api Tracking service, or -1 if tracking is not required.
201Message returned by the Api Tracking service, or empty if tracking is not required.
EvaluatePassiveLivenesWithImageBuffer: OkIncorrect parameters in the request.
JWT authentication is enabled and the request carries no token or an invalid one. message is one of
Missing authentication token, JWT token is expired, JWT token is not yet valid,
JWT token does not include exp claim, JWT token validation failed or, when auth_jwt_secret is empty,
Authentication secret is not configured.
An error occurred in the call to the SelphID-SDK backend.
POST /api/v1/selphid/custom-event/liveness HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 168
{
"family": "OnBoarding",
"diagnostic": "NoLive",
"eventSource": "event.source.externalTool",
"image": "/9j/4AAQSkZJRgABAQEAtAC0AAD...",
"extraData": "BQABAQGkJhiCqQjKYUZyDM..."
}{
"trackingStatus": 201,
"trackingMessage": "EvaluatePassiveLivenesWithImageBuffer: Ok"
}Atualizado