For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Pular para o conteúdo

/api/v1/selphid/custom-event/liveness

Sends a custom external liveness event to the Api Tracking platform.

post
Autorizações
AuthorizationstringObrigatório

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.

Corpo

Data to register an external liveness event in the Api Tracking platform. It also supports the image buffer.

familystring · enumObrigatório

Family under which to register the Api Tracking events.

Example: OnBoardingValores possíveis:
diagnosticstring · enumObrigatório

Possible results of a liveness operation.

Example: NoLiveValores possíveis:
eventSourcestringOpcional

The source of an event in the Api Tracking service.

Example: event.source.externalTool
imagestringOpcional

Raw image buffer in .png, .jpg or .bmp format, base64-encoded.

Example: /9j/4AAQSkZJRgABAQEAtAC0AAD...
extraDatastringObrigatório

Tokenized data used to call the Api Tracking service after the operation, base64-encoded.

Example: BQABAQGkJhiCqQjKYUZyDM...
Respostas
200

Result of the event tracking.

application/json

The result of an Api Tracking operation.

trackingStatusnumberOpcional

Status returned by the Api Tracking service, or -1 if tracking is not required.

Example: 201
trackingMessagestringOpcional

Message returned by the Api Tracking service, or empty if tracking is not required.

Example: EvaluatePassiveLivenesWithImageBuffer: Ok
post/api/v1/selphid/custom-event/liveness
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