> ## Documentation Index
> Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Analyze All Ready Recordings

> Start analysis of every ready recording

Queues all recordings of the analyzer in status `ready`. `confirm_count` must equal the `total` returned by [List Recordings](https://docs.60db.ai/api-reference/call-analysis/list-recordings.md) with `status=ready`.

> [!NOTE]
>
> Needs `manage` on the analyzer.

## Request

### Headers

**Authorization** `string` *required*

Bearer token with your API key: `Bearer sk_...`

**Content-Type** `string` *required*

application/json

### Path

**agentId** `string` *required*

Analyzer ID (UUID)

### Body

**confirm\_count** `integer` *required*

The number of recordings in status `ready`. 0 or more

## Response

**200**

`committed` is how many recordings this call queued. `starting_now` start right away. `waiting_for_upload` start when their audio is verified. `already_committed` were queued before, so repeating a call commits nothing new. `estimated_credits_usd` is an estimate of the speech-to-text cost. `estimate_partial` is `true` when `duration_unknown_count` recordings have no known length.

Analysis uses paid speech-to-text and model credits.

```json theme={null}
{
  "success": true,
  "data": {
    "committed": 2,
    "starting_now": 2,
    "waiting_for_upload": 0,
    "already_committed": 0,
    "estimated_credits_usd": 0.04,
    "estimate_partial": false,
    "duration_unknown_count": 0
  }
}
```

## Errors

Errors use `{ "success": false, "message": "...", "code": "..." }`. See the [overview](https://docs.60db.ai/api-reference/call-analysis/overview.md#errors) for the codes every route can return.

### This endpoint

| Status | Code | When |
| - | - | - |
| 409 | `COMMIT_CONFIRMATION_MISMATCH` | `confirm_count` is not the server's count |

## Example

```bash cURL theme={null}
curl -X POST 'https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/analyze' \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{"confirm_count": 2}'
```

```javascript JavaScript theme={null}
const res = await fetch('https://api.60db.ai/deep-analytics/analysis-agents/3f1c2d4e-5a6b-4c7d-8e9f-0a1b2c3d4e5f/analyze', {
  method: 'POST',
  headers: {
    Authorization: 'Bearer your-api-key',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "confirm_count": 2
  }),
});
const { success, data, message, code } = await res.json();
if (!success) throw new Error(`${code}: ${message}`);
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.