> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryvox.co/llms.txt
> Use this file to discover all available pages before exploring further.

# 채널톡 채널

> 채널톡 채널을 API로 만들 때 넣는 값, 쓸 수 있는 작업, 응답 필드를 볼 수 있어요.

`channel`이 `channeltalk`인 채널의 API 계약이에요. 연결 절차는 [채널톡 연결과 운영](https://docs.tryvox.co/docs/operate/deploy/integrations/channeltalk/overview.md)에 있어요.

## 생성 요청

[채널 생성](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-생성.md)의 `params`에 아래 값을 넣어요. `name`, `agent` 같은 공통 필드는 채널 생성 페이지에 있어요.

| 필드 | 타입 | 필수 | 설명 |
| - | - | - | - |
| `access_key` | string | 필수 | 채널톡 「채널 설정 > 보안 및 개발 > API」에서 만든 인증 키의 Access Key입니다. 암호화해 저장하며 응답에 반환하지 않습니다. |
| `access_secret` | string | 필수 | 같은 화면의 Access Secret입니다. 암호화해 저장하며 응답에 반환하지 않습니다. |

```json 요청 theme={null}
{
  "channel": "channeltalk",
  "agent": {
    "agent_id": "44444444-4444-4444-8444-444444444444",
    "agent_version": "production"
  },
  "initial_responder_type": "external",
  "allow_agent_response": false,
  "params": {
    "access_key": "EXAMPLE_CHANNELTALK_ACCESS_KEY",
    "access_secret": "EXAMPLE_CHANNELTALK_ACCESS_SECRET"
  }
}
```

```json 201 응답 theme={null}
{
  "chat_channel": {
    "id": "88888888-8888-4888-8888-888888888888",
    "organization_id": "55555555-5555-4555-8555-555555555555",
    "status": "disabled",
    "status_detail": null,
    "operation_enabled": false,
    "name": "vox.ai 고객지원",
    "display_name": "vox.ai 고객지원",
    "agent": {
      "agent_id": "44444444-4444-4444-8444-444444444444",
      "agent_version": "production"
    },
    "initial_responder_type": "external",
    "created_at": 1794351600000,
    "updated_at": 1794351600000,
    "allow_agent_response": false,
    "channel": "channeltalk",
    "details": {
      "channel_id": "200000",
      "channel_name": "vox.ai 고객지원",
      "bot_name": null,
      "verified_at": 1794351600000,
      "webhook_ok": null,
      "last_received_at": null,
      "last_error_code": null,
      "last_error": null
    }
  },
  "verification": null
}
```

## 쓸 수 있는 작업

* [채널 생성](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-생성.md)
* [채널 목록 조회](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-목록-조회.md)
* [채널 조회](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-조회.md)
* [채널 수정](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-수정.md)
* [채널 인증 신청](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-인증-신청.md)
* [채널 활성화](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-활성화.md)
* [채널 비활성화](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-비활성화.md)
* [채널 연결 해제](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-연결-해제.md)

채널톡 채널에는 채널 삭제, 채널 재연결을 쓸 수 없어요.

## 수정할 수 있는 값

[채널 수정](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-수정.md)의 `params`에 아래 값을 넣어요. 보내지 않은 값은 그대로예요.

| 필드 | 타입 | 설명 |
| - | - | - |
| `access_key` | string \| null | 새 Access Key입니다. |
| `access_secret` | string \| null | 새 Access Secret입니다. |

## 응답의 `details`

[채널 조회](https://docs.tryvox.co/api-reference/v3/chat-channels/채널-조회.md) 응답의 `details`에 아래 값이 있어요.

| 필드 | 타입 | 설명 |
| - | - | - |
| `channel_id` | string | 채널톡(Channel.io) 채널 ID입니다. 인증 키로 조회한 값입니다. |
| `channel_name` | string \| null | 채널톡 채널 이름입니다. |
| `bot_name` | string \| null | vox.ai가 답할 때 쓰는 채널톡 봇 이름입니다. 채널을 활성화할 때 정해집니다. |
| `verified_at` | integer \| null | 마지막으로 키 확인에 성공한 시각입니다(unix ms). null이면 다시 확인해야 합니다. |
| `webhook_ok` | boolean \| null | 채널을 활성화할 때 등록한 웹훅의 상태입니다. 메시지가 들어오면 true가 됩니다. 비활성화한 채널은 null입니다. |
| `last_received_at` | integer \| null | 이 채널로 고객 메시지를 마지막으로 받은 시각입니다(unix ms). 받은 적이 없으면 null입니다. |
| `last_error_code` | string \| null | 지원 종료 예정입니다. `last_error.code`와 같은 값이므로 `last_error`를 쓰세요. 최근 연결·운영 오류 코드이며, 없으면 null입니다. |
| `last_error` | LastError \| null | 최근 연결·운영 오류입니다. 없으면 null입니다. 모든 채널이 같은 구조로 반환합니다. `message`는 카카오만 채우고 다른 채널은 null입니다. |

## 받는 메시지

글자만 읽어요. 읽지 않는 메시지의 처리는 [채널톡 연결과 운영](https://docs.tryvox.co/docs/operate/deploy/integrations/channeltalk/overview.md#지원하는-메시지)에 있어요.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.