API Reference

https://staging.cypherface.com/api/face-match/ The Face Matching API is used for face verification. It compares the image captured at the time of payment with the image uploaded during user registration to confirm identity. If the faces match successfully, the API returns a 200 response, ensuring a seamless and secure user experience. This functionality is particularly useful in preventing fraud and enabling trusted transactions.

Curl Request

curl --location 'https://staging.cypherface.com/api/face/match/' \
--header 'authorization: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjeXBoZXJGYWNlSWQiOiI2Nzg4YTU0Njk3ZmQxNjQzNjA5YWMwNGIiLCJ4QXBpS2V5IjoiMWI4YTIyYjgtNmI2NC00YWJhLTlhNWMtNWFiNGNhOWM5NDQ5IiwiaWF0IjoxNzM3NTU2Mzk3LCJleHAiOjE3Mzc3MjkxOTd9.ZSDsJ69_NkcHtIgKd2okXh23HjOQBagjEKpS5gM5dgw' \
--header 'Content-Type: application/json' \
--header 'Cookie: connect.sid=s%3AyoqwqQtJPuetxSVZLt9_3cikxJ6eSZO-.RDMRaaGKPjP%2F7f6E1pJeiOCPXiu61fEP8J8PwHvgW%2BY' \
--data '{
    "userId":"6789fb11e94adea011383478"
}'

Face matching Process

Generate a URL for uploading the target image to be used in the face-matching process.

The system generates a URL with validity for 80 minutes, allowing secure uploads.

Uploads Image to Generated URL

The user uploads the image to the provided URL.

Validation

The system validates the uploaded image to ensure:

  • The imageName and contentType match the requested parameters.

Image Uploaded Successfully

Once the image is verified and uploaded successfully, the user receives confirmation.

Request for Match

After the source image is uploaded, the user can proceed with a face match request using the uploaded image.

Language
Click Try It! to start a request and see the response here!