Skip to main content
POST
/
doc-agent
/
api
/
v1
/
material_tampering
cURL
curl --request POST \
  --url https://agents.textin.com/doc-agent/api/v1/material_tampering \
  --header 'Content-Type: application/json' \
  --header 'x-ti-app-id: <x-ti-app-id>' \
  --header 'x-ti-secret-code: <x-ti-secret-code>' \
  --data '
{
  "file": {
    "filedata": "<string>",
    "filename": "<string>",
    "url": "<string>"
  },
  "file_url": "https://example.com/file.jpg"
}
'
{
  "areas": [
    {
      "confidence": 0.98,
      "positions": [
        241,
        510,
        397,
        510,
        397,
        572,
        241,
        572
      ]
    }
  ],
  "is_tampered": true
}

Headers

x-ti-app-id
string
required
x-ti-secret-code
string
required

Body

application/json
file
object

上传文件(与file_url二选一)

file_url
string

文件URL(与file二选一)

Example:

"https://example.com/file.jpg"

Response

200 - application/json

OK

areas
object[]

被篡改的区域

Example:
[
{
"confidence": 0.98,
"positions": [241, 510, 397, 510, 397, 572, 241, 572]
}
]
is_tampered
boolean

材料是否被篡改

Example:

true