Comparison
Content Comparison
View DocsAPI Reference
Authorization
ApiKeyAuth access-key<token>
Your unique access-key generated from the platform UI
In: header
Request Body
application/json
doc_1_process_id*string
First document ID to compare (obtained from Upload or List Documents APIs). Only documents with status 'processed' can be used.
doc_2_process_id*string
Second document ID to compare (obtained from Upload or List Documents APIs). Only documents with status 'processed' can be used.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.k-v.ai/api/agent/content_comparison" \ -H "Content-Type: application/json" \ -d '{ "doc_1_process_id": "your_doc_id_1", "doc_2_process_id": "your_doc_id_2" }'{
"value": {
"data": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n\n<html>\n<head>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n <title></title>\n <style type=\"text/css\">\n table.diff {font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; border:medium}\n .diff_header {background-color:#e0e0e0}\n td.diff_header {text-align:right}\n .diff_next {background-color:#c0c0c0}\n .diff_add {background-color:#aaffaa}\n .diff_chg {background-color:#ffff77}\n .diff_sub {background-color:#ffaaaa}\n </style>\n</head>\n<body>\n <table class=\"diff\">\n ...\n </table>\n</body>\n</html>",
"message": "Content compared successfully"
}
}{
"value": {
"data": {},
"message": "Invalid docs selected"
}
}{
"value": {
"data": {},
"message": "Invalid or missing access key"
}
}{
"value": {
"data": {},
"message": "Something went wrong"
}
}