Gödel's Sieve
API Docs
API Reference

Scan Details

Retrieve detailed scan status and security analysis results.

Get Scan Details

GET /api/scans/:scanId

Retrieves the complete scan status, threat analysis, and detailed results for a specific scan.

Example

curl -sS \
  -H 'X-API-Key: <YOUR_PAT>' \
  'https://api.sieve.godel-labs.ai/api/scans/2b2f7b8b-7f2c-4b2d-9a5f-5c0c4c3c9d4e'

Response (200)

{
  "scanId": "2b2f7b8b-7f2c-4b2d-9a5f-5c0c4c3c9d4e",
  "fileName": "suspicious.pdf",
  "fileHash": "<sha256>",
  "fileSize": 123456,
  "mimeType": "application/pdf",
  "status": "completed",
  "results": { },
  "threatScore": 0.12,
  "isThreat": false,
  "severity": "low",
  "riskCategory": "safe",
  "analysisMode": "quick",
  "processingTimeMs": 1532,
  "confidence": 0.95,
  "securityIssuesCount": 0,
  "sensitiveDataCount": 1,
  "detectionClass": ["document"],
  "owaspLlmRisks": [],
  "owaspAgenticThreats": [],
  "compliance": null,
  "error": null,
  "createdAt": "2026-02-14 12:34:56",
  "updatedAt": "2026-02-14 12:35:10"
}

Response fields

FieldTypeDescription
scanIdstringUnique scan identifier (UUID)
fileNamestringOriginal file name
fileHashstringSHA-256 hex digest of the original file
fileSizenumberFile size in bytes
mimeTypestringDetected MIME type
statusstringCurrent scan status (see status values below)
resultsobject | nullRaw analysis results object from the scanner
threatScorenumber | nullThreat probability score (0–1)
isThreatboolean | nulltrue if the file was classified as a threat
severitystring | nulllow, medium, high, or critical
riskCategorystring | nullsafe, suspicious, or malicious
analysisModestring | nullAnalysis mode used: quick or deep
processingTimeMsnumber | nullTime taken to complete the scan in milliseconds
confidencenumber | nullModel confidence in the classification (0–1)
securityIssuesCountnumber | nullNumber of distinct security issues found
sensitiveDataCountnumber | nullNumber of sensitive data items detected
detectionClassstring[]List of detected content/threat classes
owaspLlmRisksstring[]OWASP Top 10 for LLM risk identifiers triggered
owaspAgenticThreatsstring[]OWASP agentic threat identifiers triggered
complianceobject | nullCompliance mapping results
errorstring | nullError message when status is failed or error
createdAtstringISO-8601 timestamp when the scan was created
updatedAtstringISO-8601 timestamp of the last status update

Status values

StatusDescription
queuedAccepted and waiting to enter the processing queue
pendingIn the processing queue, not yet started
extractingArchive is being extracted (archive uploads only)
processingActively being scanned
completedScan finished; results available
failedScan failed; see error field
errorUnexpected error during processing; see error field
unsupportedFile type is not supported for analysis