Skip to navigation

Get Detection Result

GET https://app.resemble.ai/api/v2/detect/{uuid}

Retrieve the deepfake detection result using the provided UUID. Returns the final metrics for the detection job. Media-type-specific keys appear depending on the input. For a PDF, item.document contains the counts, per-image scores and locations, and reasons for skipped images. Fetch an image UUID to read its full metrics and Intelligence report.

curl --request GET 'https://app.resemble.ai/api/v2/detect/DETECT_UUID' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

Query Parameters

FieldTypeDefaultDescription
expertsbooleanfalseWhen true, return every successfully completed Intelligence result in an array. When omitted or false, return one completed result when available; otherwise, return the current processing or failed result.

item.status reports the requested Detect work. When detect_watermark=true was used, an otherwise successful Detect remains processing until the nested Watermark analysis is terminal. A core detection failure still reports failed. Detect and Intelligence run separately, so item.status: "completed" does not mean Intelligence has finished.

When experts is omitted or false, inspect item.intelligence.status and item.intelligence.description for the returned Intelligence result. It can still be processing with a null description after Detect completes, and its UUID can change as additional Intelligence results finish. With experts=true, the array contains only successfully completed results available at the time of the request; an empty array means no result has completed successfully yet, not that Intelligence was not requested.

Response Details

  • status - Status of the requested Detect work (processing, completed, or failed). An otherwise successful Detect waits for requested Watermark analysis; a core detection failure still reports failed. For PDF completion with Intelligence, see PDF callback timing.
  • metrics - For audio analysis, includes a label (fake/real), score array with predictions per chunk, consistency field (for audio/video), and aggregated_score
  • image_metrics - Present for still images, contains type, label, score, visualization image (if requested), and nested analysis children. When the image is scored fake, it also includes attack, the most likely way the image was made or edited, and localized. hmap_kind says what the visualization image highlights. See Image Attack Type
  • video_metrics - Present for videos. Nests the video result, one result per analyzed chunk (with start_time and end_time), and per-frame results with timestamps and certainty scores. When the video is scored fake, the video result and each fake chunk include attack, the most likely way the fake was made. See Video Attack Type
  • document - Present for PDFs. Contains coverage, counts, per-image results, and skip reasons. See PDF File Results.
  • modality - For video detects, which components were requested: audio, video, or all (default). When a single modality was requested, the skipped component’s metrics are absent (video_metrics for audio, metrics for video) and the detect still reaches completed
  • face_only - Effective face-only setting. It is true only for video detects that included visual analysis; audio, image, and audio-only video detects return false
  • audio_source_tracing - Present when audio is labeled as fake. Contains label identifying the likely source (e.g., resemble_ai, elevenlabs) or real if audio is not synthetic, and error_message (null on success)
  • intelligence - Present when intelligence analysis was requested. By default, contains one Intelligence object with uuid, status (processing, completed, or failed), error_message, description, created_at, and detect_uuid. The API returns a completed result when one is available; if none have completed successfully, it returns the current processing or failed result. With experts=true, this field is an array containing all successfully completed results and excludes processing or failed results.
  • watermark - Present only when detect_watermark=true was requested. Contains status plus completed Resemble detector metrics and the optional synthid boolean. A failed child includes error_message and does not change the deepfake verdict.
  • c2pa_manifest - Present for audio, image, and video detects after Content Credentials verification completes. validation_state can be Valid, NotPresent, or Unavailable; Unavailable means C2PA verification could not complete, but the detect result is still valid.
  • zero_retention_mode - Boolean indicating whether Zero Retention Mode was enabled for this detect
  • file_deleted_at - ISO 8601 timestamp of when the file was purged, or null if not yet deleted. Use this to determine whether the source media has been purged from storage.
  • audio_url - Alias of url. Both are null when Zero Retention Mode is enabled

Retrieve All Successful Intelligence Results

curl --request GET 'https://app.resemble.ai/api/v2/detect/DETECT_UUID?experts=true' \
-H 'Authorization: Bearer YOUR_API_TOKEN'

With experts=true, item.intelligence contains every successfully completed Intelligence result available at the time of the request. The array is empty when no result has completed successfully:

{
"success": true,
"item": {
"uuid": "DETECTION_UUID",
"status": "completed",
"intelligence": [
{
"uuid": "INTELLIGENCE_UUID_A",
"status": "completed",
"error_message": null,
"description": {
"speaker_info": "Adult speaker",
"language": "English"
},
"created_at": "2024-01-15T10:30:05Z",
"detect_uuid": "DETECTION_UUID"
},
{
"uuid": "INTELLIGENCE_UUID_B",
"status": "completed",
"error_message": null,
"description": {
"speaker_info": "Adult speaker",
"language": "English"
},
"created_at": "2024-01-15T10:30:06Z",
"detect_uuid": "DETECTION_UUID"
}
]
}
}

When experts is omitted or false, the singular Intelligence UUID may change across polls as additional results finish. Detect callbacks also contain a single Intelligence result and allow Intelligence processing to continue up to the callback timeout before choosing what to include. The callback includes a completed result when one is available, or the current processing or failed result when none have completed successfully. A callback is not resent if another Intelligence result completes later.

{
"success": true,
"item": {
"uuid": "DETECTION_UUID",
"media_type": "audio",
"status": "completed",
"modality": "all",
"face_only": false,
"metrics": {
"label": "fake",
"score": ["0.9", "0.8", "0.7"],
"consistency": "0.85",
"aggregated_score": "0.566"
},
"image_metrics": {
"ifl": {
"score": 1,
"heatmap": "https://..."
},
"type": "FinalResult",
"label": "Fake",
"image": "https://...",
"score": 1,
"children": [],
"attack": [
{ "code": "M2", "name": "Splice", "prob": 0.708 },
{ "code": "L1", "name": "Region replace / inpaint", "prob": 0.1986 },
{ "code": "L2", "name": "Erase / object removal", "prob": 0.0204 }
],
"localized": true,
"hmap_kind": "tamper"
},
"video_metrics": {
"label": "Fake",
"score": 0.9,
"certainty": 0.9,
"treeview": "...",
"children": [
{
"type": "VideoResult",
"conclusion": "Fake",
"score": 0.99,
"certainty": 0.9,
"attack": [
{ "code": "F1", "name": "Face swap", "prob": 0.9976 },
{ "code": "F5", "name": "Audio-driven portrait animation", "prob": 0.0011 },
{ "code": "L3", "name": "Object insertion", "prob": 0.0006 }
],
"children": [
{
"type": "VideoChunkResult",
"conclusion": "Fake",
"score": 0.99,
"certainty": 0.98,
"chunk_index": 0,
"start_time": 0.0,
"end_time": 3.9,
"attack": [
{ "code": "F1", "name": "Face swap", "prob": 0.9976 },
{ "code": "F5", "name": "Audio-driven portrait animation", "prob": 0.0016 },
{ "code": "L3", "name": "Object insertion", "prob": 0.0004 }
],
"children": [
{
"type": "VideoFrameResult",
"conclusion": "Fake",
"score": 0.9,
"certainty": 0.95,
"timestamp": 0.23,
"children": [
{
"type": "RegionResult",
"conclusion": "Fake",
"score": 0.9,
"certainty": 0.995
}
]
}
]
}
]
}
]
},
"audio_source_tracing": {
"label": "resemble_ai",
"error_message": null
},
"intelligence": {
"uuid": "INTELLIGENCE_UUID",
"description": "Adult male speaker with confident tone discussing...",
"created_at": "2024-01-15T10:30:05Z",
"detect_uuid": "DETECTION_UUID"
},
"c2pa_manifest": {
"validation_state": "NotPresent"
},
"watermark": {
"status": "completed",
"metrics": {
"overall_status": "absent",
"detected_model_versions": [],
"coverage_complete": true,
"has_watermark": {
"channel_0": false
},
"confidence": 0.0,
"model_results": [
{
"model_version": "perth_v1",
"status": "succeeded",
"detected": false,
"has_watermark": {
"channel_0": false
},
"confidence": 0.0
},
{
"model_version": "perth_v2",
"status": "succeeded",
"detected": false,
"has_watermark": {
"channel_0": false
},
"confidence": 0.0
}
],
"synthid": false
}
},
"url": "https://storage.example.com/audio/suspicious.wav",
"audio_url": "https://storage.example.com/audio/suspicious.wav",
"filename": "suspicious.wav",
"duration": 8.2,
"zero_retention_mode": false,
"file_deleted_at": null,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:05Z"
}
}
  • For audio analysis, metrics reflects the aggregate prediction and confidence per chunk.
  • image_metrics appears for still images and contains visualization assets if requested. A fake image also includes attack and localized, and hmap_kind says what the visualization highlights; the example attack list is trimmed to three entries.
  • video_metrics nests the video result, per-chunk results, and per-frame results with timestamps and certainty percentages. A fake video result and each fake chunk also include attack; the example lists are trimmed to three entries.
  • audio_source_tracing is only returned when audio is labeled as fake. Use the standalone Audio Source Tracing endpoints to access all source tracing reports.
  • watermark is omitted entirely for legacy requests where watermark analysis was omitted or false. If present, metrics.synthid is omitted when SynthID was unavailable; omission must not be interpreted as a negative verdict.

PDF File Results

Read item.document.images for images sent for analysis and item.document.skipped for images skipped during extraction. Both use the same one-based page and index. The index counts embedded pictures on that page, including skipped pictures. Masks are part of their image and have no separate entry.

  • Coverage. page_count is the document length. pages_selected is the normalized selection, or null when all pages were selected. pages_not_scanned counts selected, existing pages beyond the scan limit. pages_missing counts requested pages beyond the end of the PDF.
  • Progress. document.state moves through pending, extracting, and analyzing before reaching completed or failed. Counts can be null while processing. progress.settled includes both successful and failed image detections.
  • Image results. For a completed image, score is the image model’s score and result is the final classification (fake, uncertain, or real). Use intelligence_override to see whether Intelligence changed the verdict. A processing or failed image has a null score and result. For a failure, read its error_message.
  • Document status. A PDF can complete with a mix of successful and failed images, or with zero analyzable images. Inspect the counts to distinguish these outcomes. If extraction fails or every attempted image fails, the PDF status is failed. For example, a PDF that requires a password or forbids image extraction can fail after submission. Read item.error_message for the reason.

Skipped images

reasonMeaning
bilevelA one-bit or fax-encoded image, commonly scanned text or line art.
too_smallThe image is under 64 pixels wide or high.
too_largeThe image exceeds 40 million pixels, the extracted image exceeds 20 MB, or adding it would exceed the 500 MB total extraction budget.
duplicateAn earlier selected image uses the same PDF image object.
over_limitThe request has reached its image cap.
extraction_failedDetect could not extract a usable image.

skipped_count includes every skipped image. The API returns details for up to 100 skips. A skipped entry has a location and a reason only.

Use an image UUID with this endpoint to retrieve its full image_metrics and any requested intelligence report. Check the image’s intelligence.status to see whether that report completed. An Intelligence failure can coexist with a successful image score. Use the image UUID for follow-up questions and feedback.

For the full response shape, see the PDF response example. To fetch all extracted image detections in document order, use List Detects.

Zero Retention Mode Response

When zero_retention_mode was enabled on the original request, media URLs are redacted and the filename is tokenized:

{
"success": true,
"item": {
"uuid": "DETECTION_UUID",
"media_type": "audio",
"status": "completed",
"face_only": false,
"metrics": {
"label": "fake",
"score": ["0.9", "0.8", "0.7"],
"consistency": "0.85",
"aggregated_score": "0.566"
},
"url": null,
"audio_url": null,
"filename": "redacted_abc123def4567890abcd1234.wav",
"duration": 8.2,
"c2pa_manifest": {
"validation_state": "NotPresent"
},
"zero_retention_mode": true,
"file_deleted_at": "2024-01-15T10:31:00Z",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:05Z"
}
}

Error Response (404)

{
"success": false,
"message": "Detect not found"
}