List documents with the same content hash
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.factify.com/v1/documents/{document_id}/duplicates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"documents": [
{
"id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"org_id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"title": "Q4 Financial Report",
"is_demo": false,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:35:00Z",
"created_by": {
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Alice Chen"
},
"url": "https://app.factify.com/documents/doc_01h2xcejqtf2nbrexx3vqjhp41",
"description": "<string>",
"current_version": {
"id": "ver_01h2xcejqtf2nbrexx3vqjhp41",
"created_at": "2025-01-15T10:30:00Z"
},
"trashed_at": "2023-11-07T05:31:56Z",
"last_viewed_at": "2023-11-07T05:31:56Z",
"shared_at": "2023-11-07T05:31:56Z",
"thumbnail_url": "<string>",
"capabilities": {
"attach_policy": true,
"comment_private": true,
"comment_public": true,
"copy_content": true,
"create_version": true,
"export": true,
"grant_access": true,
"list_versions": true,
"manage_access": true,
"open": true,
"screenshot": true,
"trash": true,
"view": true,
"view_analytics": true,
"view_leads": true,
"view_timeline": true
},
"current_version_full": {
"id": "ver_01h2xcejqtf2nbrexx3vqjhp41",
"document_id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"created_at": "2025-01-15T10:30:00Z",
"created_by": {
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Alice Chen"
},
"status_error": "unsupported file format"
}
}
]
}Document Lifecycle
List documents with the same content hash
Finds documents that are visual duplicates of the specified document, using perceptual hashing of the rendered pages. Useful for de-duplication and for surfacing other copies a user can access without re-uploading.
GET
/
v1
/
documents
/
{document_id}
/
duplicates
List documents with the same content hash
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.factify.com/v1/documents/{document_id}/duplicates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"documents": [
{
"id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"org_id": "org_01h2xcejqtf2nbrexx3vqjhp41",
"title": "Q4 Financial Report",
"is_demo": false,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:35:00Z",
"created_by": {
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Alice Chen"
},
"url": "https://app.factify.com/documents/doc_01h2xcejqtf2nbrexx3vqjhp41",
"description": "<string>",
"current_version": {
"id": "ver_01h2xcejqtf2nbrexx3vqjhp41",
"created_at": "2025-01-15T10:30:00Z"
},
"trashed_at": "2023-11-07T05:31:56Z",
"last_viewed_at": "2023-11-07T05:31:56Z",
"shared_at": "2023-11-07T05:31:56Z",
"thumbnail_url": "<string>",
"capabilities": {
"attach_policy": true,
"comment_private": true,
"comment_public": true,
"copy_content": true,
"create_version": true,
"export": true,
"grant_access": true,
"list_versions": true,
"manage_access": true,
"open": true,
"screenshot": true,
"trash": true,
"view": true,
"view_analytics": true,
"view_leads": true,
"view_timeline": true
},
"current_version_full": {
"id": "ver_01h2xcejqtf2nbrexx3vqjhp41",
"document_id": "doc_01h2xcejqtf2nbrexx3vqjhp41",
"created_at": "2025-01-15T10:30:00Z",
"created_by": {
"id": "usr_01h2xcejqtf2nbrexx3vqjhp41",
"name": "Alice Chen"
},
"status_error": "unsupported file format"
}
}
]
}Documentation Index
Fetch the complete documentation index at: https://developers.factify.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Bearer authentication using a factapi-issued API key
(ffy_<env>_<base32_uuid><base62_random>). Cookie-based
sessions are accepted automatically by user-facing endpoints
but are not surfaced as an OpenAPI auth scheme.
Path Parameters
Document ID
Example:
"doc_01h2xcejqtf2nbrexx3vqjhp41"
Response
OK
Show child attributes
Show child attributes
⌘I