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
Key | Value | Description | Required |
---|---|---|---|
text1 | text | First Text | yes |
text2 | text | Second Text | yes |
type | text | Text Type | yes |
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
}
}