This document outlines an API endpoint for text comparison using AI to properly match two texts, regardless of the text position or if they don't match exactly. The response includes a success message with a match status and confidence level, or an error message if the comparison was unsuccessful.


📘

GET

{{URL}}/dikript/api/v1/biometrics/textcomparison



Parameter

KeyValueDescriptionRequired
text1textFirst Textyes
text2textSecond Textyes
typetextText Typeyes


Response Body

{ "status": true, "message": "Successful", "code": "200", "apiVersion": "v1", "transactionRef": "N202403310239189654", "data": { "match": false, "matchReason": "Text does not match", "confidence": 0.89 }, "error": null }
{ "status":false, "message": "Unsuccessful", "code": "400", "apiVersion": "v1", "transactionRef": "N202401101345487388", "data": "", "error": { "code": 400, "message": null } }