> 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}/agents/{agentId}

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

## Authentication

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

## Request

### Path parameters

- `accountId` (string, required) — 계정 ID
- `agentId` (string, required) — 에이전트 ID

## Response

### 200

조회 성공

- `agentId` (string, required) — 에이전트 ID
- `name` (string, required)
- `instructions` (string, required) — 에이전트 시스템 프롬프트
- `greeting` (boolean, required) — 통화 연결 직후 에이전트가 먼저 인사할지 여부
- `language` (string, required) — 에이전트 기본 언어
- `model` (string, required) — 현재 에이전트가 사용하는 LLM 모델
- `voice` (string, required, nullable) — 현재 음성 ID
- `voiceProvider` (string, required, nullable) — 음성 출력 제공자
- `voiceModel` (string, required, nullable) — 외부 TTS 모델. 모델 내장 음성에서는 null입니다.
- `configuration` (object, required)
  - `outputMode` (enum, required)
    - Allowed values: `realtime_voice`, `external_tts`, `pipeline`
  - `language` (string, required)
  - `knowledge` (object, required)
    - `enabled` (boolean, required)
    - `topK` (integer, required)
  - `stt` (object, required, nullable)
    - `provider` (enum, required)
      - Allowed values: `openai`
    - `model` (enum, required)
      - Allowed values: `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, `whisper-1`
    - `language` (string, optional, default: ko)
    - `prompt` (string, optional)
    - `temperature` (double, optional)
    - `detect_language` (boolean, optional)
    - `noise_reduction_type` (enum, optional)
      - Allowed values: `near_field`, `far_field`
    - `use_realtime` (boolean, optional)
  - `llm` (object, required)
    - `provider` (string, required)
    - `model` (string, required)
    - `voice` (string, optional)
  - `tts` (object or object, required, nullable)
    - Cartesia
      - `provider` (enum, required)
        - Allowed values: `cartesia`
      - `model` (enum, required)
        - Allowed values: `sonic-3.5`
      - `voice` (string, required)
      - `language` (string, optional, default: ko)
      - `speed` (double, optional)
      - `volume` (double, optional)
    - xAI
      - `provider` (enum, required)
        - Allowed values: `xai`
      - `model` (enum, required)
        - Allowed values: `tts-1`
      - `voice` (string, required)
      - `language` (string, optional, default: ko)
  - `vad` (object, required, nullable)
    - `provider` (enum, required)
      - Allowed values: `silero`
    - `min_silence_duration` (double, optional)
    - `min_speech_duration` (double, optional)
    - `prefix_padding_duration` (double, optional)
    - `max_buffered_speech` (double, optional)
    - `activation_threshold` (double, optional)
    - `sample_rate` (enum, optional)
      - Allowed values: `16000`, `8000`
    - `force_cpu` (boolean, optional)
  - `session` (object, required, nullable)
    - `turn_detection` (enum, optional)
      - Allowed values: `vad`, `stt`
    - `allow_interruptions` (boolean, optional)
    - `min_endpointing_delay` (double, optional)
    - `max_endpointing_delay` (double, optional)
    - `min_interruption_duration` (double, optional)
- `phoneNumbers` (list of string, required) — 이 에이전트에 착신 연결된 전화번호
- `dateCreated` (datetime, required)
- `dateUpdated` (datetime, required)

## Examples

**Response**

```json
{
  "agentId": "cmagent123",
  "name": "고객 지원 에이전트",
  "instructions": "당신은 친절하고 유능한 한국어 음성 에이전트입니다. 사용자의 요청을 주의 깊게 듣고 정확하고 간결하게 답하세요.",
  "greeting": true,
  "language": "ko",
  "model": "gpt-realtime-2.1-mini",
  "voice": "7706804e-ea85-443a-968a-b9bf363bdde8",
  "voiceProvider": "cartesia",
  "voiceModel": "sonic-3.5",
  "configuration": {
    "outputMode": "realtime_voice",
    "language": "string",
    "knowledge": {
      "enabled": true,
      "topK": 1
    },
    "stt": {
      "provider": "openai",
      "model": "gpt-4o-transcribe",
      "language": "ko",
      "prompt": "string",
      "temperature": 0.5,
      "detect_language": true,
      "noise_reduction_type": "near_field",
      "use_realtime": true
    },
    "llm": {
      "provider": "string",
      "model": "string",
      "voice": "string"
    },
    "tts": {
      "language": "ko",
      "model": "sonic-3.5",
      "provider": "cartesia",
      "speed": 1.1,
      "voice": "string",
      "volume": 1.1
    },
    "vad": {
      "provider": "silero",
      "min_silence_duration": 1.1,
      "min_speech_duration": 0.5,
      "prefix_padding_duration": 1.1,
      "max_buffered_speech": 1.1,
      "activation_threshold": 0.5,
      "sample_rate": 16000,
      "force_cpu": true
    },
    "session": {
      "turn_detection": "vad",
      "allow_interruptions": true,
      "min_endpointing_delay": 1.1,
      "max_endpointing_delay": 1.1,
      "min_interruption_duration": 1.1
    }
  },
  "phoneNumbers": [
    "07012340001"
  ],
  "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/accountId/agents/agentId"

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

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

print(response.json())
```

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

	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/accountId/agents/agentId")

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

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

```csharp
using RestSharp;

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