- Passive: the target is not contacted
- Cost: 1 rate-limit unit per request
Returns a job id and status pending. The url is built from the storage host and the file_path returned by /get-presigned-url after you upload the file. Poll /query for the result.
Request body (JSON) · 6ShowHide
key
Your API key
url
Image URL, 1 to 2083 characters
document_type
Image, SampleImage or image-zip; default Image
generate_preview
Generate a preview URL; default true
generate_heatmap
Generate a heatmap; default true
include_content_moderation
Include content moderation; default false
Response fields · 2ShowHide
id
Job ID to pass to /query
status
Job status, pending when accepted
curl -X POST 'https://detect-image.truthscan.com/detect' \
-H 'apikey: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"key":"YOUR_API_KEY","url":"https://storage.example.com/uploads/photo.jpg","generate_preview":true,"generate_heatmap":true}'{
"id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending"
}