> 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/{callId}

특정 통화의 상세 정보를 조회합니다.

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

## Authentication

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

## Request

### Path parameters

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

## Response

### 200

통화 정보

- `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) — 통화 종료 시각

## Examples

**Response**

```json
{
  "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"
}
```

**SDK Code**

```python
import requests

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

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

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

print(response.json())
```

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

	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/CAabcdef1234567890")

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

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

```csharp
using RestSharp;

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