curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=file" \
-F "file=@document.pdf"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "file",
"content_base64": "BASE64_ENCODED_FILE",
"filename": "document.pdf"
}'
{
"success": true,
"message": "Malicious content detected.",
"result": {
"scan_id": "scn_e05b3c8a91f2",
"kind": "file",
"status": "done",
"verdict": "malicious",
"score": 96,
"sha256": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"file_type": "PDF document",
"data_residency": "global",
"signals": [
{
"source": "antivirus",
"malicious": true,
"detail": "Eicar-Test-Signature",
"severity": "critical"
}
],
"iocs": [
{
"type": "sha256",
"value": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
Malware
File Scan
Inspect a file for malware and suspicious indicators.
POST
/
api
/
lookup
/
malware
/
scan
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=file" \
-F "file=@document.pdf"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "file",
"content_base64": "BASE64_ENCODED_FILE",
"filename": "document.pdf"
}'
{
"success": true,
"message": "Malicious content detected.",
"result": {
"scan_id": "scn_e05b3c8a91f2",
"kind": "file",
"status": "done",
"verdict": "malicious",
"score": 96,
"sha256": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"file_type": "PDF document",
"data_residency": "global",
"signals": [
{
"source": "antivirus",
"malicious": true,
"detail": "Eicar-Test-Signature",
"severity": "critical"
}
],
"iocs": [
{
"type": "sha256",
"value": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
File Scan analyzes a file for malware and returns a verdict, file hash, and supporting indicators.
The maximum file size is 100 MiB.
To send JSON instead, base64-encode the file into
For files already in storage, send a short-lived download link in
See Malware Scan for the complete response schema and shared fields.
Authentication
Send your API key asAuthorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Request
The file to scan, uploaded as
multipart/form-data. Send this field or
content_base64 or source_url. When you omit filename, the uploaded file’s name is used.For a JSON body, the base64-encoded file. Send raw base64 only, without a data URL prefix. Provide this field,
file, or source_url.Example request
Upload the file from disk asmultipart/form-data. Replace document.pdf with the path to your file.
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=file" \
-F "file=@document.pdf"
content_base64:
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "file",
"content_base64": "BASE64_ENCODED_FILE",
"filename": "document.pdf"
}'
source_url instead of uploading the file:
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=file" \
-F "source_url=https://files.example.com/signed/invoice.pdf" \
-F "filename=invoice.pdf"
Example response
{
"success": true,
"message": "Malicious content detected.",
"result": {
"scan_id": "scn_e05b3c8a91f2",
"kind": "file",
"status": "done",
"verdict": "malicious",
"score": 96,
"sha256": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"file_type": "PDF document",
"data_residency": "global",
"signals": [
{
"source": "antivirus",
"malicious": true,
"detail": "Eicar-Test-Signature",
"severity": "critical"
}
],
"iocs": [
{
"type": "sha256",
"value": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
File result fields
Malware and rule matches. Each item is an object with
source, malicious, detail, and optional severity.Errors
The API returns400 for invalid input, 401 for a missing or invalid API key, 402 when your account has insufficient credits, 413 when the file exceeds 100 MiB, and 429 when you exceed a rate limit.
Credits
A successful scan costs 1 credit. Repeating the same scan kind and content is deduplicated for billing.curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-F "kind=file" \
-F "file=@document.pdf"
curl -X POST "https://developer.encrata.com/api/lookup/malware/scan" \
-H "Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"kind": "file",
"content_base64": "BASE64_ENCODED_FILE",
"filename": "document.pdf"
}'
{
"success": true,
"message": "Malicious content detected.",
"result": {
"scan_id": "scn_e05b3c8a91f2",
"kind": "file",
"status": "done",
"verdict": "malicious",
"score": 96,
"sha256": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f",
"file_type": "PDF document",
"data_residency": "global",
"signals": [
{
"source": "antivirus",
"malicious": true,
"detail": "Eicar-Test-Signature",
"severity": "critical"
}
],
"iocs": [
{
"type": "sha256",
"value": "275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"
}
],
"scanned_at": "2026-10-09T09:30:00Z"
}
}
Was this page helpful?