> 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 batch status

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

Retrieve the latest aggregate status for a batch. The response shape mirrors
the create response — `status`, `completed_count`, and `failed_count` update
as child detects progress. Use the `detect_uuids` array to fetch per-file
results via `GET /detect/{uuid}`.

Reference: https://docs.resemble.ai/api-reference/deepfake-detection/get-detect-batch

## Authentication

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

## Request

### Path parameters

- `uuid` (string, required) — Batch UUID returned by `POST /detect/batch`.

## Response

### 200

Batch status

- `success` (boolean, optional)
- `item` (DetectBatch, optional) — Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.

## Errors

### 404 Not Found Error

Batch not found (or not accessible by the authenticated team).

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

## Types

### DetectBatch

Aggregate state for a batch detection job. Returned by `POST /detect/batch` and `GET /detect/batch/{uuid}`.

- `uuid` (string, optional) — Batch UUID.
- `status` (enum, optional) — Aggregate status across all child detects. - `processing` — at least one child detect is still running. - `completed` — every child detect completed successfully. - `partially_failed` — at least one succeeded and at least one failed. - `failed` — every child detect failed.
  - Allowed values: `processing`, `completed`, `partially_failed`, `failed`
- `total_files` (integer, optional) — Number of files in the batch (1–50).
- `completed_count` (integer, optional) — Number of child detects that have completed successfully.
- `failed_count` (integer, optional) — Number of child detects that have failed.
- `created_at` (datetime, optional)
- `detect_uuids` (list of string, optional) — UUIDs of the child detects. Use `GET /detect/{uuid}` to retrieve per-file results.

## Examples

**Response**

```json
{
  "success": true,
  "item": {
    "uuid": "string",
    "status": "processing",
    "total_files": 1,
    "completed_count": 1,
    "failed_count": 1,
    "created_at": "2024-01-15T09:30:00Z",
    "detect_uuids": [
      "string"
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://app.resemble.ai/api/v2/detect/batch/uuid"

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

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

print(response.json())
```

```javascript
const url = 'https://app.resemble.ai/api/v2/detect/batch/uuid';
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/detect/batch/uuid"

	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/detect/batch/uuid")

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/detect/batch/uuid")
  .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/detect/batch/uuid', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://app.resemble.ai/api/v2/detect/batch/uuid");
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/detect/batch/uuid")! 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()
```