Get Answer
GET https://app.resemble.ai/api/v2/detects/{uuid}/intelligence/{question_uuid}
Retrieve the status and answer for a previously submitted question. Poll this endpoint until status reaches completed or failed.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
uuid | string | Yes | UUID of the detection report. |
question_uuid | string | Yes | UUID of the question returned by the Ask endpoint. |
Example
$ curl 'https://app.resemble.ai/api/v2/detects/550e8400-e29b-41d4-a716-446655440000/intelligence/650e8400-e29b-41d4-a716-446655440001' \ > -H 'Authorization: Bearer YOUR_API_TOKEN'
Response — Pending / Processing
1 { 2 "success": true, 3 "item": { 4 "uuid": "650e8400-e29b-41d4-a716-446655440001", 5 "detect_uuid": "550e8400-e29b-41d4-a716-446655440000", 6 "query": "Summarize the detection results in plain language.", 7 "answer": null, 8 "status": "processing", 9 "error_message": null, 10 "created_at": "2024-01-15T10:35:00Z", 11 "updated_at": "2024-01-15T10:35:05Z" 12 } 13 }
Response — Completed
1 { 2 "success": true, 3 "item": { 4 "uuid": "650e8400-e29b-41d4-a716-446655440001", 5 "detect_uuid": "550e8400-e29b-41d4-a716-446655440000", 6 "query": "Summarize the detection results in plain language.", 7 "answer": "The audio file was classified as fake with high confidence. The aggregated score of 0.80 across all analyzed chunks indicates consistent synthetic markers throughout the recording. Audio source tracing identified the likely origin as Resemble AI. The intelligence analysis detected an adult male speaker with a confident tone.", 8 "status": "completed", 9 "error_message": null, 10 "created_at": "2024-01-15T10:35:00Z", 11 "updated_at": "2024-01-15T10:35:12Z" 12 } 13 }
Response — Failed
1 { 2 "success": true, 3 "item": { 4 "uuid": "650e8400-e29b-41d4-a716-446655440001", 5 "detect_uuid": "550e8400-e29b-41d4-a716-446655440000", 6 "query": "Summarize the detection results in plain language.", 7 "answer": null, 8 "status": "failed", 9 "error_message": "Unable to generate answer. Please try again.", 10 "created_at": "2024-01-15T10:35:00Z", 11 "updated_at": "2024-01-15T10:35:10Z" 12 } 13 }
Response Fields
| Field | Type | Description |
|---|---|---|
uuid | string | Unique identifier for the question. |
detect_uuid | string | UUID of the associated detection report. |
query | string | The original question that was submitted. |
answer | string | null | The generated answer. null until status is completed. |
status | string | One of pending, processing, completed, or failed. |
error_message | string | null | Error details when status is failed. null otherwise. |
created_at | string | ISO 8601 timestamp when the question was submitted. |
updated_at | string | ISO 8601 timestamp of the last status change. |
Error Response (404)
1 { 2 "success": false, 3 "message": "Question not found" 4 }
