---
updatedAt: 2025-08-08T08:05:27.000Z
agentTools:
  projectIndex: https://sdk.sendon.io/llms.txt
---

# [SDK] 카카오 템플릿 목록 조회

```javascript JavaScript
import { Sendon } from '@alipeople/sendon-sdk-typescript'

const sendon = new Sendon({
  id: 'SENDON_ID',
  apikey: 'SENDON_APIKEY',
  debug: false,
})

async function example() {
  const result = await sendon.kakao.getTemplates('SEND_PROFILE_ID', {
    limit: 10,
  })
  
  console.log(`Response: ${JSON.stringify(result, null, 2)}`)
}

example()
```

```json Response Example
{
  "code": 200,
  "message": "성공",
  "data": {
    "templates": [
      {
        "id": "TEMPLATE_ID",
        "profileId": "SEND_PROFILE_ID",
        "templateCode": "TEST_20240101",
        "templateName": "주문 완료 알림",
        "templateMessageType": "TEXT",
        "templateEmphasizeType": "NORMAL",
        "templateContent": "#{고객명}님의 주문이 완료되었습니다.",
        "templateExtra": null,
        "templateAd": null,
        "categoryCode": "order",
        "securityFlag": false,
        "templateComments": [
          {
            "comment": "이 템플릿은 주문 알림용입니다."
          }
        ],
        "templateStatus": "APPROVED",
        "kepStatus": "ACTIVE",
        "templateTitle": null,
        "templateSubtitle": null,
        "templateImageName": null,
        "templateImageUrl": null,
        "createdAt": "2024-01-01T00:00:00",
        "updatedAt": "2024-01-02T00:00:00",
        "syncedAt": "2024-01-03T00:00:00",
        "buttons": [
          {
            "name": "주문 상세보기",
            "type": "WL",
            "ordering": 1,
            "urlMobile": "http://m.example.com/order",
            "urlPc": "http://example.com/order",
            "schemeAndroid": "example://order",
            "schemeIos": "example://order"
          }
        ]
      }
    ]
  }
}
```

# Sendon 인스턴스 생성



- SDK를 초기화하고 인증 정보(ID, API Key)를 설정합니다.
  - 개발 환경에서는 debug 옵션을 활성화하여 로깅을 확인할 수 있습니다.

# 템플릿 목록 조회

<!-- javascript@10-12 -->

- 첫 번째 인자로 채널 ID를 직접 전달합니다
- 두 번째 인자로 옵션 객체를 전달할 수 있습니다
  - limit: 한 번에 조회할 템플릿 수를 지정합니다
- 응답으로 받은 templates 배열에서 각 템플릿의 상세 정보를 확인할 수 있습니다