> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.resemble.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.resemble.ai/_mcp/server.

# Get investigation run

GET https://app.resemble.ai/api/v2/agents/{uuid}/runs/{run_id}

Retrieve a persisted investigation run, including its replay transcript
and the exact configuration and memory snapshots used by the investigation.


Reference: https://docs.resemble.ai/api-reference/detect-agents/get-detect-agent-investigation-run

## Authentication

- `Authorization` header (bearer token, required) — API key from https://app.resemble.ai/hub/api

## Request

### Path parameters

- `uuid` (string, required) — Stable Detect Agent identifier returned by `GET /agents`.
- `run_id` (string, required) — Run UUID returned by a `run_started` event or run-list response.

## Response

### 200

Investigation run details

- `success` (boolean, required)
- `item` (DetectAgentRun, required)

## Errors

### 401 Unauthorized Error

Missing or invalid API key

- `success` (boolean, optional)
- `error` (string, optional)
- `errors` (map from string to list of string, optional)
- `message` (string, optional)

### 403 Forbidden Error

The account does not have Detect Agents access

- `success` (boolean, optional)
- `error` (string, optional)
- `errors` (map from string to list of string, optional)
- `message` (string, optional)

### 404 Not Found Error

Detect Agent or investigation run not found

- `success` (boolean, optional)
- `error` (string, optional)
- `errors` (map from string to list of string, optional)
- `message` (string, optional)

### 502 Bad Gateway Error

Detect Agents service unavailable

- `success` (boolean, optional)
- `error` (string, optional)
- `errors` (map from string to list of string, optional)
- `message` (string, optional)

## Types

### DetectAgentRun

- `has_media` (boolean, required) — Whether primary uploaded media is attached to this run.
- `inputs` (DetectAgentRunSummaryInputs, required) — Submitted investigation inputs. Null-valued fields are omitted.
- `result` (DetectAgentRunResult, required) — Compact result summary derived from the investigation transcript.
- `status` (enum, required)
  - Allowed values: `running`, `completed`, `error`
- `uuid` (string, required) — Investigation run identifier.
- `config_snapshot` (map from string to any, optional) — Exact managed configuration used for the investigation.
- `created_at` (datetime, optional, nullable)
- `error` (string, optional, nullable)
- `media_url` (string, optional, nullable) — Relative URL for uploaded primary media, or null when the run used a public URL.
- `memory_after` (string, optional)
- `memory_before` (string, optional)
- `transcript` (list of map from string to any, optional) — Public investigation events. Internal cost events are omitted.
- `updated_at` (datetime, optional, nullable)

### DetectAgentRunSummaryInputs

Submitted investigation inputs. Null-valued fields are omitted.

- `query` (string, optional)
- `url` (string, optional)
- `filename` (string, optional)
- `check_urls` (string, optional)

### DetectAgentRunResult

Compact result summary derived from the investigation transcript.

- `verdict` (DetectAgentRunResultVerdict, optional, nullable)
- `recommended_action` (string, optional, nullable)
- `confidence` (double, optional, nullable)
- `label` (string, optional, nullable)
- `score` (double, optional, nullable)
- `agent_ran` (boolean, optional, nullable)

### DetectAgentRunResultVerdict

- `forced` (boolean, optional)
- `excerpt` (string, optional)

## Examples

**Response**

```json
{
  "success": true,
  "item": {
    "has_media": true,
    "inputs": {
      "query": "string",
      "url": "string",
      "filename": "string",
      "check_urls": "string"
    },
    "result": {
      "verdict": {
        "forced": true,
        "excerpt": "string"
      },
      "recommended_action": "string",
      "confidence": 1.1,
      "label": "string",
      "score": 1.1,
      "agent_ran": true
    },
    "status": "running",
    "uuid": "string",
    "config_snapshot": {},
    "created_at": "2024-01-15T09:30:00Z",
    "error": "string",
    "media_url": "string",
    "memory_after": "string",
    "memory_before": "string",
    "transcript": [
      {}
    ],
    "updated_at": "2024-01-15T09:30:00Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.resemble.ai/api/v2/agents/verify_document/runs/run_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```