> This is a page from the ElevenLabs documentation. For an index of the documentation, fetch https://elevenlabs.io/docs/llms.txt.

# 에이전트 대화 티켓 목록

GET https://api.elevenlabs.io/v1/convai/agents/{agent_id}/triage-tickets

에이전트의 문제를 나열합니다. 우선순위로 정렬하지 않는 한 생성일 최신순으로 표시됩니다. 이는 에이전트가 최종 사용자를 위해 생성하는 티켓이 아니라, 대화에서의 에이전트 자체 성능에 관한 문제(Architect와 함께 해결할 문제)입니다.

Reference: https://elevenlabs.io/docs/api-reference/issues/list

## Servers

- `https://api.elevenlabs.io` (Production, default)
- `https://api.us.elevenlabs.io` (Production US)
- `https://api.eu.residency.elevenlabs.io` (Production EU)
- `https://api.in.residency.elevenlabs.io` (Production India)
- `https://api.sg.residency.elevenlabs.io` (Production Singapore)

## Request

### Path parameters

- `agent_id` (string, required)

### Query parameters

- `page_size` (integer, optional, default: 100) — 반환할 에이전트 이슈 수입니다. 100을 초과할 수 없습니다.
- `conversation_id` (string, optional, nullable) — 대화 ID로 에이전트 이슈를 필터링합니다.
- `status` (enum, optional, nullable) — 상태로 에이전트 이슈를 필터링합니다.
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `sources` (list of enum, optional, nullable) — 이슈 생성 방식(qa, agent, manual)으로 에이전트 이슈를 필터링합니다. 여러 소스로 필터링하려면 매개변수를 반복하세요.
  - Allowed values: `qa`, `agent`, `manual`
- `priorities` (list of enum, optional, nullable) — 우선순위로 에이전트 이슈를 필터링합니다. 여러 우선순위로 필터링하려면 매개변수를 반복하세요.
  - Allowed values: `low`, `medium`, `high`, `urgent`
- `sort_by` (enum, optional) — 가장 최근 생성순, 우선순위순(가장 긴급한 항목 우선, 이후 가장 최근 생성순), 가장 최근 신고순(에이전트 이슈에 병합된 가장 최근 신고 또는 이슈 생성 시점), 신고 수순(에이전트 이슈에 병합된 신고가 가장 많은 항목 우선, 이후 가장 최근 생성순)으로 정렬합니다.
  - Allowed values: `created_at`, `priority`, `last_reported`
- `owner_user_id` (string, optional, nullable) — 생성자로 에이전트 이슈를 필터링합니다. 에이전트가 생성한 이슈에는 'agent'를 사용하세요.
- `assignee_user_id` (string, optional, nullable) — 담당자로 에이전트 이슈를 필터링합니다. 담당자가 없는 이슈에는 'unassigned'를 사용하세요.
- `label` (string, optional, nullable) — 정확한 라벨로 에이전트 이슈를 필터링합니다.
- `merged_into_ticket_id` (string, optional, nullable) — 이 이슈에 병합된 에이전트 이슈를 필터링합니다.
- `search` (string, optional, nullable) — Case-insensitive free-text search across the agent issue's title, description, comments, and turn comments.
- `cursor` (string, optional, nullable) — 다음 페이지를 가져오는 데 사용됩니다. 응답에서 커서가 반환됩니다.

## Response

### 200

성공 응답

- `agent_conversation_tickets` (list of AgentConversationTicketResponseModel, required)
- `has_more` (boolean, required)
- `next_cursor` (string, optional, nullable)

## Errors

### 422 Unprocessable Entity Error

유효성 검사 오류

- `detail` (list of ValidationError, optional)

## Types

### AgentConversationTicketResponseModel

- `agentqa_ticket_id` (string, required)
- `workspace_id` (string, required)
- `owner_user_id` (string, required)
- `agent_id` (string, required)
- `needs_clustering` (boolean, required)
- `title` (string, required, nullable) — 에이전트 문제의 한 줄 제목입니다. None은 제목 기능이 생기기 전에 생성된 문제에만 해당합니다.
- `labels` (list of string, required)
- `conversation_ids` (list of string, required)
- `first_seen_unix_secs` (integer, required, nullable)
- `last_seen_unix_secs` (integer, required, nullable)
- `qa_comment` (string, required, nullable)
- `ticket_comments` (list of TicketCommentResponseModel, required)
- `turn_comments` (list of TurnCommentResponseModel, required)
- `status` (enum, required)
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `priority` (enum, required, nullable)
  - Allowed values: `low`, `medium`, `high`, `urgent`
- `priority_changes` (list of TicketPriorityChangeResponseModel, required)
- `status_changes` (list of TicketStatusChangeResponseModel, required)
- `source` (enum, required)
  - Allowed values: `qa`, `agent`, `manual`
- `assignee_user_id` (string, required, nullable)
- `created_at_unix_secs` (integer, required)
- `updated_at_unix_secs` (integer, required)
- `merged_into_ticket_id` (string, optional, nullable) — 이 이슈가 병합된 에이전트 이슈입니다. 상태가 'merged'인 동안 설정됩니다.
- `search_match` (TicketSearchMatchResponseModel, optional, nullable) — 목록의 `search` 쿼리가 일치한 위치입니다. 검색된 목록에서만 설정됩니다.
- `issue_type` (any, optional, deprecated) — 항상 null입니다. 문제 유형은 `issue_type:<value>` 형식으로 작성되는 라벨입니다.

### ValidationError

- `loc` (list of ValidationErrorLocItems, required)
- `msg` (string, required)
- `type` (string, required)

### TicketCommentResponseModel

- `comment` (string, required)
- `created_at_unix_secs` (integer, required)
- `owner_user_id` (string, required, nullable)

### TurnCommentResponseModel

- `turn_index` (integer, required)
- `comment` (string, required)
- `created_at_unix_secs` (integer, required)
- `owner_user_id` (string, required, nullable)

### TicketPriorityChangeResponseModel

- `priority` (enum, required, nullable)
  - Allowed values: `low`, `medium`, `high`, `urgent`
- `changed_by_user_id` (string, required)
- `changed_at_unix_secs` (integer, required)

### TicketStatusChangeResponseModel

- `status` (enum, required)
  - Allowed values: `open`, `in_progress`, `resolved`, `cancelled`, `merged`
- `changed_by_user_id` (string, required, nullable)
- `changed_at_unix_secs` (integer, required)

### TicketSearchMatchResponseModel

- `field` (enum, required) — 에이전트 문제의 텍스트 중 일치한 항목입니다.
  - Allowed values: `title`, `description`, `comment`, `turn_comment`
- `snippet` (string, required) — 일치 항목 주변의 발췌문으로, 공백은 축소되며 잘린 부분에는 줄임표가 표시됩니다.
- `highlight_start` (integer, required) — `snippet`에서 일치 항목의 오프셋입니다.
- `highlight_end` (integer, required) — `snippet`에서 일치 항목의 배타적 종료 오프셋입니다.
- `turn_index` (integer, optional, nullable) — `field`가 'turn_comment'인 경우 설정되는 댓글이 달린 턴입니다.

### ValidationErrorLocItems

- string
- integer

## Examples

**Response**

```json
{
  "agent_conversation_tickets": [
    {
      "agentqa_ticket_id": "string",
      "workspace_id": "string",
      "owner_user_id": "string",
      "agent_id": "string",
      "needs_clustering": true,
      "title": "string",
      "labels": [
        "string"
      ],
      "conversation_ids": [
        "string"
      ],
      "first_seen_unix_secs": 1,
      "last_seen_unix_secs": 1,
      "qa_comment": "string",
      "ticket_comments": [
        {
          "comment": "string",
          "created_at_unix_secs": 1,
          "owner_user_id": "string"
        }
      ],
      "turn_comments": [
        {
          "turn_index": 1,
          "comment": "string",
          "created_at_unix_secs": 1,
          "owner_user_id": "string"
        }
      ],
      "status": "open",
      "priority": "low",
      "priority_changes": [
        {
          "priority": "low",
          "changed_by_user_id": "string",
          "changed_at_unix_secs": 1
        }
      ],
      "status_changes": [
        {
          "status": "open",
          "changed_by_user_id": "string",
          "changed_at_unix_secs": 1
        }
      ],
      "source": "qa",
      "assignee_user_id": "string",
      "created_at_unix_secs": 1,
      "updated_at_unix_secs": 1,
      "merged_into_ticket_id": "string",
      "search_match": {
        "field": "title",
        "snippet": "string",
        "highlight_start": 1,
        "highlight_end": 1,
        "turn_index": 1
      },
      "issue_type": null
    }
  ],
  "has_more": true,
  "next_cursor": "string"
}
```

**SDK Code**

```python
import requests

url = "https://api.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets';
const options = {method: 'GET'};

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.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets"

	req, _ := http.NewRequest("GET", url, nil)

	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.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

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.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets');

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

```csharp
using RestSharp;

var client = new RestClient("https://api.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.elevenlabs.io/v1/convai/agents/agent_id/triage-tickets")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

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()
```