Skip to main content
POST
Face Comparison

Authorizations

Authorization
string
header
required

Access token from POST /api/v1/kyc/auth/get-auth-token. Valid for one hour.

Body

request_id
string
required

Your unique reference for this comparison. Use a new UUID for each new check. Sending the same key with the same images returns the original result and is billed once.

Example:

"TXN-20260727-001"

first_image
string
required

First image (typically a selfie) as raw base64 (JPEG or PNG). No line breaks and no data:image/… prefix. Maximum 5 MB after decoding.

Example:

"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAg..."

second_image
string
required

Second image (typically an ID-card portrait) as raw base64 (JPEG or PNG). No line breaks and no data:image/… prefix. Maximum 5 MB after decoding.

Example:

"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="

Response

Comparison finished and billed (pricing=PAID). SUCCESS includes data (boxes + similarity). Detection codes (FACE_NOT_FOUND and related) have no data.

code
enum<string>
required

A scored comparison finished. Bounding boxes and similarity are in data.

Available options:
SUCCESS
Example:

"SUCCESS"

message
enum<string>
required

Always OK. Use code, not this field, to branch.

Available options:
OK
Example:

"OK"

data
object
required
request_id
string
required

The request_id you sent.

Example:

"TXN-20260727-001"

pricing
enum<string>
required

A scored comparison is always billed.

Available options:
PAID
Example:

"PAID"