Skip to content

Expected Workflow on a Partner Side

Schematic representation of the REST API call sequence

Open Token Management

💡 Note: This API provides an endpoint to POST the payload for bank card recognition. It does NOT return the result of the recognition, only whether or not the recognition process has started successfully.


This describes the expected interaction between a Partner System and the X-Faces backend for processing bank card recognition requests.


Endpoint:

POST https://api.x-faces.xyz/v1/card/recognize

Request Body Parameters:

{
"user_external_id": "string",
"callback_url": "https://your-system.com/notify",
"expected_number": "string (optional)",
"image": "base64-encoded image data"
}
  • user_external_id: ID of the user in the partner system.
  • callback_url: URL to which X-Faces will send the recognition result.
  • expected_number: (Optional) Expected card number for validation.
  • image: Base64 image of the card to be recognized.

Response:

{
"result": "ok | error",
"message": "Process started | Error message"
}

⚠️ Note: This response does not contain the recognition result — only the status of request acceptance.


Once recognition is complete, X-Faces will send a POST request to the specified callback_url.

Callback Payload Example:

{
"created_at": "timestamp",
"updated_at": "timestamp",
"u_uuid": "user_uuid",
"external_id": "user_external_id",
"verified": true,
"verified_at": "timestamp",
"challenge_id": "challenge_identifier",
"multiaccounts": false,
"changed": false
}

Endpoint:

GET https://api.x-faces.xyz/v1/card/get/<challenge_id>

Use the challenge_id received in the callback to query the detailed recognition result if needed.


  • Partner sends the recognition request with card image and metadata.
  • X-Faces accepts and processes the recognition.
  • Once complete, the result is sent to the provided callback_url.
  • The partner can optionally use challenge_id to fetch details.