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

통화 전사 상태와 완료된 경우 segment 배열까지 한 번에 반환합니다. 상태는 completed / pending / failed / not_requested 로 구분됩니다.

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

## Authentication

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

## Request

### Path parameters

- `accountId` (string, required)
- `callId` (string, required)

## Response

### 200

전사 상태 + (completed 시) segments

- `object or object or object or object`
  - object
    - `status` (enum, optional)
      - Allowed values: `completed`
    - `callId` (string, optional)
    - `segmentCount` (integer, optional)
    - `segments` (list of object, optional)
      - `speaker` (string, optional) — 화자 식별자. 2026-08 이후 전사는 `speaker_0`, `speaker_1`, … 형식이며 전환(transfer) 통화처럼 참여자가 셋 이상이면 그만큼 늘어납니다. 그 이전 전사는 `AGENT` / `CUSTOMER` 값이 그대로 남아 있으므로 두 형식을 모두 처리해야 합니다. 화자와 역할(AI/상담원/고객)의 연결은 보장하지 않습니다.
      - `start` (double, optional)
      - `end` (double, optional)
      - `text` (string, optional)
  - object
    - `status` (enum, optional)
      - Allowed values: `pending`
    - `startedAt` (datetime, optional)
  - object
    - `status` (enum, optional)
      - Allowed values: `failed`
    - `stage` (enum, optional, nullable) — 실패가 발생한 단계.
      - Allowed values: `download`, `runtime`, `transcription`, `trigger`, `recover`, `audio`
    - `error` (string, optional, nullable) — 실패 사유 **코드**. 고객이 읽고 행동할 수 있는 값만 내보내며, 엔진·벤더의 원본 오류 문구는 포함하지 않습니다. 현재 값: `transcription_failed`(전사 실패), `no_recording`(녹음 없음), `no_audio`(녹음은 있으나 음성 데이터가 비어 있음). `no_recording`·`no_audio` 는 **재요청해도 결과가 같습니다**.
  - object
    - `status` (enum, optional)
      - Allowed values: `not_requested`

## Examples

**Response**

```json
{
  "callId": "string",
  "segmentCount": 1,
  "segments": [
    {
      "end": 1.1,
      "speaker": "speaker_0",
      "start": 1.1,
      "text": "string"
    }
  ],
  "status": "completed"
}
```

**SDK Code**

```python
import requests

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

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/CA1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6/transcript';
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/CA1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6/transcript"

	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/CA1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6/transcript")

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

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

```csharp
using RestSharp;

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