Skip to main content

Quick Start

Document Integrity

Finovox analyzes the document's IT structure, so the document must remain unaltered before submission. The API should be connected upstream to prevent any potential sources of alteration and ensure the integrity of the document.

Authentication​

All API requests require an API key. You can generate your API key from the Finovox dashboard.

Include your API key in the request headers:

api-key: your_api_key_here

API Endpoint​

Supported File Formats​

  • PDF (.pdf)
  • JPEG (.jpg, .jpeg)
  • PNG (.png)

Your First Request​

In this example, we make a call to retrieve the fraud analysis:

import requests
import json

url = "https://api-v2.finovox.com/analyse"
headers = {"api-key": "YOUR_API_KEY_HERE"}
payload = {
"analyse_type": ["risk"]
}

with open("sample.pdf", "rb") as f:
files = [("file", ("sample.pdf", f.read()))]
data = {"payload": json.dumps(payload)}
response = requests.post(
url,
headers=headers,
files=files,
data=data,
timeout=150 # Required: minimum 150 seconds
)
print(response.json())
Request Timeout

Set a timeout of at least 150 seconds as analysis time varies with document complexity. For timeout constraints, use asynchronous requests.

Response​

{
"name": "sample.pdf",
"global_risk": "high",
"software_risk": "high",
"metadata_risk": "high",
"datastructure_risk": "low",
"vision_risk": "low",
"coherence_risk": "medium",
"document_quality": "acceptable",
"software": "photoshop"
}

HTTP Status Codes​

CodeMeaningAction
200SuccessAnalysis completed
400Bad RequestCheck file format/size
401UnauthorizedVerify API key
429Too Many RequestsRate limit exceeded, slow down
500Server ErrorRetry request