Kakao
템플릿 생성
알림톡 발송을 위한 새로운 템플릿을 생성합니다. 생성된 템플릿은 카카오 검수 승인 후 사용할 수 있습니다.
post/v2/messages/kakao/send-profiles/{sendProfileId}/templates
Path parameters
sendProfileIdstring required
Example:@profile_12345
템플릿을 생성할 채널(발신프로필)의 ID입니다.
Request body
Example request
{
"templateName": "이벤트 알림 템플릿",
"templateContent": "안녕하세요 #{고객명}님\n\n주문하신 상품이 배송 준비 중입니다.\n주문번호: #{주문번호}\n배송예정일: #{배송일자}\n\n감사합니다.",
"templateMessageType": "BA",
"templateEmphasizeType": "NONE",
"templateExtra": "■ 이용안내\n- 운영시간: 평일 09:00~18:00\n- 고객센터: 1588-1234\n- 홈페이지: https://shop.example.com\n\n※ 주말/공휴일 배송불가",
"templateTitle": "123,456원",
"templateSubtitle": "승인내역",
"templateImageName": "template_banner.png",
"templateImageUrl": "https://example.com/images/template_banner.png",
"buttons": [
{
"name": "자세히 보기",
"ordering": 1,
"urlMobile": "https://example.com/mobile",
"urlPc": "https://example.com/pc"
}
]
}Response
템플릿 생성 요청의 처리 결과입니다. 성공 시 생성된 템플릿의 상세 정보가 포함됩니다.
Example response
{
"code": 200,
"message": "성공",
"data": {
"profileId": "profile_12345",
"id": "template_67890",
"templateName": "주문 확인 알림 템플릿",
"status": "APPROVED",
"templateMessageType": "BA",
"templateEmphasizeType": "TEXT",
"templateContent": "안녕하세요 #{고객명}님, 주문이 완료되었습니다.",
"buttons": [
{
"name": "자세히 보기",
"ordering": 1,
"urlMobile": "https://example.com/mobile",
"urlPc": "https://example.com/pc"
}
],
"fallback": {
"groupId": "004a6217-f06c-40f6-8f39-bf35b3f76111"
},
"templateComments": [
{
"commentContent": "템플릿 내용이 명확하지 않아 수정이 필요합니다.",
"commentCreateAt": "2024-01-15T10:30:00Z",
"commentSeqno": 1,
"commentStatus": "ACTIVE",
"commentUserName": "검수담당자",
"regBy": "admin@example.com",
"regDate": "2024-01-15T10:30:00Z",
"updateBy": "admin@example.com",
"updateDate": "2024-01-15T11:00:00Z"
}
],
"templateTitle": "123,456원",
"templateSubtitle": "승인내역",
"templateImageName": "template_banner.png",
"templateImageUrl": "https://example.com/images/template_banner.png",
"templateExtra": "■ 이용안내\n- 운영시간: 평일 09:00~18:00\n- 고객센터: 1588-1234\n- 홈페이지: https://shop.example.com\n\n※ 주말/공휴일 배송불가",
"createdAt": "2024-01-01T09:00:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"syncedAt": "2024-01-15T11:00:00Z",
"lastUsedAt": "2024-01-15T12:00:00Z"
}
}