> 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}/calls

계정의 통화 로그를 페이지네이션으로 조회합니다.

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

## Authentication

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

## Request

### Path parameters

- `accountId` (string, required) — 계정 ID

### Query parameters

- `status` (enum, optional) — 통화 상태로 필터링. 실패 사유를 더 세분해 조회하려면 `hangupCause` 를 사용하세요.
  - Allowed values: `queued`, `ringing`, `in-progress`, `completed`, `busy`, `no-answer`, `failed`, `canceled`, `rejected`
- `from` (string or list of string, optional) — 발신번호로 필터링. 단일 값 또는 배열 (?from=070...&from=070...)
- `to` (string or list of string, optional) — 수신번호로 필터링. 단일 값 또는 배열 (?to=010...&to=010...)
- `number` (string or list of string, optional) — 관여 번호로 필터링 (from OR to 매칭). 해당 번호가 발신 또는 수신에 포함된 통화를 조회합니다. 단일 값 또는 배열
- `since` (datetime, optional) — 이 시각 **이후**(포함) 시작된 통화만. ISO 8601.
- `until` (datetime, optional) — 이 시각 **이전**(미포함) 시작된 통화만. ISO 8601. `since` 와 함께 쓰면 구간이 겹치지 않게 이어붙일 수 있습니다.
- `minDuration` (integer, optional) — 통화 시간(초) 하한. 이 값 **포함**.
- `maxDuration` (integer, optional) — 통화 시간(초) 상한. 이 값 **포함**. `minDuration=0&maxDuration=0` 이면 0초 통화만.
- `hangupCause` (string or list of string, optional) — 종료 사유로 필터링. `status` 가 실패를 한 덩어리로 묶는 것과 달리 **왜** 끝났는지로 가릅니다 — 채널 초과(`concurrency_limit_exceeded`)·결번(`invalid_number`)· ClawOps 오류(`app_error`) 등. 전체 목록은 [통화 실패 사유](/docs/call-failure-causes). 단일 값 또는 배열.
- `pageSize` (integer, optional, default: 20) — 페이지당 항목 수 (최대 100)
- `page_size` (integer, optional, deprecated) — `pageSize` 의 별칭(하위호환). 신규 연동은 `pageSize` 를 사용하세요.
- `limit` (integer, optional, deprecated) — `pageSize` 의 별칭(하위호환). 신규 연동은 `pageSize` 를 사용하세요.
- `page` (integer, optional, default: 0) — 페이지 번호 (0부터 시작)

## Response

### 200

통화 목록

- `data` (list of object, optional)
  - `callId` (string, optional)
  - `status` (enum, optional) — 통화 상태. 진행 중: queued(발신 대기) / ringing(벨) / in-progress(통화 중). 종료 상태(실제 종료 사유): completed(응답 후 정상 종료) / no-answer(벨은 울렸으나 무응답, Timeout 초과로 발신 취소) / busy(통화중) / rejected(수신 거절) / canceled(응답 전 발신 측 취소) / failed(시스템·망 오류). completed 만이 통화가 실제로 연결됐음을 의미합니다.
    - Allowed values: `queued`, `ringing`, `in-progress`, `completed`, `failed`, `busy`, `no-answer`, `canceled`, `rejected`
  - `to` (string, optional)
  - `from` (string, optional)
  - `direction` (enum, optional)
    - Allowed values: `outbound`, `inbound`
  - `duration` (integer, optional, nullable) — 통화 시간 (초)
  - `accountId` (string, optional)
  - `answeredBy` (enum, optional, nullable) — AMD(MachineDetection) 결과. MachineDetection 을 켠 발신 통화에만 값이 있으며, 사람 응답=human, 자동응답기/음성사서함=machine, 판정 불가=unknown. 미사용 시 null.
    - Allowed values: `human`, `machine`, `unknown`
  - `recordingUrl` (string, optional, nullable) — 녹음 다운로드 경로 (녹음이 있는 통화만)
  - `hangupCause` (string, optional, nullable) — 통화 종료 사유. `status` 가 왜 그렇게 끝났는지를 구분합니다. 종료 전이거나 사유 미상이면 null. 네 갈래로 나뉩니다 — 번호 자체가 문제라 재시도해도 소용없는 것(`invalid_number` 등), 일시적이라 재시도 가치가 있는 것(`no_answer`·`user_busy` 등), 번호가 아니라 **계정** 문제인 것(`concurrency_limit_exceeded`·`subscription_inactive` 등), ClawOps 측 오류 (`app_error`·`call_stuck`). **전체 목록과 재시도 판단 기준은 [통화 실패 사유](/docs/call-failure-causes) 가 정본입니다.** 여기 값을 나열하지 않는 이유: 사유가 늘 때마다 spec·문서·대시보드가 각각 갱신돼야 하는데 한 곳만 빠지면 조용히 어긋난다(실제로 그렇게 어긋난 적이 있다).
  - `hangupCauseQ850` (integer, optional, nullable) — 통신망 Q.850 cause code. 1·5·28=결번, 16=정상해제, 17=통화중, 18/19/20=무응답, 21=거절, 38=망장애. 사유 미상이면 null.
  - `sipResponseCode` (integer, optional, nullable) — 종료를 유발한 SIP 응답코드 (404=없는 번호, 486=통화중, 500=망 오류 등). 응답코드 없이 끝났으면 null.
  - `hangupSource` (enum, optional, nullable) — 종료 책임 주체. carrier(통신망) / callee(수신자) / caller(발신자) / app·system(ClawOps 측 오류 — 이 경우 재시도를 권장합니다).
    - Allowed values: `carrier`, `callee`, `caller`, `app`, `system`
  - `transferTo` (string, optional, nullable) — 통화 전환 대상 번호 (전환이 없으면 null)
  - `transferStatus` (enum, optional, nullable) — 통화 전환 결과
    - Allowed values: `completed`, `failed`, `no-answer`, `busy`, `canceled`
  - `transferDuration` (integer, optional, nullable) — 전환 후 통화 시간 (초)
  - `transferHangupCauseQ850` (integer, optional, nullable) — 전환 leg 의 통신망 Q.850 cause (예: 16=정상해제, 17=통화중, 19=무응답, 21=거절, 38=망장애). 통신망이 SIP 5xx 로 보낸 실패의 실제 사유로 교정된 값. 사유 미상이면 null.
  - `transferSipResponseCode` (integer, optional, nullable) — 전환 leg 의 실제 SIP 응답코드 (예 500). 사유 미상이면 null.
  - `transferReasonText` (string, optional, nullable) — 전환 실패 원본 진단 텍스트. 사유 미상이면 null.
  - `transfers` (list of object, optional) — 전환 leg 정본 체인(sequence 순). 다단계/재시도 전환의 전체 이력을 제공한다. 위 transfer* 단일 필드는 하위호환용 대표 leg(마지막 completed). 단건 조회에만 포함되며(리스트 응답엔 생략), 전환이 없었던 통화는 빈 배열.
    - `sequence` (integer, optional) — 통화 내 전환 순번(1부터)
    - `to` (string, optional, nullable)
    - `mode` (string, optional, nullable) — blind | warm | refer
    - `destinationType` (string, optional, nullable) — pstn | sip | number
    - `status` (string, optional, nullable) — initiated|ringing|connected|completed|failed|no-answer|busy|canceled|interrupted
    - `duration` (integer, optional, nullable) — connected→종료 초(관측용)
    - `billable` (boolean, optional) — 과금 대상 여부(통화당 대표 leg 1건만 true)
    - `billableDuration` (integer, optional, nullable) — 과금 대상 초(completed 대표 leg 만)
    - `hangupCauseQ850` (integer, optional, nullable)
    - `sipResponseCode` (integer, optional, nullable)
    - `reasonText` (string, optional, nullable)
    - `startedAt` (datetime, optional, nullable)
    - `connectedAt` (datetime, optional, nullable)
    - `endedAt` (datetime, optional, nullable)
  - `dateCreated` (datetime, optional)
  - `dateUpdated` (datetime, optional, nullable) — 통화 종료 시각
- `meta` (object, optional)
  - `page` (integer, optional) — 현재 페이지
  - `pageSize` (integer, optional) — 페이지 크기
  - `total` (integer, optional) — 전체 건수

## Examples

**Response**

```json
{
  "data": [
    {
      "callId": "CAabcdef1234567890",
      "status": "queued",
      "to": "01012345678",
      "from": "07052358010",
      "direction": "outbound",
      "duration": 30,
      "accountId": "AC1a2b3c4d",
      "answeredBy": "human",
      "recordingUrl": "/v1/accounts/AC1a2b3c4d/recordings/CAabcdef1234567890",
      "hangupCause": "invalid_number",
      "hangupCauseQ850": 1,
      "sipResponseCode": 404,
      "hangupSource": "carrier",
      "transferTo": "01012345678",
      "transferStatus": "completed",
      "transferDuration": 60,
      "transferHangupCauseQ850": 16,
      "transferSipResponseCode": 500,
      "transferReasonText": "CS_NORMAL_RELEASE",
      "transfers": [
        {
          "sequence": 1,
          "to": "string",
          "mode": "string",
          "destinationType": "string",
          "status": "string",
          "duration": 1,
          "billable": true,
          "billableDuration": 1,
          "hangupCauseQ850": 1,
          "sipResponseCode": 1,
          "reasonText": "string",
          "startedAt": "2024-01-15T09:30:00Z",
          "connectedAt": "2024-01-15T09:30:00Z",
          "endedAt": "2024-01-15T09:30:00Z"
        }
      ],
      "dateCreated": "2024-01-15T09:30:00Z",
      "dateUpdated": "2024-01-15T09:30:00Z"
    }
  ],
  "meta": {
    "page": 1,
    "pageSize": 1,
    "total": 1
  }
}
```

**SDK Code**

```python
import requests

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

querystring = {"from":"07052358010","hangupCause":"concurrency_limit_exceeded","limit":"100","maxDuration":"60","minDuration":"10","number":"07012345678","page":"0","pageSize":"20","page_size":"50","since":"2026-08-01T00:00:00Z","status":"completed","to":"01012345678","until":"2026-09-01T00:00:00Z"}

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

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

print(response.json())
```

```javascript
const url = 'https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z';
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/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z"

	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/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z")

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/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z")
  .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/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://api.claw-ops.com/v1/accounts/AC1a2b3c4d/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z");
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/calls?from=07052358010&hangupCause=concurrency_limit_exceeded&limit=100&maxDuration=60&minDuration=10&number=07012345678&page=0&pageSize=20&page_size=50&since=2026-08-01T00%3A00%3A00Z&status=completed&to=01012345678&until=2026-09-01T00%3A00%3A00Z")! 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()
```