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

# 배치 목록 조회

GET https://api.claw-ops.com/v1/accounts/{accountId}/call-batches

Reference: https://docs.claw-ops.com/api-레퍼런스/claw-ops-api/call-batches/list-call-batches

## Authentication

- `Authorization` header (bearer token, required) — API Key를 Bearer 토큰으로 전달

## Request

### Path parameters

- `accountId` (string, required)

## Response

### 200

조회 성공

- `callBatches` (list of object, optional)
  - `batchId` (string, optional)
  - `name` (string, optional)
  - `status` (enum, optional) — running=발신 중 · paused=일시정지(진행 중 통화는 유지) · canceled=취소 · completed=완료 · expired=EndAt 경과로 종료
    - Allowed values: `draft`, `scheduled`, `running`, `paused`, `completed`, `canceled`, `expired`
  - `from` (string, optional)
  - `callFlowId` (string, optional)
  - `agentId` (string, optional)
  - `url` (string, optional)
  - `maxConcurrency` (integer, optional)
  - `pacingPerMinute` (integer, optional)
  - `timezone` (string, optional)
  - `startAt` (datetime, optional, nullable)
  - `endAt` (datetime, optional, nullable)
  - `machineDetection` (enum, optional, nullable) — 자동응답기 감지 모드. 사용하지 않는 배치는 null 입니다.
    - Allowed values: `Enable`, `Hangup`
  - `rounds` (list of object, optional) — 발신 차수. 배열 인덱스가 곧 차수이고 rounds[0] 이 1차 발신입니다. 길이 1 = 한 번 걸고 끝. 각 차수가 자기 시간창(windows)을 가집니다.
    - `after` (integer, optional) — 직전 차수를 마무리한 뒤 기다릴 시간(분). 1차에는 없습니다.
    - `on` (list of string, optional) — 직전 통화가 이 결과일 때만 진행. 1차에는 없습니다.
    - `windows` (list of object, optional) — 이 차수의 발신 가능 시간대. 없으면 법정 허용 시간 전체입니다.
      - `days` (list of integer, optional)
      - `start` (string, optional)
      - `end` (string, optional)
  - `messagePolicy` (object, optional, nullable) — 끝내 통화가 안 된 분께 보낼 문자. null 이면 보내지 않습니다.
    - `onFirstFail` (object, optional)
      - `body` (string, optional)
    - `onFinalFail` (object, optional)
      - `body` (string, optional)
  - `warnings` (list of string, optional) — **생성 응답에만** 포함됩니다. 거절할 정도는 아니지만 알아야 하는 것들 — 발신번호에 문자 전송 이력이 없거나(문자 발신번호 미등록 가능성), 남은 문자 한도가 수신자 수보다 적은 경우입니다.
  - `dateCreated` (datetime, optional)
  - `dateUpdated` (datetime, optional)
  - `counts` (map from string to integer, optional) — 상태별 수신자 수 (pending·dialing·done·failed·canceled·expired)

## Examples

**Response**

```json
{
  "callBatches": [
    {
      "batchId": "clx1a2b3c4d5e",
      "name": "7월 예약 확인",
      "status": "draft",
      "from": "07052358010",
      "callFlowId": "string",
      "agentId": "string",
      "url": "string",
      "maxConcurrency": 1,
      "pacingPerMinute": 1,
      "timezone": "string",
      "startAt": "2024-01-15T09:30:00Z",
      "endAt": "2024-01-15T09:30:00Z",
      "machineDetection": "Enable",
      "rounds": [
        {
          "after": 1,
          "on": [
            "string"
          ],
          "windows": [
            {
              "days": [
                1
              ],
              "start": "string",
              "end": "string"
            }
          ]
        }
      ],
      "messagePolicy": {
        "onFirstFail": {
          "body": "string"
        },
        "onFinalFail": {
          "body": "string"
        }
      },
      "warnings": [
        "07052358010 번호로 문자가 전송된 이력이 없습니다. 문자 발신번호 등록은 음성과 별개 절차라, 등록되지 않은 번호는 발송 요청은 성공해도 통신사에서 전량 거절될 수 있습니다."
      ],
      "dateCreated": "2024-01-15T09:30:00Z",
      "dateUpdated": "2024-01-15T09:30:00Z",
      "counts": {
        "dialing": 3,
        "done": 77,
        "pending": 120
      }
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches"

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

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

print(response.json())
```

```javascript
const url = 'https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches';
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://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches"

	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://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches")

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://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches");
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://api.claw-ops.com/v1/accounts/AC1a2b3c4d/call-batches")! 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()
```