Notification > Notification Hub > API v1.0 User Guide > Template
Retrieves a list of Kakao templates for an AlimTalk template.
Request
GET /template/v1.0/ALIMTALK/templates/{templateId}/kakao-templates
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| templateId | Path | String | O | Template ID |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"kakaoTemplateCode" : "kakaoTemplateCode",
"kakaoTemplateName" : "template name",
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"reviewStatus" : "APPROVED",
"comments" : [ {
"id" : 1,
"content" : "Sample inquiry content",
"userName" : "Username",
"createdAt" : "2024-10-29T06:00:01.000+09:00",
"attachments" : [ {
"originalFileName" : "Sample file name",
"filePath" : "/path/to/file"
} ],
"status" : "REQ"
} ],
"block" : false,
"dormant" : false,
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].kakaoTemplateCode | String | O | Kakao template code |
| templates[].kakaoTemplateName | String | O | Template name |
| templates[].content | Object | O | |
| templates[].content.templateMessageType | String | X | Template message type (BA: basic, EX: additional info, AD: channel add, MI: mixed, default: BA) |
| templates[].content.templateEmphasizeType | String | O | Template emphasis type [NONE (no emphasis), TEXT (text emphasis), IMAGE (image emphasis), ITEM_LIST (item list emphasis)] |
| templates[].content.templateContent | String | X | Template body |
| templates[].content.templateAd | String | X | Channel add guide message (fixed value when template message type is channel add or mixed) |
| templates[].content.templateExtra | String | X | Template additional information (required when template message type is additional info or mixed). Substitution variables cannot be used. URLs can be included. |
| templates[].content.templateTitle | String | X | Template title (up to 50 characters; Android: 2 lines, truncated at 23+ characters; iOS: 2 lines, truncated at 27+ characters) |
| templates[].content.templateSubtitle | String | X | Template subtitle (up to 50 characters; Android: truncated at 18+ characters; iOS: truncated at 21+ characters) |
| templates[].content.templateHeader | String | X | Template header. Variables can be entered. |
| templates[].content.templateItem | Object | X | |
| templates[].content.templateItem.list | Array | O | |
| templates[].content.templateItem.list[].title | String | O | Item title |
| templates[].content.templateItem.list[].description | String | O | Item description |
| templates[].content.templateItem.summary | Object | X | |
| templates[].content.templateItem.summary.title | String | O | Summary title |
| templates[].content.templateItem.summary.description | String | O | Summary description (only variables, currency units, numbers, commas, and periods are allowed) |
| templates[].content.templateItemHighlight | Object | X | |
| templates[].content.templateItemHighlight.title | String | O | Item highlight title (up to 30 characters; 21 characters when a thumbnail image is present) |
| templates[].content.templateItemHighlight.description | String | O | Item highlight description (up to 19 characters; 13 characters when a thumbnail image is present) |
| templates[].content.templateItemHighlight.attachmentId | String | X | Template attachment file ID |
| templates[].content.templateItemHighlight.imageUrl | String | X | Thumbnail image URL |
| templates[].content.templateRepresentLink | Object | X | |
| templates[].content.templateRepresentLink.linkMo | String | X | Representative link - mobile web URL |
| templates[].content.templateRepresentLink.linkPc | String | X | Representative link - PC web URL |
| templates[].content.templateRepresentLink.schemeIos | String | X | Representative link - iOS app URL |
| templates[].content.templateRepresentLink.schemeAndroid | String | X | Representative link - Android app URL |
| templates[].content.attachmentId | String | X | Template attachment file ID |
| templates[].content.templateImageName | String | X | Template image name |
| templates[].content.templateImageUrl | String | X | Template image URL |
| templates[].content.securityFlag | Boolean | X | Whether the template has security enabled (default: false) |
| templates[].content.categoryCode | String | X | Template category code (see the List AlimTalk Template Categories API, default: 999999) |
| templates[].content.buttons | Array | X | Template buttons |
| templates[].content.buttons[].ordering | Integer | O | Template button order |
| templates[].content.buttons[].type | String | O | Template button type [WL (web link), AL (app link), DS (delivery tracking), BK (bot keyword), MD (message forwarding), BC (consult chat switch), BT (bot switch), AC (channel add), BF (business form), P1 (image security transfer plugin), P2 (personal information usage plugin), P3 (one-click payment plugin), TN (call)] |
| templates[].content.buttons[].name | String | O | Template button name |
| templates[].content.buttons[].linkMo | String | X | Template button mobile web URL |
| templates[].content.buttons[].linkPc | String | X | Template button PC web URL |
| templates[].content.buttons[].schemeIos | String | X | Template button iOS app URL |
| templates[].content.buttons[].schemeAndroid | String | X | Template button Android app URL |
| templates[].content.buttons[].bizFormId | Integer | X | Template button business form ID (required when type is BF) |
| templates[].content.quickReplies | Array | X | Quick replies |
| templates[].content.quickReplies[].ordering | Integer | O | Quick reply order |
| templates[].content.quickReplies[].type | String | O | Quick reply type [WL (web link), AL (app link), BK (bot keyword), BC (consult chat switch), BT (bot switch), BF (business form)] |
| templates[].content.quickReplies[].name | String | O | Quick reply name |
| templates[].content.quickReplies[].linkMo | String | X | Quick reply mobile web URL |
| templates[].content.quickReplies[].linkPc | String | X | Quick reply PC web URL |
| templates[].content.quickReplies[].schemeIos | String | X | Quick reply iOS app URL |
| templates[].content.quickReplies[].schemeAndroid | String | X | Quick reply Android app URL |
| templates[].content.quickReplies[].bizFormId | Integer | X | Quick reply business form ID (required when type is BF) |
| templates[].reviewStatus | String | O | REGISTERED: submitted, REQUESTED: under review, APPROVED: approved, REJECTED: rejected [REGISTERED, REQUESTED, APPROVED, REJECTED] |
| templates[].comments | Array | O | Template inquiry list |
| templates[].comments[].id | Integer | O | Inquiry ID |
| templates[].comments[].content | String | X | Inquiry content |
| templates[].comments[].userName | String | O | Author |
| templates[].comments[].createdAt | String | O | Inquiry creation time |
| templates[].comments[].attachments | Array | O | Inquiry attachments |
| templates[].comments[].attachments[].originalFileName | String | O | Attachment file name |
| templates[].comments[].attachments[].filePath | String | O | Attachment file path |
| templates[].comments[].status | String | O | Inquiry status (REQ: submitted, INQ: inquired, APR: approved, REJ: rejected, REP: replied) [REQ, INQ, APR, REJ, REP] |
| templates[].block | Boolean | O | Whether the template is blocked |
| templates[].dormant | Boolean | O | Whether the template is dormant |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List Kakao Templates for AlimTalk Template
GET {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/kakao-templates
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/kakao-templates"
Submits an inquiry for a Kakao AlimTalk template with a file attachment.
Request
POST /template/v1.0/ALIMTALK/templates/{templateId}/kakao-templates/{kakaoTemplateCode}/inquiries/do-with-file
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| templateId | Path | String | O | Template ID |
| kakaoTemplateCode | Path | String | O | Kakao template code |
Request Body
| Path | Type | Required | Description |
|---|---|---|---|
| file | Array | O | Inquiry file |
| comment | String | O | Inquiry content |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Submit an AlimTalk Template Inquiry with File Attachment
POST {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/kakao-templates/{{kakaoTemplateCode}}/inquiries/do-with-file
comment=comment_example
file=@/path/to/file.txt
curl -X POST "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/kakao-templates/${kakaoTemplateCode}/inquiries/do-with-file" \
-F "comment=comment_example" \
-F "file=@/path/to/file.txt"
Submits an inquiry for a Kakao AlimTalk template.
Request
POST /template/v1.0/ALIMTALK/templates/{templateId}/kakao-templates/{kakaoTemplateCode}/inquiries
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| templateId | Path | String | O | Template ID |
| kakaoTemplateCode | Path | String | O | Kakao template code |
Request Body
{
"comment" : "Sample inquiry content"
}
| Path | Type | Required | Description |
|---|---|---|---|
| comment | String | O | Inquiry content |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Submit an AlimTalk Template Inquiry
POST {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/kakao-templates/{{kakaoTemplateCode}}/inquiries
{
"comment" : "Sample inquiry content"
}
curl -X POST "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/kakao-templates/${kakaoTemplateCode}/inquiries" \
-d '{
"comment" : "Sample inquiry content"
}'
Registers a template.
Request
POST /template/v1.0/SMS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | O | |
| sender.senderPhoneNumber | String | O | Sender phone number |
| content | Object | O | |
| content.messageType | String | O | Message type (SMS, LMS, MMS) [SMS, LMS, MMS] |
| content.title | String | X | Message title |
| content.body | String | O | Message body |
| content.attachmentIds | Array | X | Up to 3 attachment IDs |
| content.imageLayoutId | String | X | Image layout ID |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when registering the template. |
Request Example
### Register SMS Template
POST {{endpoint}}/template/v1.0/SMS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}
curl -X POST "${endpoint}/template/v1.0/SMS/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}'
Retrieves a list of templates.
Request
GET /template/v1.0/SMS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List SMS Templates
GET {{endpoint}}/template/v1.0/SMS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/SMS/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves template details.
Request
GET /template/v1.0/SMS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
},
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | X | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | X | |
| template.templateId | String | O | Template ID issued when registering the template. |
| template.templateName | String | X | Template name |
| template.categoryId | String | X | Category ID |
| template.messageChannel | String | X | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| template.messagePurposes | Array | X | |
| template.templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| template.sender | Object | X | |
| template.sender.senderPhoneNumber | String | O | Sender phone number |
| template.content | Object | X | |
| template.content.messageType | String | O | Message type (SMS, LMS, MMS) [SMS, LMS, MMS] |
| template.content.title | String | X | Message title |
| template.content.body | String | O | Message body |
| template.content.attachmentIds | Array | X | Up to 3 attachment IDs |
| template.content.imageLayoutId | String | X | Image layout ID |
| template.createdDateTime | String | X | Template creation time |
| template.updatedDateTime | String | X | Template modification time |
Request Example
### Get SMS Template Details
GET {{endpoint}}/template/v1.0/SMS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/SMS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Updates a template.
Request
PUT /template/v1.0/SMS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | X | |
| sender.senderPhoneNumber | String | O | Sender phone number |
| content | Object | O | |
| content.messageType | String | O | Message type (SMS, LMS, MMS) [SMS, LMS, MMS] |
| content.title | String | X | Message title |
| content.body | String | O | Message body |
| content.attachmentIds | Array | X | Up to 3 attachment IDs |
| content.imageLayoutId | String | X | Image layout ID |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Update SMS Template
PUT {{endpoint}}/template/v1.0/SMS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}
curl -X PUT "${endpoint}/template/v1.0/SMS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderPhoneNumber" : "01012341234"
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ],
"imageLayoutId" : "YaX2DA4Weab1"
}
}'
Deletes a template.
Request
DELETE /template/v1.0/SMS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete SMS Template
DELETE {{endpoint}}/template/v1.0/SMS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/SMS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Registers a template.
Request
POST /template/v1.0/ALIMTALK/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a8b3c",
"senderProfileType" : "NORMAL"
},
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"templateCode" : "templateCode",
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | X | |
| sender.senderKey | String | X | Sender profile sender key |
| sender.senderProfileType | String | X | Sender profile type [GROUP, NORMAL] |
| content | Object | O | |
| content.templateMessageType | String | X | Template message type (BA: basic, EX: additional info, AD: channel add, MI: mixed, default: BA) |
| content.templateEmphasizeType | String | O | Template emphasis type [NONE (no emphasis), TEXT (text emphasis), IMAGE (image emphasis), ITEM_LIST (item list emphasis)] |
| content.templateContent | String | X | Template body |
| content.templateAd | String | X | Channel add guide message (fixed value when template message type is channel add or mixed) |
| content.templateExtra | String | X | Template additional information (required when template message type is additional info or mixed). Substitution variables cannot be used. URLs can be included. |
| content.templateTitle | String | X | Template title (up to 50 characters; Android: 2 lines, truncated at 23+ characters; iOS: 2 lines, truncated at 27+ characters) |
| content.templateSubtitle | String | X | Template subtitle (up to 50 characters; Android: truncated at 18+ characters; iOS: truncated at 21+ characters) |
| content.templateHeader | String | X | Template header. Variables can be entered. |
| content.templateItem | Object | X | |
| content.templateItem.list | Array | O | |
| content.templateItem.list[].title | String | O | Item title |
| content.templateItem.list[].description | String | O | Item description |
| content.templateItem.summary | Object | X | |
| content.templateItem.summary.title | String | O | Summary title |
| content.templateItem.summary.description | String | O | Summary description (only variables, currency units, numbers, commas, and periods are allowed) |
| content.templateItemHighlight | Object | X | |
| content.templateItemHighlight.title | String | O | Item highlight title (up to 30 characters; 21 characters when a thumbnail image is present) |
| content.templateItemHighlight.description | String | O | Item highlight description (up to 19 characters; 13 characters when a thumbnail image is present) |
| content.templateItemHighlight.attachmentId | String | X | Template attachment file ID |
| content.templateItemHighlight.imageUrl | String | X | Thumbnail image URL |
| content.templateRepresentLink | Object | X | |
| content.templateRepresentLink.linkMo | String | X | Representative link - mobile web URL |
| content.templateRepresentLink.linkPc | String | X | Representative link - PC web URL |
| content.templateRepresentLink.schemeIos | String | X | Representative link - iOS app URL |
| content.templateRepresentLink.schemeAndroid | String | X | Representative link - Android app URL |
| content.attachmentId | String | X | Template attachment file ID |
| content.templateImageName | String | X | Template image name |
| content.templateImageUrl | String | X | Template image URL |
| content.securityFlag | Boolean | X | Whether the template has security enabled (default: false) |
| content.categoryCode | String | X | Template category code (see the List AlimTalk Template Categories API, default: 999999) |
| content.buttons | Array | X | Template buttons |
| content.buttons[].ordering | Integer | O | Template button order |
| content.buttons[].type | String | O | Template button type [WL (web link), AL (app link), DS (delivery tracking), BK (bot keyword), MD (message forwarding), BC (consult chat switch), BT (bot switch), AC (channel add), BF (business form), P1 (image security transfer plugin), P2 (personal information usage plugin), P3 (one-click payment plugin), TN (call)] |
| content.buttons[].name | String | O | Template button name |
| content.buttons[].linkMo | String | X | Template button mobile web URL |
| content.buttons[].linkPc | String | X | Template button PC web URL |
| content.buttons[].schemeIos | String | X | Template button iOS app URL |
| content.buttons[].schemeAndroid | String | X | Template button Android app URL |
| content.buttons[].bizFormId | Integer | X | Template button business form ID (required when type is BF) |
| content.quickReplies | Array | X | Quick replies |
| content.quickReplies[].ordering | Integer | O | Quick reply order |
| content.quickReplies[].type | String | O | Quick reply type [WL (web link), AL (app link), BK (bot keyword), BC (consult chat switch), BT (bot switch), BF (business form)] |
| content.quickReplies[].name | String | O | Quick reply name |
| content.quickReplies[].linkMo | String | X | Quick reply mobile web URL |
| content.quickReplies[].linkPc | String | X | Quick reply PC web URL |
| content.quickReplies[].schemeIos | String | X | Quick reply iOS app URL |
| content.quickReplies[].schemeAndroid | String | X | Quick reply Android app URL |
| content.quickReplies[].bizFormId | Integer | X | Quick reply business form ID (required when type is BF) |
| additionalProperty | Object | O | |
| additionalProperty.templateCode | String | O | Template code (letters, numbers, -, _) |
| additionalProperty.kakaoTemplateCode | String | X | Kakao template code |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when registering the template. |
Request Example
### Register AlimTalk Template
POST {{endpoint}}/template/v1.0/ALIMTALK/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a8b3c",
"senderProfileType" : "NORMAL"
},
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"templateCode" : "templateCode",
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}
curl -X POST "${endpoint}/template/v1.0/ALIMTALK/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a8b3c",
"senderProfileType" : "NORMAL"
},
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"templateCode" : "templateCode",
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}'
Retrieves a list of templates.
Request
GET /template/v1.0/ALIMTALK/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| senderKey | Query | String | X | Sender key |
| templateStatus | Query | String | X | Template status |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List AlimTalk Templates
GET {{endpoint}}/template/v1.0/ALIMTALK/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves a list of templates associated with a sender (including templates for groups that the sender belongs to).
Request
GET /template/v1.0/ALIMTALK/senders/{senderKey}/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| senderKey | Path | String | O | Sender key |
| templateName | Query | String | X | Template name (LIKE search) |
| templateStatus | Query | String | X | Template status |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List Templates by AlimTalk Sender
GET {{endpoint}}/template/v1.0/ALIMTALK/senders/{{senderKey}}/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/senders/${senderKey}/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves template details.
Request
GET /template/v1.0/ALIMTALK/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a8b3c",
"senderProfileId" : "@nhnCloud",
"senderProfileType" : "GROUP"
},
"additionalProperty" : {
"kakaoTemplateCode" : "templateCode",
"templateCode" : "templateCode",
"comments" : [ {
"id" : 1,
"content" : "Sample inquiry content",
"userName" : "Username",
"createdAt" : "2024-10-29T06:00:01.000+09:00",
"attachments" : [ {
"originalFileName" : "Sample file name",
"filePath" : "/path/to/file"
} ],
"status" : "REQ"
} ],
"status" : "APPROVED",
"block" : false,
"dormant" : false
},
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | O | |
| template.templateId | String | O | Template ID issued when registering the template. |
| template.templateName | String | O | Template name |
| template.categoryId | String | O | Category ID |
| template.messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | O | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| template.messagePurposes | Array | O | |
| template.templateLanguage | String | O | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| template.sender | Object | X | |
| template.sender.senderKey | String | O | Sender profile sender key |
| template.sender.senderProfileId | String | O | KakaoTalk channel name |
| template.sender.senderProfileType | String | O | Sender profile type [GROUP, NORMAL] |
| template.additionalProperty | Object | O | |
| template.additionalProperty.kakaoTemplateCode | String | O | Kakao template code |
| template.additionalProperty.templateCode | String | O | Template code (letters, numbers, -, _) |
| template.additionalProperty.comments | Array | O | Template inquiry list |
| template.additionalProperty.comments[].id | Integer | O | Inquiry ID |
| template.additionalProperty.comments[].content | String | X | Inquiry content |
| template.additionalProperty.comments[].userName | String | O | Author |
| template.additionalProperty.comments[].createdAt | String | O | Inquiry creation time |
| template.additionalProperty.comments[].attachments | Array | O | Inquiry attachments |
| template.additionalProperty.comments[].attachments[].originalFileName | String | O | Attachment file name |
| template.additionalProperty.comments[].attachments[].filePath | String | O | Attachment file path |
| template.additionalProperty.comments[].status | String | O | Inquiry status (REQ: submitted, INQ: inquired, APR: approved, REJ: rejected, REP: replied) [REQ, INQ, APR, REJ, REP] |
| template.additionalProperty.status | String | X | REGISTERED: submitted, REQUESTED: under review, APPROVED: approved, REJECTED: rejected [REGISTERED, REQUESTED, APPROVED, REJECTED] |
| template.additionalProperty.block | Boolean | O | Whether the template is blocked Default: false |
| template.additionalProperty.dormant | Boolean | O | Whether the template is dormant Default: false |
| template.content | Object | O | |
| template.content.templateMessageType | String | X | Template message type (BA: basic, EX: additional info, AD: channel add, MI: mixed, default: BA) |
| template.content.templateEmphasizeType | String | O | Template emphasis type [NONE (no emphasis), TEXT (text emphasis), IMAGE (image emphasis), ITEM_LIST (item list emphasis)] |
| template.content.templateContent | String | X | Template body |
| template.content.templateAd | String | X | Channel add guide message (fixed value when template message type is channel add or mixed) |
| template.content.templateExtra | String | X | Template additional information (required when template message type is additional info or mixed). Substitution variables cannot be used. URLs can be included. |
| template.content.templateTitle | String | X | Template title (up to 50 characters; Android: 2 lines, truncated at 23+ characters; iOS: 2 lines, truncated at 27+ characters) |
| template.content.templateSubtitle | String | X | Template subtitle (up to 50 characters; Android: truncated at 18+ characters; iOS: truncated at 21+ characters) |
| template.content.templateHeader | String | X | Template header. Variables can be entered. |
| template.content.templateItem | Object | X | |
| template.content.templateItem.list | Array | O | |
| template.content.templateItem.list[].title | String | O | Item title |
| template.content.templateItem.list[].description | String | O | Item description |
| template.content.templateItem.summary | Object | X | |
| template.content.templateItem.summary.title | String | O | Summary title |
| template.content.templateItem.summary.description | String | O | Summary description (only variables, currency units, numbers, commas, and periods are allowed) |
| template.content.templateItemHighlight | Object | X | |
| template.content.templateItemHighlight.title | String | O | Item highlight title (up to 30 characters; 21 characters when a thumbnail image is present) |
| template.content.templateItemHighlight.description | String | O | Item highlight description (up to 19 characters; 13 characters when a thumbnail image is present) |
| template.content.templateItemHighlight.attachmentId | String | X | Template attachment file ID |
| template.content.templateItemHighlight.imageUrl | String | X | Thumbnail image URL |
| template.content.templateRepresentLink | Object | X | |
| template.content.templateRepresentLink.linkMo | String | X | Representative link - mobile web URL |
| template.content.templateRepresentLink.linkPc | String | X | Representative link - PC web URL |
| template.content.templateRepresentLink.schemeIos | String | X | Representative link - iOS app URL |
| template.content.templateRepresentLink.schemeAndroid | String | X | Representative link - Android app URL |
| template.content.attachmentId | String | X | Template attachment file ID |
| template.content.templateImageName | String | X | Template image name |
| template.content.templateImageUrl | String | X | Template image URL |
| template.content.securityFlag | Boolean | X | Whether the template has security enabled (default: false) |
| template.content.categoryCode | String | X | Template category code (see the List AlimTalk Template Categories API, default: 999999) |
| template.content.buttons | Array | X | Template buttons |
| template.content.buttons[].ordering | Integer | O | Template button order |
| template.content.buttons[].type | String | O | Template button type [WL (web link), AL (app link), DS (delivery tracking), BK (bot keyword), MD (message forwarding), BC (consult chat switch), BT (bot switch), AC (channel add), BF (business form), P1 (image security transfer plugin), P2 (personal information usage plugin), P3 (one-click payment plugin), TN (call)] |
| template.content.buttons[].name | String | O | Template button name |
| template.content.buttons[].linkMo | String | X | Template button mobile web URL |
| template.content.buttons[].linkPc | String | X | Template button PC web URL |
| template.content.buttons[].schemeIos | String | X | Template button iOS app URL |
| template.content.buttons[].schemeAndroid | String | X | Template button Android app URL |
| template.content.buttons[].bizFormId | Integer | X | Template button business form ID (required when type is BF) |
| template.content.quickReplies | Array | X | Quick replies |
| template.content.quickReplies[].ordering | Integer | O | Quick reply order |
| template.content.quickReplies[].type | String | O | Quick reply type [WL (web link), AL (app link), BK (bot keyword), BC (consult chat switch), BT (bot switch), BF (business form)] |
| template.content.quickReplies[].name | String | O | Quick reply name |
| template.content.quickReplies[].linkMo | String | X | Quick reply mobile web URL |
| template.content.quickReplies[].linkPc | String | X | Quick reply PC web URL |
| template.content.quickReplies[].schemeIos | String | X | Quick reply iOS app URL |
| template.content.quickReplies[].schemeAndroid | String | X | Quick reply Android app URL |
| template.content.quickReplies[].bizFormId | Integer | X | Quick reply business form ID (required when type is BF) |
| template.createdDateTime | String | O | Template creation time |
| template.updatedDateTime | String | O | Template modification time |
Request Example
### Get AlimTalk Template Details
GET {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Updates a template.
Request
PUT /template/v1.0/ALIMTALK/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | O | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| content | Object | O | |
| content.templateMessageType | String | X | Template message type (BA: basic, EX: additional info, AD: channel add, MI: mixed, default: BA) |
| content.templateEmphasizeType | String | O | Template emphasis type [NONE (no emphasis), TEXT (text emphasis), IMAGE (image emphasis), ITEM_LIST (item list emphasis)] |
| content.templateContent | String | X | Template body |
| content.templateAd | String | X | Channel add guide message (fixed value when template message type is channel add or mixed) |
| content.templateExtra | String | X | Template additional information (required when template message type is additional info or mixed). Substitution variables cannot be used. URLs can be included. |
| content.templateTitle | String | X | Template title (up to 50 characters; Android: 2 lines, truncated at 23+ characters; iOS: 2 lines, truncated at 27+ characters) |
| content.templateSubtitle | String | X | Template subtitle (up to 50 characters; Android: truncated at 18+ characters; iOS: truncated at 21+ characters) |
| content.templateHeader | String | X | Template header. Variables can be entered. |
| content.templateItem | Object | X | |
| content.templateItem.list | Array | O | |
| content.templateItem.list[].title | String | O | Item title |
| content.templateItem.list[].description | String | O | Item description |
| content.templateItem.summary | Object | X | |
| content.templateItem.summary.title | String | O | Summary title |
| content.templateItem.summary.description | String | O | Summary description (only variables, currency units, numbers, commas, and periods are allowed) |
| content.templateItemHighlight | Object | X | |
| content.templateItemHighlight.title | String | O | Item highlight title (up to 30 characters; 21 characters when a thumbnail image is present) |
| content.templateItemHighlight.description | String | O | Item highlight description (up to 19 characters; 13 characters when a thumbnail image is present) |
| content.templateItemHighlight.attachmentId | String | X | Template attachment file ID |
| content.templateItemHighlight.imageUrl | String | X | Thumbnail image URL |
| content.templateRepresentLink | Object | X | |
| content.templateRepresentLink.linkMo | String | X | Representative link - mobile web URL |
| content.templateRepresentLink.linkPc | String | X | Representative link - PC web URL |
| content.templateRepresentLink.schemeIos | String | X | Representative link - iOS app URL |
| content.templateRepresentLink.schemeAndroid | String | X | Representative link - Android app URL |
| content.attachmentId | String | X | Template attachment file ID |
| content.templateImageName | String | X | Template image name |
| content.templateImageUrl | String | X | Template image URL |
| content.securityFlag | Boolean | X | Whether the template has security enabled (default: false) |
| content.categoryCode | String | X | Template category code (see the List AlimTalk Template Categories API, default: 999999) |
| content.buttons | Array | X | Template buttons |
| content.buttons[].ordering | Integer | O | Template button order |
| content.buttons[].type | String | O | Template button type [WL (web link), AL (app link), DS (delivery tracking), BK (bot keyword), MD (message forwarding), BC (consult chat switch), BT (bot switch), AC (channel add), BF (business form), P1 (image security transfer plugin), P2 (personal information usage plugin), P3 (one-click payment plugin), TN (call)] |
| content.buttons[].name | String | O | Template button name |
| content.buttons[].linkMo | String | X | Template button mobile web URL |
| content.buttons[].linkPc | String | X | Template button PC web URL |
| content.buttons[].schemeIos | String | X | Template button iOS app URL |
| content.buttons[].schemeAndroid | String | X | Template button Android app URL |
| content.buttons[].bizFormId | Integer | X | Template button business form ID (required when type is BF) |
| content.quickReplies | Array | X | Quick replies |
| content.quickReplies[].ordering | Integer | O | Quick reply order |
| content.quickReplies[].type | String | O | Quick reply type [WL (web link), AL (app link), BK (bot keyword), BC (consult chat switch), BT (bot switch), BF (business form)] |
| content.quickReplies[].name | String | O | Quick reply name |
| content.quickReplies[].linkMo | String | X | Quick reply mobile web URL |
| content.quickReplies[].linkPc | String | X | Quick reply PC web URL |
| content.quickReplies[].schemeIos | String | X | Quick reply iOS app URL |
| content.quickReplies[].schemeAndroid | String | X | Quick reply Android app URL |
| content.quickReplies[].bizFormId | Integer | X | Quick reply business form ID (required when type is BF) |
| additionalProperty | Object | O | |
| additionalProperty.kakaoTemplateCode | String | O | Kakao template code (letters, numbers, -, _) |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Update AlimTalk Template
PUT {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}
curl -X PUT "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"content" : {
"templateMessageType" : "BA",
"templateEmphasizeType" : "NONE",
"templateContent" : "Your order #{name} has been completed.",
"templateAd" : "Add the channel to receive marketing messages and more from this channel on KakaoTalk",
"templateExtra" : "* Due to the nature of real-time reservations, duplicate reservations may occur and reservations may be cancelled if check-in is unavailable.\\n* Inquiry: 1234-1234",
"templateTitle" : "123,450 KRW",
"templateSubtitle" : "Approval details",
"templateHeader" : "Your order has been placed.",
"templateItem" : {
"list" : [ {
"title" : "Item title",
"description" : "Item description"
} ],
"summary" : {
"title" : "Summary title",
"description" : "Summary description"
}
},
"templateItemHighlight" : {
"title" : "Highlight title",
"description" : "Highlight description",
"attachmentId" : "YaX2DA4Weab2",
"imageUrl" : "https://example.com/thumbnail.jpg"
},
"templateRepresentLink" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"attachmentId" : "YaX2DA4Weab2",
"templateImageName" : "image.png",
"templateImageUrl" : "https://mud-kage.kakao.com/dn/hAtIc/btshc5wAvF0/sA8gjabh4J34IMqCk0hkBK/img_l.jpg",
"securityFlag" : false,
"categoryCode" : "999999",
"buttons" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Button name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"quickReplies" : [ {
"ordering" : 1,
"type" : "WL",
"name" : "Quick reply name",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ]
},
"additionalProperty" : {
"kakaoTemplateCode" : "kakaoTemplateCode"
}
}'
Deletes a template.
Request
DELETE /template/v1.0/ALIMTALK/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete AlimTalk Template
DELETE {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
!!! danger This API is no longer supported. * See Submit an AlimTalk Template Inquiry.
Submits an inquiry for a Kakao AlimTalk template.
Request
POST /template/v1.0/ALIMTALK/templates/{templateId}/inquiries
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"comment" : "Sample inquiry content"
}
| Path | Type | Required | Description |
|---|---|---|---|
| comment | String | O | Inquiry content |
Response Body
Request Example
### Submit an AlimTalk Template Inquiry - Deprecated
POST {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/inquiries
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"comment" : "Sample inquiry content"
}
curl -X POST "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/inquiries" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"comment" : "Sample inquiry content"
}'
!!! danger This API is no longer supported. * See Submit an AlimTalk Template Inquiry.
Submits an inquiry for a Kakao AlimTalk template with a file attachment.
Request
POST /template/v1.0/ALIMTALK/templates/{templateId}/inquiries/do-with-file
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
| Path | Type | Required | Description |
|---|---|---|---|
| file | Array | O | Inquiry file |
| comment | String | O | Inquiry content |
Response Body
Request Example
### Submit an AlimTalk Template Inquiry with File Attachment - Deprecated
POST {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/inquiries/do-with-file
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
comment=comment_example
file=@/path/to/file.txt
curl -X POST "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/inquiries/do-with-file" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-F "comment=comment_example" \
-F "file=@/path/to/file.txt"
Retrieves a list of AlimTalk template updates.
Request
GET /template/v1.0/ALIMTALK/templates/{templateId}/modifications
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
| limit | Query | Number | X | If limit is not set, the default value is 50. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
Request Example
### List AlimTalk Template Updates
GET {{endpoint}}/template/v1.0/ALIMTALK/templates/{{templateId}}/modifications
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/templates/${templateId}/modifications" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves a list of AlimTalk template categories.
Request
GET /template/v1.0/ALIMTALK/template-categories
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"categories" : [ {
"name" : "Purchase",
"subCategories" : [ {
"code" : "002001",
"name" : "Purchase completed",
"groupName" : "Purchase",
"inclusion" : "Targets are order completed and purchase completed templates.",
"exclusion" : "Templates related to schedules containing reservation or reservation numbers are excluded from purchase completed and classified as reservation."
} ]
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| categories | Array | O | |
| categories[].name | String | O | Main category name |
| categories[].subCategories | Array | X | Subcategories |
| categories[].subCategories[].code | String | O | Category code |
| categories[].subCategories[].name | String | O | Subcategory name |
| categories[].subCategories[].groupName | String | O | Main category name |
| categories[].subCategories[].inclusion | String | O | Inclusion description |
| categories[].subCategories[].exclusion | String | O | Exclusion description |
Request Example
### List AlimTalk Template Categories
GET {{endpoint}}/template/v1.0/ALIMTALK/template-categories
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/ALIMTALK/template-categories" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Registers a template.
Request
POST /template/v1.0/EMAIL/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | O | |
| sender.senderMailAddress | String | O | Sender email address |
| content | Object | O | |
| content.title | String | X | Template email subject |
| content.body | String | X | Template email body |
| content.attachmentIds | Array | X | Template attachment file IDs |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when registering the template. |
Request Example
### Register Email Template
POST {{endpoint}}/template/v1.0/EMAIL/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}
curl -X POST "${endpoint}/template/v1.0/EMAIL/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}'
Retrieves template details.
Request
GET /template/v1.0/EMAIL/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
},
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | X | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | X | |
| template.templateId | String | O | Template ID issued when registering the template. |
| template.templateName | String | X | Template name |
| template.categoryId | String | X | Category ID |
| template.messageChannel | String | X | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| template.messagePurposes | Array | X | |
| template.templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| template.sender | Object | X | |
| template.sender.senderMailAddress | String | O | Sender email address |
| template.content | Object | X | |
| template.content.title | String | X | Template email subject |
| template.content.body | String | X | Template email body |
| template.content.attachmentIds | Array | X | Template attachment file IDs |
| template.createdDateTime | String | X | Template creation time |
| template.updatedDateTime | String | X | Template modification time |
Request Example
### Get Email Template Details
GET {{endpoint}}/template/v1.0/EMAIL/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/EMAIL/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves a list of templates.
Request
GET /template/v1.0/EMAIL/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List Email Templates
GET {{endpoint}}/template/v1.0/EMAIL/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/EMAIL/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Updates a template.
Request
PUT /template/v1.0/EMAIL/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | O | |
| sender.senderMailAddress | String | O | Sender email address |
| content | Object | O | |
| content.title | String | X | Template email subject |
| content.body | String | X | Template email body |
| content.attachmentIds | Array | X | Template attachment file IDs |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Update Email Template
PUT {{endpoint}}/template/v1.0/EMAIL/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}
curl -X PUT "${endpoint}/template/v1.0/EMAIL/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"senderMailAddress" : "abcde@nhn.com"
},
"content" : {
"title" : "[NHN Cloud Email][##env##] Monitoring alert",
"body" : "Hello, your item has arrived and is ready for pickup.",
"attachmentIds" : [ "YaX2DA4Weab2", "YaX2DA4Weab1" ]
}
}'
Deletes a template.
Request
DELETE /template/v1.0/EMAIL/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete Email Template
DELETE {{endpoint}}/template/v1.0/EMAIL/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/EMAIL/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Registers a template.
Request
POST /template/v1.0/RCS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | O | |
| sender.brandId | String | O | Brand ID |
| sender.chatbotId | String | O | Chat room (chatbot) ID |
| content | Object | O | |
| content.messageType | String | X | RCS message type [SMS (short message), LMS (long message), MMS (multimedia message), RBC_TEMPLATE (RCS Biz Center template)] |
| content.title | String | X | (Deprecated, use content.cards[].title) Message title |
| content.body | String | X | (Deprecated, use content.cards[].description) Message body |
| content.smsType | String | X | SMS type [STANDALONE (standalone), UNIFIED_STANDALONE (unified standalone)] |
| content.lmsType | String | X | LMS type [STANDALONE (standalone), FORMAT_BASIC (basic format), FORMAT_TITLE_HIGHLIGHT (title highlight format), FORMAT_PARAGRAPH (paragraph format), UNIFIED_STANDALONE (unified standalone)] |
| content.mmsType | String | X | MMS type (required when sending MMS) [HORIZONTAL (horizontal), VERTICAL (vertical), CAROUSEL_MEDIUM (carousel medium), CAROUSEL_SMALL (carousel small), UNIFIED_HORIZONTAL (unified horizontal), UNIFIED_VERTICAL (unified vertical)] |
| content.messagebaseId | String | X | RCS Biz Center template ID |
| content.unsubscribePhoneNumber | String | X | Unsubscribe phone number (required when sending advertisements) |
| content.cards | Array | X | RCS cards |
| content.cards[].title | String | X | Title |
| content.cards[].description | String | X | Body |
| content.cards[].attachmentId | String | X | Attachment file ID ※ Attaching a GIF image in a unified MMS card is not receivable on iOS devices. |
| content.cards[].mTitle | String | X | Main title |
| content.cards[].mTitleMedia | String | X | Main title logo file ID |
| content.cards[].title1 | String | X | Title 1 |
| content.cards[].title2 | String | X | Title 2 |
| content.cards[].title3 | String | X | Title 3 |
| content.cards[].description1 | String | X | Body 1 |
| content.cards[].description2 | String | X | Body 2 |
| content.cards[].description3 | String | X | Body 3 |
| content.cards[].buttons | Array | X | RCS button list |
| content.cards[].buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) |
| content.cards[].buttons[].buttonJson | Object | X | Button content JSON object |
| content.cards[].buttons[].buttonJson.action | Object | X | Button action |
| content.buttons | Array | X | (Deprecated, use content.cards[].buttons) RCS button list |
| content.buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) ※ For unified MMS, only COMPOSE and CLIPBOARD are supported. |
| content.buttons[].buttonJson | Object | X | Button content JSON object |
| content.buttons[].buttonJson.action | Object | X | Button action |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when registering the template. |
Request Example
### Register RCS Template
POST {{endpoint}}/template/v1.0/RCS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}
curl -X POST "${endpoint}/template/v1.0/RCS/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}'
Retrieves a list of templates.
Request
GET /template/v1.0/RCS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List RCS Templates
GET {{endpoint}}/template/v1.0/RCS/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/RCS/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves template details.
Request
GET /template/v1.0/RCS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"messagebaseformId" : "SS000000",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
},
"additionalProperty" : {
"status" : "SUCCESS",
"approvedDateTime" : "2024-10-29T06:00:01.000+09:00"
},
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | X | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | X | |
| template.templateId | String | O | Template ID issued when registering the template. |
| template.templateName | String | X | Template name |
| template.categoryId | String | X | Category ID |
| template.messageChannel | String | X | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| template.messagePurposes | Array | X | |
| template.templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| template.sender | Object | X | |
| template.sender.brandId | String | O | Brand ID |
| template.sender.chatbotId | String | O | Chat room (chatbot) ID |
| template.content | Object | X | |
| template.content.messageType | String | X | RCS message type [SMS (short message), LMS (long message), MMS (multimedia message), RBC_TEMPLATE (RCS Biz Center template)] |
| template.content.title | String | X | Message title |
| template.content.body | String | X | Message body |
| template.content.smsType | String | X | SMS type [STANDALONE (standalone), UNIFIED_STANDALONE (unified standalone)] |
| template.content.lmsType | String | X | LMS type [STANDALONE (standalone), FORMAT_BASIC (basic format), FORMAT_TITLE_HIGHLIGHT (title highlight format), FORMAT_PARAGRAPH (paragraph format), UNIFIED_STANDALONE (unified standalone)] |
| template.content.mmsType | String | X | MMS type (required when sending MMS) [HORIZONTAL (horizontal), VERTICAL (vertical), CAROUSEL_MEDIUM (carousel medium), CAROUSEL_SMALL (carousel small), UNIFIED_HORIZONTAL (unified horizontal), UNIFIED_VERTICAL (unified vertical)] |
| template.content.messagebaseId | String | X | RCS Biz Center template ID |
| template.content.messagebaseformId | String | X | messageBase format specified by RCS Biz Center - SS000000 (SMS basic) - SL000000 (LMS basic) - OL00000001 (LMS Format basic) - OL00000002 (LMS Format title highlight) - MM000000 (MMS basic) |
| template.content.unsubscribePhoneNumber | String | X | Unsubscribe phone number (required when sending advertisements) |
| template.content.cards | Array | X | RCS cards |
| template.content.cards[].title | String | X | Title |
| template.content.cards[].description | String | X | Body |
| template.content.cards[].attachmentId | String | X | Attachment file ID ※ Attaching a GIF image in a unified MMS card is not receivable on iOS devices. |
| template.content.cards[].mTitle | String | X | Main title |
| template.content.cards[].mTitleMedia | String | X | Main title logo file ID |
| template.content.cards[].title1 | String | X | Title 1 |
| template.content.cards[].title2 | String | X | Title 2 |
| template.content.cards[].title3 | String | X | Title 3 |
| template.content.cards[].description1 | String | X | Body 1 |
| template.content.cards[].description2 | String | X | Body 2 |
| template.content.cards[].description3 | String | X | Body 3 |
| template.content.cards[].buttons | Array | X | RCS button list |
| template.content.cards[].buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) |
| template.content.cards[].buttons[].buttonJson | Object | X | Button content JSON object |
| template.content.cards[].buttons[].buttonJson.action | Object | X | Button action |
| template.content.buttons | Array | X | RCS button list |
| template.content.buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) |
| template.content.buttons[].buttonJson | Object | X | Button content JSON object |
| template.content.buttons[].buttonJson.action | Object | X | Button action |
| template.additionalProperty | Object | X | |
| template.additionalProperty.status | String | X | Template status - SAVE: saved - APPROVE_WAIT: pending approval - INSPECTION_START: inspection started - INSPECTION_FINISH: inspection completed - APPROVE: approved - REJECT: rejected - MODIFY: modification requested |
| template.additionalProperty.approvedDateTime | String | X | Template approval time |
| template.createdDateTime | String | X | Template creation time |
| template.updatedDateTime | String | X | Template modification time |
Request Example
### Get RCS Template Details
GET {{endpoint}}/template/v1.0/RCS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/RCS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Updates a template.
Request
PUT /template/v1.0/RCS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| sender | Object | X | |
| sender.brandId | String | O | Brand ID |
| sender.chatbotId | String | O | Chat room (chatbot) ID |
| content | Object | O | |
| content.messageType | String | X | RCS message type [SMS (short message), LMS (long message), MMS (multimedia message), RBC_TEMPLATE (RCS Biz Center template)] |
| content.title | String | X | (Deprecated, use content.cards[].title) Message title |
| content.body | String | X | (Deprecated, use content.cards[].description) Message body |
| content.smsType | String | X | SMS type [STANDALONE (standalone), UNIFIED_STANDALONE (unified standalone)] |
| content.lmsType | String | X | LMS type [STANDALONE (standalone), FORMAT_BASIC (basic format), FORMAT_TITLE_HIGHLIGHT (title highlight format), FORMAT_PARAGRAPH (paragraph format), UNIFIED_STANDALONE (unified standalone)] |
| content.mmsType | String | X | MMS type (required when sending MMS) [HORIZONTAL (horizontal), VERTICAL (vertical), CAROUSEL_MEDIUM (carousel medium), CAROUSEL_SMALL (carousel small), UNIFIED_HORIZONTAL (unified horizontal), UNIFIED_VERTICAL (unified vertical)] |
| content.messagebaseId | String | X | RCS Biz Center template ID |
| content.unsubscribePhoneNumber | String | X | Unsubscribe phone number (required when sending advertisements) |
| content.cards | Array | X | RCS cards |
| content.cards[].title | String | X | Title |
| content.cards[].description | String | X | Body |
| content.cards[].attachmentId | String | X | Attachment file ID ※ Attaching a GIF image in a unified MMS card is not receivable on iOS devices. |
| content.cards[].mTitle | String | X | Main title |
| content.cards[].mTitleMedia | String | X | Main title logo file ID |
| content.cards[].title1 | String | X | Title 1 |
| content.cards[].title2 | String | X | Title 2 |
| content.cards[].title3 | String | X | Title 3 |
| content.cards[].description1 | String | X | Body 1 |
| content.cards[].description2 | String | X | Body 2 |
| content.cards[].description3 | String | X | Body 3 |
| content.cards[].buttons | Array | X | RCS button list |
| content.cards[].buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) |
| content.cards[].buttons[].buttonJson | Object | X | Button content JSON object |
| content.cards[].buttons[].buttonJson.action | Object | X | Button action |
| content.buttons | Array | X | (Deprecated, use content.cards[].buttons) RCS button list |
| content.buttons[].buttonType | String | X | COMPOSE (open chat room), CLIPBOARD (copy), DIALER (make call), MAP_SHOW (show map), MAP_QUERY (search map), MAP_SHARE (share location), URL (open URL), CALENDAR (add calendar) ※ For unified MMS, only COMPOSE and CLIPBOARD are supported. |
| content.buttons[].buttonJson | Object | X | Button content JSON object |
| content.buttons[].buttonJson.action | Object | X | Button action |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Update RCS Template
PUT {{endpoint}}/template/v1.0/RCS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}
curl -X PUT "${endpoint}/template/v1.0/RCS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"sender" : {
"brandId" : "AR.lj0eOjEI7Y",
"chatbotId" : "44o4SUjpqnjDuUcH+uHvPg=="
},
"content" : {
"messageType" : "SMS",
"title" : "Holiday service hours notice",
"body" : "Hello, your item has arrived and is ready for pickup. Please visit us at your convenience.",
"smsType" : "STANDALONE",
"lmsType" : "HORIZONTAL",
"mmsType" : "HORIZONTAL",
"messagebaseId" : "44o4SUjpqnjDuUcH+uHvPg==",
"unsubscribePhoneNumber" : "08012341234",
"cards" : [ {
"title" : "Title",
"description" : "Body",
"attachmentId" : "20240814125609swLmoZTsGr0",
"mTitle" : "Main title",
"mTitleMedia" : "LT-messagebase.common-2k8ydI",
"title1" : "Title 1",
"title2" : "Title 2",
"title3" : "Title 3",
"description1" : "Body 1",
"description2" : "Body 2",
"description3" : "Body 3",
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
} ],
"buttons" : [ {
"buttonType" : "CALENDAR",
"buttonJson" : {
"action" : {
"displayText" : "Register schedule",
"calendarAction" : {
"createCalendarEvent" : {
"startTime" : "2024-01-01T00:00:00.000+09:00",
"endTime" : "2024-01-01T00:00:00.000+09:00",
"title" : "Schedule title",
"description" : "Schedule description"
}
}
}
}
} ]
}
}'
Deletes a template.
Request
DELETE /template/v1.0/RCS/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete RCS Template
DELETE {{endpoint}}/template/v1.0/RCS/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/RCS/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Registers a template.
Request
POST /template/v1.0/PUSH/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| content | Object | O | Push message content |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when registering the template. |
Request Example
### Register Push Template
POST {{endpoint}}/template/v1.0/PUSH/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}
curl -X POST "${endpoint}/template/v1.0/PUSH/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}'
Retrieves a list of templates.
Request
GET /template/v1.0/PUSH/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| limit | Query | Number | X | If limit is not set, the default value is 20. (Maximum 1,000) |
| offset | Query | Number | X | If offset is not set, the default value is 0. |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery completed",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when registering the template. |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| templates[].messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation time |
| templates[].updatedDateTime | String | O | Template modification time |
Request Example
### List Push Templates
GET {{endpoint}}/template/v1.0/PUSH/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/PUSH/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves template details.
Request
GET /template/v1.0/PUSH/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateName" : "template name",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
},
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | O | |
| template.templateId | String | O | Template ID issued when registering the template. |
| template.templateName | String | O | Template name |
| template.categoryId | String | O | Category ID |
| template.messageChannel | String | O | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Branded Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | O | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| template.messagePurposes | Array | O | |
| template.templateLanguage | String | O | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| template.content | Object | O | Push message content |
| template.createdDateTime | String | O | Template creation time |
| template.updatedDateTime | String | O | Template modification time |
Request Example
### Get Push Template Details
GET {{endpoint}}/template/v1.0/PUSH/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/PUSH/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Updates a template.
Request
PUT /template/v1.0/PUSH/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | X | Message purpose type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| templateLanguage | String | X | Template language type Default: PLAIN_TEXT [PLAIN_TEXT (plain text), FREEMARKER (FreeMarker template)] |
| content | Object | O | Push message content |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Update Push Template
PUT {{endpoint}}/template/v1.0/PUSH/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}
curl -X PUT "${endpoint}/template/v1.0/PUSH/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "template name",
"messagePurpose" : "NORMAL",
"templateLanguage" : "PLAIN_TEXT",
"content" : {
"unsubscribePhoneNumber" : "Main number",
"unsubscribeGuide" : "Menu > Settings",
"title" : "Title",
"body" : "Content",
"richMessage" : {
"buttons" : [ {
"name" : "Button name",
"submitName" : "Send button name",
"buttonType" : "Button type, REPLY, DEEP_LINK, OPEN_APP, OPEN_URL, DISMISS",
"link" : "Link when button is clicked",
"hint" : "Button hint"
} ],
"media" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"androidMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"iosMedia" : {
"sourceType" : "Media location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE",
"mediaType" : "Media type, IMAGE, GIF, VIDEO, AUDIO. Android only supports IMAGE.",
"extension" : "Media file extension, jpg, png",
"expandable" : true
},
"largeIcon" : {
"sourceType" : "Large icon location, REMOTE, LOCAL",
"source" : "Address of the media location, URL, LOCAL_RESOURCE"
},
"group" : {
"key" : "Group key, a feature to group multiple messages together, supported on Android only",
"description" : "Group description"
}
},
"style" : {
"useHtmlStyle" : true
},
"customKey" : "customValue"
}
}'
Deletes a template.
Request
DELETE /template/v1.0/PUSH/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete Push Template
DELETE {{endpoint}}/template/v1.0/PUSH/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/PUSH/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves the list of parameters included in a template.
Request
GET /template/v1.0/{messageChannel}/templates/{templateId}/parameters
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Category | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | App Key |
| X-NHN-Authorization | Header | String | O | Access token |
| messageChannel | Path | Enum | O | Message channel. [SMS(SMS), ALIMTALK(AlimTalk), BRANDMESSAGE(Branded Message), RCS(RCS), EMAIL(Email), PUSH(Push)] |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateParameter" : {
"validateTimestamp" : "",
"timestamp" : "",
"validateFailDomainList" : [ {
"domain" : "",
"verifyYn" : "",
"spfYn" : "",
"dkimVerifyYn" : "",
"dmarcYn" : ""
} ]
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateParameter | Object | X | Template parameter result JSON |
Request Example
### Get Template Parameters
GET {{endpoint}}/template/v1.0/{{messageChannel}}/templates/{{templateId}}/parameters
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/${messageChannel}/templates/${templateId}/parameters" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Registers a template.
Request
POST /template/v1.0/BRANDMESSAGE/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Category | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | Appkey |
| X-NHN-Authorization | Header | String | O | Access token |
Request Body
{
"templateName" : "Brand Message Template",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a",
"senderProfileType" : "NORMAL"
},
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro Header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| categoryId | String | X | Category ID |
| messagePurpose | String | X | Message content type Default: NORMAL [NORMAL (general), AD (advertisement), AUTH (authentication)] |
| sender | Object | O | Sender information |
| sender.senderKey | String | O | Sender profile sender key (40 characters) |
| sender.senderProfileType | String | O | Sender profile type (NORMAL: general, GROUP: group) [GROUP, NORMAL] |
| content | Object | O | Brand message content |
| content.messageType | String | O | Brand message bubble type. TEXT: text type, IMAGE: image type, WIDE: wide image type, WIDE_ITEM_LIST: wide item list type, CAROUSEL_FEED: carousel feed type, CAROUSEL_COMMERCE: carousel commerce type, COMMERCE: commerce type, PREMIUM_VIDEO: premium video type [TEXT, IMAGE, WIDE, WIDE_ITEM_LIST, CAROUSEL_FEED, PREMIUM_VIDEO, COMMERCE, CAROUSEL_COMMERCE] |
| content.adult | Boolean | X | Whether the message is for adults (default: false). If set to adult, the message is shown only to recipients who have completed adult verification Default: false |
| content.header | String | X | Message header. WIDE_ITEM_LIST: required (up to 20 characters), PREMIUM_VIDEO: optional (up to 20 characters). Not available for other types |
| content.content | String | X | Template body. TEXT: required (up to 1,300 characters, up to 99 line breaks), IMAGE: required (up to 1,300 characters), WIDE: required (up to 76 characters, up to 5 line breaks), PREMIUM_VIDEO: optional (up to 76 characters, up to 5 line breaks). WIDE_ITEM_LIST/CAROUSEL_FEED/CAROUSEL_COMMERCE: not available. URL input is supported |
| content.additionalContent | String | X | Additional content. Available only for the COMMERCE type (optional, up to 34 characters). CAROUSEL_COMMERCE uses additionalContent within carousel items |
| content.image | Object | X | Brand message image. Either attachmentId or imageUrl is required |
| content.image.attachmentId | String | X | Attachment ID. Select either attachmentId or imageUrl |
| content.image.imageUrl | String | X | Image URL. Select either attachmentId or imageUrl |
| content.image.imageLink | String | X | URL to go to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used |
| content.carousel | Object | X | Carousel message information. Required for the CAROUSEL_FEED/CAROUSEL_COMMERCE type |
| content.carousel.head | Object | X | Carousel intro area. Available only for CAROUSEL_COMMERCE (optional). If used, header, content, and an image (image.attachmentId or image.imageUrl) are required. When head is used, list can contain 1–5 items; when head is not used, 2–6 items |
| content.carousel.head.header | String | X | Intro header. Required when head is used (up to 20 characters) |
| content.carousel.head.content | String | X | Intro content. Required when head is used (up to 50 characters) |
| content.carousel.head.image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| content.carousel.head.image.attachmentId | String | X | Attachment ID. Choose one of attachmentId or imageUrl |
| content.carousel.head.image.imageUrl | String | X | Image URL. Choose one of attachmentId or imageUrl |
| content.carousel.head.linkMo | String | X | Mobile web link to go to when the intro is clicked. Required when another link (linkPc/schemeIos/schemeAndroid) is entered |
| content.carousel.head.linkPc | String | X | PC web link to go to when the intro is clicked. Optional |
| content.carousel.head.schemeIos | String | X | iOS app link to open when the intro is clicked. Optional |
| content.carousel.head.schemeAndroid | String | X | Android app link to open when the intro is clicked. Optional |
| content.carousel.list | Array | O | List of carousel items. 1 to 5 items when head is used; 2 to 6 items when not used |
| content.carousel.list[].header | String | X | Carousel item title. CAROUSEL_FEED: required (up to 20 characters). CAROUSEL_COMMERCE: not available |
| content.carousel.list[].message | String | X | Carousel item message. CAROUSEL_FEED: required (up to 180 characters). CAROUSEL_COMMERCE: not available |
| content.carousel.list[].additionalContent | String | X | Additional content. CAROUSEL_COMMERCE: optional (up to 34 characters). CAROUSEL_FEED: not available |
| content.carousel.list[].image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| content.carousel.list[].image.attachmentId | String | X | Attachment ID. One of attachmentId or imageUrl |
| content.carousel.list[].image.imageUrl | String | X | Image URL. One of attachmentId or imageUrl |
| content.carousel.list[].image.imageLink | String | X | URL to go to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used |
| content.carousel.list[].commerce | Object | X | Commerce information. Required for COMMERCE/CAROUSEL_COMMERCE type |
| content.carousel.list[].commerce.title | String | O | Product title (up to 30 characters). Required |
| content.carousel.list[].commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required |
| content.carousel.list[].commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, one of discountRate or discountFixed is required |
| content.carousel.list[].commerce.discountRate | Integer | X | Discount rate (0–100). One of discountRate or discountFixed when discountPrice is present |
| content.carousel.list[].commerce.discountFixed | Integer | X | Fixed discount price (0–999,999). If discountPrice exists, choose either this or discountRate |
| content.carousel.list[].buttons | Array | O | Carousel item buttons. Minimum 1, maximum 2 required. AC button must be placed last |
| content.carousel.list[].buttons[].name | String | X | Button name. TEXT/IMAGE: up to 14 characters, others: up to 8 characters. AC type: send without a value. BF type: choose one of "Take Survey", "Apply", or "Enter" |
| content.carousel.list[].buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| content.carousel.list[].buttons[].linkMo | String | X | Mobile web link (http/https). Required for WL type; optional for AL type (required when entered with either schemeIos or schemeAndroid) |
| content.carousel.list[].buttons[].linkPc | String | X | PC web link (http/https). Optional for WL/AL types |
| content.carousel.list[].buttons[].schemeIos | String | X | iOS app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.carousel.list[].buttons[].schemeAndroid | String | X | Android app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.carousel.list[].buttons[].bizFormId | Integer | X | Business form ID. Required for BF type |
| content.carousel.list[].coupon | Object | X | Coupon information. TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE: optional. CAROUSEL_FEED/CAROUSEL_COMMERCE: used within a carousel item |
| content.carousel.list[].coupon.title | String | O | Coupon title. Required. Select one of the following: "{N}KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} Free coupon" (product name up to 7 characters), "{product name} UP coupon" (product name up to 7 characters) |
| content.carousel.list[].coupon.description | String | O | Coupon description. Required. TEXT/IMAGE/COMMERCE: up to 12 characters, WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO: up to 18 characters |
| content.carousel.list[].coupon.linkMo | String | X | Mobile web link (http/https) to open when the coupon is clicked. Required if not using a channel coupon URL |
| content.carousel.list[].coupon.linkPc | String | X | PC web link to open when the coupon is clicked. Optional |
| content.carousel.list[].coupon.schemeIos | String | X | iOS app link to open when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| content.carousel.list[].coupon.schemeAndroid | String | X | Android app link to open when the coupon is clicked. At least one of schemeAndroid or schemeIos is required when using a channel coupon URL |
| content.carousel.tail | Object | X | Carousel more button link information. Optional. linkMo is required when used |
| content.carousel.tail.linkMo | String | X | Mobile web link (http/https) to open when the more button is clicked. Required when tail is used |
| content.carousel.tail.linkPc | String | X | PC web link to open when the more button is clicked. Optional |
| content.carousel.tail.schemeIos | String | X | iOS app link to open when the more button is clicked. Optional |
| content.carousel.tail.schemeAndroid | String | X | Android app link to open when the More button is clicked. Optional |
| content.item | Object | X | Wide item list (WIDE_ITEM_LIST) item information. Required for the WIDE_ITEM_LIST type |
| content.item.list | Array | O | Wide item list. Minimum 3, maximum 4 |
| content.item.list[].title | String | X | Item title (up to 1 line break). First item: optional (up to 25 characters), items 2–4: required (up to 30 characters) |
| content.item.list[].image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| content.item.list[].image.attachmentId | String | X | Attachment ID. Select one of attachmentId or imageUrl |
| content.item.list[].image.imageUrl | String | X | Image URL. Select one of attachmentId or imageUrl |
| content.item.list[].linkMo | String | O | Mobile web link (http/https) to open when the item is clicked. Required |
| content.item.list[].linkPc | String | X | PC web link (http/https) to open when the item is clicked. Optional |
| content.item.list[].schemeIos | String | X | iOS app link to open when the item is clicked. Optional |
| content.item.list[].schemeAndroid | String | X | Android app link to launch when the item is clicked. Optional |
| content.video | Object | X | Video information. Required for the PREMIUM_VIDEO type |
| content.video.videoUrl | String | O | Kakao TV video URL (must start with https://tv.kakao.com/). Required for the PREMIUM_VIDEO type |
| content.video.thumbnailUrl | String | X | Video thumbnail image URL. Optional. If not set, the default Kakao TV thumbnail is used |
| content.commerce | Object | X | Commerce information. Required for the COMMERCE/CAROUSEL_COMMERCE type |
| content.commerce.title | String | O | Product title (up to 30 characters). Required |
| content.commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required |
| content.commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, either discountRate or discountFixed is required |
| content.commerce.discountRate | Integer | X | Discount rate (0–100). If discountPrice is present, choose one of discountRate or discountFixed |
| content.commerce.discountFixed | Integer | X | Fixed discount amount (0–999,999). If discountPrice is present, choose one of discountRate or discountFixed |
| content.buttons | Array | X | List of message buttons. TEXT/IMAGE: up to 5 (up to 4 when a coupon is applied), WIDE/WIDE_ITEM_LIST: up to 2, PREMIUM_VIDEO: up to 1, COMMERCE: required (minimum 1, maximum 2). CAROUSEL_FEED/CAROUSEL_COMMERCE: use buttons inside carousel items |
| content.buttons[].name | String | X | Button name. TEXT/IMAGE: up to 14 characters; others: up to 8 characters. AC type: send without a value. BF type: select one of "Participate in survey", "Apply", or "Enter" |
| content.buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| content.buttons[].linkMo | String | X | Mobile web link (http/https). Required for WL type; optional for AL type (required when entered together with schemeIos or schemeAndroid) |
| content.buttons[].linkPc | String | X | PC web link (http/https). Optional for WL/AL types |
| content.buttons[].schemeIos | String | X | iOS app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.buttons[].schemeAndroid | String | X | Android app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.buttons[].bizFormId | Integer | X | Business form ID. Required for BF type |
| content.coupon | Object | X | Coupon information. Optional for TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE. CAROUSEL_FEED/CAROUSEL_COMMERCE: used inside carousel items |
| content.coupon.title | String | O | Coupon title. Required. Select one of the following formats: "{N} KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} free coupon" (product name up to 7 characters), or "{product name} UP coupon" (product name up to 7 characters) |
| content.coupon.description | String | O | Coupon description. Required. TEXT/IMAGE/COMMERCE: up to 12 characters, WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO: up to 18 characters |
| content.coupon.linkMo | String | X | Mobile web link (http/https) to open when the coupon is clicked. Required if not using a channel coupon URL |
| content.coupon.linkPc | String | X | PC web link to open when the coupon is clicked. Optional |
| content.coupon.schemeIos | String | X | iOS app link to launch when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| content.coupon.schemeAndroid | String | X | Android app link to launch when the coupon is clicked. At least one of schemeAndroid or schemeIos is required when using a channel coupon URL |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"templateId" : "A9z0A9z0"
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| templateId | String | O | Template ID issued when the template is registered |
Request Example
### Register a brand message template
POST {{endpoint}}/template/v1.0/BRANDMESSAGE/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "Brand message template",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a",
"senderProfileType" : "NORMAL"
},
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}
curl -X POST "${endpoint}/template/v1.0/BRANDMESSAGE/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "Brand message template",
"categoryId" : "20230131070811m2fDe1rXx80",
"messagePurpose" : "NORMAL",
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a",
"senderProfileType" : "NORMAL"
},
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}'
Retrieves a list of templates.
Request
GET /template/v1.0/BRANDMESSAGE/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Type | Format | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | App Key |
| X-NHN-Authorization | Header | String | O | Access token |
| templateName | Query | String | X | Template name (LIKE search) |
| senderKey | Query | String | X | Sender key |
| limit | Query | Number | X | If not set, defaults to 20 (maximum 1000) |
| offset | Query | Number | X | If not set, defaults to 0 |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"totalCount" : 1,
"templates" : [ {
"templateId" : "A9z0A9z0",
"templateName" : "Delivery complete",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
} ]
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| totalCount | Integer | O | Total count |
| templates | Array | O | |
| templates[].templateId | String | O | Template ID issued when the template was registered |
| templates[].templateName | String | O | Template name |
| templates[].categoryId | String | O | Category ID |
| templates[].messageChannel | String | O | Message channel [SMS (SMS), ALIMTALK (AlimTalk), BRANDMESSAGE (Brand Message), EMAIL (Email), RCS (RCS), PUSH (Push)] |
| templates[].messagePurpose | String | X | Message content type Default: NORMAL [NORMAL (General), AD (Advertisement), AUTH (Authentication)] |
| templates[].messagePurposes | Array | O | |
| templates[].createdDateTime | String | O | Template creation date and time |
| templates[].updatedDateTime | String | O | Template last modified date and time |
Request Example
### List brand message templates
GET {{endpoint}}/template/v1.0/BRANDMESSAGE/templates
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/BRANDMESSAGE/templates" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Retrieves the details of a template.
Request
GET /template/v1.0/BRANDMESSAGE/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Category | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | App Key |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
},
"template" : {
"templateId" : "A9z0A9z0",
"templateCode" : "TMPL_001",
"templateName" : "Brand message template",
"categoryId" : "20230131070811m2fDe1rXx80",
"messageChannel" : "SMS",
"messagePurpose" : "NORMAL",
"messagePurposes" : [ "NORMAL" ],
"sender" : {
"senderKey" : "3f8a6b1c5d9e2f7a0b4c8d3e6f1a9b2c5d7e0f4a",
"senderProfileId" : "@nhnCloud",
"senderProfileType" : "NORMAL"
},
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time buyers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time buyers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"status" : "A",
"createdDateTime" : "2024-10-29T06:00:01.000+09:00",
"updatedDateTime" : "2024-10-29T06:00:01.000+09:00"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | X | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
| template | Object | X | |
| template.templateId | String | X | Template ID |
| template.templateCode | String | X | KakaoTalk template code |
| template.templateName | String | X | Template name |
| template.categoryId | String | X | Category ID |
| template.messageChannel | String | X | Message channel [SMS(SMS), ALIMTALK(Alim Talk), BRANDMESSAGE(Brand Message), EMAIL(Email), RCS(RCS), PUSH(Push)] |
| template.messagePurpose | String | X | Message content type Default: NORMAL [NORMAL, AD, AUTH] |
| template.messagePurposes | Array | X | |
| template.sender | Object | X | Brand message sender information |
| template.sender.senderKey | String | O | Sender profile sender key (40 characters). Group sender keys cannot be used |
| template.sender.senderProfileId | String | X | KakaoTalk channel name |
| template.sender.senderProfileType | String | X | Sender profile type (NORMAL: general, GROUP: group) [GROUP, NORMAL] |
| template.content | Object | X | Brand message content |
| template.content.messageType | String | O | Brand message bubble type. TEXT: text type, IMAGE: image type, WIDE: wide image type, WIDE_ITEM_LIST: wide item list type, CAROUSEL_FEED: carousel feed type, CAROUSEL_COMMERCE: carousel commerce type, COMMERCE: commerce type, PREMIUM_VIDEO: premium video type [TEXT, IMAGE, WIDE, WIDE_ITEM_LIST, CAROUSEL_FEED, PREMIUM_VIDEO, COMMERCE, CAROUSEL_COMMERCE] |
| template.content.adult | Boolean | X | Whether the message is for adults only (default: false). When set to adult, the message is displayed only to recipients who have completed adult verificationDefault: false |
| template.content.header | String | X | Message header. WIDE_ITEM_LIST: required (up to 20 characters), PREMIUM_VIDEO: optional (up to 20 characters). Not available for other types |
| template.content.content | String | X | Template body. TEXT: required (up to 1,300 characters, up to 99 line breaks), IMAGE: required (up to 1,300 characters), WIDE: required (up to 76 characters, up to 5 line breaks), PREMIUM_VIDEO: optional (up to 76 characters, up to 5 line breaks). Not available for WIDE_ITEM_LIST/CAROUSEL_FEED/CAROUSEL_COMMERCE. URLs can be entered. |
| template.content.additionalContent | String | X | Additional content. Only available for the COMMERCE type (optional, up to 34 characters). For CAROUSEL_COMMERCE, use additionalContent within the carousel item. |
| template.content.image | Object | X | Brand message image. Either attachmentId or imageUrl is required. |
| template.content.image.attachmentId | String | X | Attachment ID. Select one of attachmentId or imageUrl. |
| template.content.image.imageUrl | String | X | Image URL. Select one of attachmentId or imageUrl. |
| template.content.image.imageLink | String | X | URL to go to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used. |
| template.content.carousel | Object | X | Carousel message information. Required for the CAROUSEL_FEED/CAROUSEL_COMMERCE type. |
| template.content.carousel.head | Object | X | Carousel intro area. Only available for CAROUSEL_COMMERCE (optional). When used, header, content, and an image (image.attachmentId or image.imageUrl) are required. When head is used, list can contain 1–5 items; when not used, 2–6 items. |
| template.content.carousel.head.header | String | X | Intro header. Required when head is used (up to 20 characters). |
| template.content.carousel.head.content | String | X | Intro content. Required when head is used (up to 50 characters). |
| template.content.carousel.head.image | Object | X | Brand message image. One of attachmentId or imageUrl is required. |
| template.content.carousel.head.image.attachmentId | String | X | Attachment ID. Select one of attachmentId or imageUrl. |
| template.content.carousel.head.image.imageUrl | String | X | Image URL. Select one of attachmentId or imageUrl. |
| template.content.carousel.head.linkMo | String | X | Mobile web link to go to when the intro is clicked. Required when another link (linkPc/schemeIos/schemeAndroid) is entered. |
| template.content.carousel.head.linkPc | String | X | PC web link to go to when the intro is clicked. Optional. |
| template.content.carousel.head.schemeIos | String | X | iOS app link to open when the intro is clicked. Optional. |
| template.content.carousel.head.schemeAndroid | String | X | Android app link to open when the intro is clicked. Optional. |
| template.content.carousel.list | Array | O | List of carousel items. 1 to 5 items when head is used; 2 to 6 items when not used. |
| template.content.carousel.list[].header | String | X | Carousel item title. CAROUSEL_FEED: required (up to 20 characters). CAROUSEL_COMMERCE: not available. |
| template.content.carousel.list[].message | String | X | Carousel item message. CAROUSEL_FEED: required (up to 180 characters). CAROUSEL_COMMERCE: not available. |
| template.content.carousel.list[].additionalContent | String | X | Additional content. CAROUSEL_COMMERCE: optional (up to 34 characters). CAROUSEL_FEED: not available |
| template.content.carousel.list[].image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| template.content.carousel.list[].image.attachmentId | String | X | Attachment ID. One of attachmentId or imageUrl |
| template.content.carousel.list[].image.imageUrl | String | X | Image URL. One of attachmentId or imageUrl |
| template.content.carousel.list[].image.imageLink | String | X | URL to go to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used |
| template.content.carousel.list[].commerce | Object | X | Commerce information. Required for COMMERCE/CAROUSEL_COMMERCE types |
| template.content.carousel.list[].commerce.title | String | O | Product title (up to 30 characters). Required |
| template.content.carousel.list[].commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required |
| template.content.carousel.list[].commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, one of discountRate or discountFixed is required |
| template.content.carousel.list[].commerce.discountRate | Integer | X | Discount rate (0–100). If discountPrice is set, one of discountRate or discountFixed |
| template.content.carousel.list[].commerce.discountFixed | Integer | X | Fixed discount price (0–999,999). Either this or discountRate is required when discountPrice is present. |
| template.content.carousel.list[].buttons | Array | O | Carousel item buttons. Minimum 1, maximum 2 required. AC button must be placed last. |
| template.content.carousel.list[].buttons[].name | String | X | Button name. TEXT/IMAGE: up to 14 characters; others: up to 8 characters. AC type: send without a value. BF type: choose one of "설문 참여하기", "신청하기", or "응모하기". |
| template.content.carousel.list[].buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| template.content.carousel.list[].buttons[].linkMo | String | X | Mobile web link (http/https). Required for WL type; optional for AL type (required when entered together with schemeIos or schemeAndroid). |
| template.content.carousel.list[].buttons[].linkPc | String | X | PC web link (http/https). Optional for WL/AL type. |
| template.content.carousel.list[].buttons[].schemeIos | String | X | iOS app link. For AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required. |
| template.content.carousel.list[].buttons[].schemeAndroid | String | X | Android app link. For AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required. |
| template.content.carousel.list[].buttons[].bizFormId | Integer | X | Business form ID. Required for BF type. |
| template.content.carousel.list[].coupon | Object | X | Coupon information. TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE: optional. CAROUSEL_FEED/CAROUSEL_COMMERCE: used within a carousel item. |
| template.content.carousel.list[].coupon.title | String | O | Coupon title. Required. Select one of the following: "{N}KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} Free coupon" (product name: up to 7 characters), "{product name} UP coupon" (product name: up to 7 characters) |
| template.content.carousel.list[].coupon.description | String | O | Coupon description. Required. TEXT/IMAGE/COMMERCE: up to 12 characters, WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO: up to 18 characters |
| template.content.carousel.list[].coupon.linkMo | String | X | Mobile web link (http/https) to open when the coupon is clicked. Required if not using a channel coupon URL |
| template.content.carousel.list[].coupon.linkPc | String | X | PC web link to open when the coupon is clicked. Optional |
| template.content.carousel.list[].coupon.schemeIos | String | X | iOS app link to open when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| template.content.carousel.list[].coupon.schemeAndroid | String | X | Android app link to open when the coupon is clicked. At least one of schemeAndroid or schemeIos is required when using a channel coupon URL |
| template.content.carousel.tail | Object | X | Carousel more button link information. Optional. If used, linkMo is required |
| template.content.carousel.tail.linkMo | String | X | Mobile web link (http/https) to open when the more button is clicked. Required when tail is used |
| template.content.carousel.tail.linkPc | String | X | PC web link to open when the more button is clicked. Optional |
| template.content.carousel.tail.schemeIos | String | X | iOS app link to open when the more button is clicked. Optional |
| template.content.carousel.tail.schemeAndroid | String | X | Android app link to launch when the More button is clicked. Optional |
| template.content.item | Object | X | Item information for the wide item list type (WIDE_ITEM_LIST). Required for the WIDE_ITEM_LIST type |
| template.content.item.list | Array | O | Wide item list. At least 3, up to 4 |
| template.content.item.list[].title | String | X | Item title (up to 1 line break). First item: optional (up to 25 characters), items 2–4: required (up to 30 characters) |
| template.content.item.list[].image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| template.content.item.list[].image.attachmentId | String | X | Attachment ID. Choose one of attachmentId or imageUrl |
| template.content.item.list[].image.imageUrl | String | X | Image URL. Choose one of attachmentId or imageUrl |
| template.content.item.list[].linkMo | String | O | Mobile web link (http/https) to navigate to when the item is clicked. Required |
| template.content.item.list[].linkPc | String | X | PC web link (http/https) to navigate to when the item is clicked. Optional |
| template.content.item.list[].schemeIos | String | X | iOS app link to launch when the item is clicked. Optional |
| template.content.item.list[].schemeAndroid | String | X | Android app link to launch when the item is clicked. Optional |
| template.content.video | Object | X | Video information. Required for the PREMIUM_VIDEO type |
| template.content.video.videoUrl | String | O | Kakao TV video URL (must start with https://tv.kakao.com/). Required for the PREMIUM_VIDEO type |
| template.content.video.thumbnailUrl | String | X | Video thumbnail image URL. Optional. If not set, the default Kakao TV thumbnail is used |
| template.content.commerce | Object | X | Commerce information. Required for the COMMERCE/CAROUSEL_COMMERCE type |
| template.content.commerce.title | String | O | Product title (up to 30 characters). Required |
| template.content.commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required |
| template.content.commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, either discountRate or discountFixed is required |
| template.content.commerce.discountRate | Integer | X | Discount rate (0–100). If discountPrice is present, choose either this or discountFixed |
| template.content.commerce.discountFixed | Integer | X | Fixed discount amount (0–999,999). If discountPrice is present, choose either this or discountRate |
| template.content.buttons | Array | X | List of message buttons. TEXT/IMAGE: up to 5 (up to 4 when a coupon is applied), WIDE/WIDE_ITEM_LIST: up to 2, PREMIUM_VIDEO: up to 1, COMMERCE: required (at least 1, up to 2). CAROUSEL_FEED/CAROUSEL_COMMERCE: use buttons within carousel items |
| template.content.buttons[].name | String | X | Button name. TEXT/IMAGE: up to 14 characters, others: up to 8 characters. AC type: send without a value. BF type: select one of "Participate in Survey", "Apply", or "Enter" |
| template.content.buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| template.content.buttons[].linkMo | String | X | Mobile web link (http/https). Required for WL type; optional for AL type (required when entered together with schemeIos or schemeAndroid) |
| template.content.buttons[].linkPc | String | X | PC web link (http/https). Optional for WL/AL type |
| template.content.buttons[].schemeIos | String | X | iOS app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| template.content.buttons[].schemeAndroid | String | X | Android app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| template.content.buttons[].bizFormId | Integer | X | Business form ID. Required for BF type |
| template.content.coupon | Object | X | Coupon information. TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE: optional. CAROUSEL_FEED/CAROUSEL_COMMERCE: use within carousel items |
| template.content.coupon.title | String | O | Coupon title. Required. Select one of the following formats: "{N}KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} Free coupon" (product name: up to 7 characters), "{product name} UP coupon" (product name: up to 7 characters) |
| template.content.coupon.description | String | O | Coupon description. Required. TEXT/IMAGE/COMMERCE: up to 12 characters, WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO: up to 18 characters |
| template.content.coupon.linkMo | String | X | Mobile web link to go to when the coupon is clicked (http/https). Required if not a channel coupon URL |
| template.content.coupon.linkPc | String | X | PC web link to go to when the coupon is clicked. Optional |
| template.content.coupon.schemeIos | String | X | iOS app link to open when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| template.content.coupon.schemeAndroid | String | X | Android app link to open when the coupon is clicked. At least one of schemeAndroid or schemeIos is required when using a channel coupon URL |
| template.status | String | X | Template status. A: Registered (Active), S: Blocked (Stopped) [A, S] |
| template.createdDateTime | String | X | Template creation time |
| template.updatedDateTime | String | X | Template modification time |
Request Example
### Get brand message template details
GET {{endpoint}}/template/v1.0/BRANDMESSAGE/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X GET "${endpoint}/template/v1.0/BRANDMESSAGE/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"
Modifies a template.
Request
PUT /template/v1.0/BRANDMESSAGE/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Category | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | App Key |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
{
"templateName" : "Modify Brand Message Template",
"messagePurpose" : "NORMAL",
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro Header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}
| Path | Type | Required | Description |
|---|---|---|---|
| templateName | String | O | Template name |
| messagePurpose | String | X | Message content type Default: NORMAL [NORMAL, AD, PROMOTIONAL, AUTH] |
| content | Object | O | Brand message content |
| content.messageType | String | O | Brand message bubble type. TEXT: text type, IMAGE: image type, WIDE: wide image type, WIDE_ITEM_LIST: wide item list type, CAROUSEL_FEED: carousel feed type, CAROUSEL_COMMERCE: carousel commerce type, COMMERCE: commerce type, PREMIUM_VIDEO: premium video type [TEXT, IMAGE, WIDE, WIDE_ITEM_LIST, CAROUSEL_FEED, PREMIUM_VIDEO, COMMERCE, CAROUSEL_COMMERCE] |
| content.adult | Boolean | X | Whether the message is for adults (default: false). If set to adult, the message is only displayed to recipients who have completed adult verificationDefault: false |
| content.header | String | X | Message title. WIDE_ITEM_LIST: required (up to 20 characters), PREMIUM_VIDEO: optional (up to 20 characters). Other types: not available |
| content.content | String | X | Template body. TEXT: required (up to 1,300 characters, up to 99 line breaks), IMAGE: required (up to 1,300 characters), WIDE: required (up to 76 characters, up to 5 line breaks), PREMIUM_VIDEO: optional (up to 76 characters, up to 5 line breaks). WIDE_ITEM_LIST/CAROUSEL_FEED/CAROUSEL_COMMERCE: not available. URLs can be entered |
| content.additionalContent | String | X | Additional content. Available only for the COMMERCE type (optional, up to 34 characters). For CAROUSEL_COMMERCE, use additionalContent within the carousel item |
| content.image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| content.image.attachmentId | String | X | Attachment ID. Select one of attachmentId or imageUrl |
| content.image.imageUrl | String | X | Image URL. Choose one of attachmentId or imageUrl |
| content.image.imageLink | String | X | URL to go to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used |
| content.carousel | Object | X | Carousel message information. Required for CAROUSEL_FEED/CAROUSEL_COMMERCE types |
| content.carousel.head | Object | X | Carousel intro area. Available only for CAROUSEL_COMMERCE (optional). When used, header, content, and image (image.attachmentId or image.imageUrl) are required. When head is used, list can contain 1–5 items; when not used, 2–6 items |
| content.carousel.head.header | String | X | Intro header. Required when head is used (up to 20 characters) |
| content.carousel.head.content | String | X | Intro content. Required when head is used (up to 50 characters) |
| content.carousel.head.image | Object | X | Brand message image. One of attachmentId or imageUrl is required |
| content.carousel.head.image.attachmentId | String | X | Attachment ID. Choose one of attachmentId or imageUrl |
| content.carousel.head.image.imageUrl | String | X | Image URL. Choose one of attachmentId or imageUrl |
| content.carousel.head.linkMo | String | X | Mobile web link to go to when the intro is clicked. Required when another link (linkPc/schemeIos/schemeAndroid) is entered |
| content.carousel.head.linkPc | String | X | PC web link to go to when the intro is clicked. Optional |
| content.carousel.head.schemeIos | String | X | iOS app link to open when the intro is clicked. Optional |
| content.carousel.head.schemeAndroid | String | X | Android app link to open when the intro is clicked. Optional |
| content.carousel.list | Array | O | List of carousel items. 1–5 items when head is used, 2–6 items when not used |
| content.carousel.list[].header | String | X | Carousel item title. CAROUSEL_FEED: required (up to 20 characters). CAROUSEL_COMMERCE: not available |
| content.carousel.list[].message | String | X | Carousel item message. CAROUSEL_FEED: required (up to 180 characters). CAROUSEL_COMMERCE: not available |
| content.carousel.list[].additionalContent | String | X | Additional content. CAROUSEL_COMMERCE: optional (up to 34 characters). CAROUSEL_FEED: not available |
| content.carousel.list[].image | Object | X | Brand message image. Either attachmentId or imageUrl is required |
| content.carousel.list[].image.attachmentId | String | X | Attachment ID. Select one of attachmentId or imageUrl |
| content.carousel.list[].image.imageUrl | String | X | Image URL. Select one of attachmentId or imageUrl |
| content.carousel.list[].image.imageLink | String | X | URL to navigate to when the image is clicked (http/https). Optional. If not set, the KakaoTalk image viewer is used. |
| content.carousel.list[].commerce | Object | X | Commerce information. Required for COMMERCE/CAROUSEL_COMMERCE type. |
| content.carousel.list[].commerce.title | String | O | Product title (maximum 30 characters). Required. |
| content.carousel.list[].commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required. |
| content.carousel.list[].commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, either discountRate or discountFixed is required. |
| content.carousel.list[].commerce.discountRate | Integer | X | Discount rate (0–100). If discountPrice is present, choose either discountRate or discountFixed. |
| content.carousel.list[].commerce.discountFixed | Integer | X | Fixed discount amount (0–999,999). If discountPrice is present, choose either discountFixed or discountRate. |
| content.carousel.list[].buttons | Array | O | Carousel item buttons. Minimum 1, maximum 2 required. The AC button must be placed last. |
| content.carousel.list[].buttons[].name | String | X | Button name. TEXT/IMAGE: maximum 14 characters; others: maximum 8 characters. AC type: sent without a value. BF type: choose one of "설문 참여하기", "신청하기", or "응모하기". |
| content.carousel.list[].buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| content.carousel.list[].buttons[].linkMo | String | X | Mobile web link (http/https). Required for the WL type; optional for the AL type (required when entered together with one of schemeIos/schemeAndroid) |
| content.carousel.list[].buttons[].linkPc | String | X | PC web link (http/https). Optional for the WL/AL type |
| content.carousel.list[].buttons[].schemeIos | String | X | iOS app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.carousel.list[].buttons[].schemeAndroid | String | X | Android app link. AL type: at least 2 of linkMo, schemeAndroid, and schemeIos are required |
| content.carousel.list[].buttons[].bizFormId | Integer | X | Business form ID. Required for the BF type |
| content.carousel.list[].coupon | Object | X | Coupon information. TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE: optional. CAROUSEL_FEED/CAROUSEL_COMMERCE: used within a carousel item |
| content.carousel.list[].coupon.title | String | O | Coupon title. Required. Must be one of the following formats: "{N}KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} Free coupon" (product name up to 7 characters), "{product name} UP coupon" (product name up to 7 characters) |
| content.carousel.list[].coupon.description | String | O | Coupon description. Required. Up to 12 characters for TEXT/IMAGE/COMMERCE; up to 18 characters for WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO |
| content.carousel.list[].coupon.linkMo | String | X | Mobile web link (http/https) to navigate to when the coupon is clicked. Required if not a channel coupon URL |
| content.carousel.list[].coupon.linkPc | String | X | PC web link to navigate to when the coupon is clicked. Optional |
| content.carousel.list[].coupon.schemeIos | String | X | iOS app link to open when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| content.carousel.list[].coupon.schemeAndroid | String | X | Android app link to open when the coupon is clicked. At least one of schemeAndroid or schemeIos is required when using a channel coupon URL |
| content.carousel.tail | Object | X | Link information for the carousel "View More" button. Optional. linkMo is required when used |
| content.carousel.tail.linkMo | String | X | Mobile web link (http/https) to open when the "View More" button is clicked. Required when tail is used |
| content.carousel.tail.linkPc | String | X | PC web link to open when the "View More" button is clicked. Optional |
| content.carousel.tail.schemeIos | String | X | iOS app link to open when the "View More" button is clicked. Optional |
| content.carousel.tail.schemeAndroid | String | X | Android app link to open when the "View More" button is clicked. Optional |
| content.item | Object | X | Item information for the wide item list type (WIDE_ITEM_LIST). Required for the WIDE_ITEM_LIST type |
| content.item.list | Array | O | Wide item list (at least 3, up to 4) |
| content.item.list[].title | String | X | Item title (up to 1 line break). First item: optional (up to 25 characters); items 2–4: required (up to 30 characters) |
| content.item.list[].image | Object | X | Brand message image. Either attachmentId or imageUrl is required |
| content.item.list[].image.attachmentId | String | X | Attachment ID. Either attachmentId or imageUrl |
| content.item.list[].image.imageUrl | String | X | Image URL. Either attachmentId or imageUrl |
| content.item.list[].linkMo | String | O | Mobile web link (http/https) to go to when the item is clicked. Required |
| content.item.list[].linkPc | String | X | PC web link (http/https) to go to when the item is clicked. Optional |
| content.item.list[].schemeIos | String | X | iOS app link to open when the item is clicked. Optional |
| content.item.list[].schemeAndroid | String | X | Android app link to open when the item is clicked. Optional |
| content.video | Object | X | Video information. Required for the PREMIUM_VIDEO type |
| content.video.videoUrl | String | O | Kakao TV video URL (must start with https://tv.kakao.com/). Required for the PREMIUM_VIDEO type |
| content.video.thumbnailUrl | String | X | Video thumbnail image URL. Optional. If not set, the default Kakao TV thumbnail is used |
| content.commerce | Object | X | Commerce information. Required for COMMERCE/CAROUSEL_COMMERCE type |
| content.commerce.title | String | O | Product title (up to 30 characters). Required |
| content.commerce.regularPrice | Integer | O | Regular price (0–99,999,999). Required |
| content.commerce.discountPrice | Integer | X | Discounted price (0–99,999,999). Optional. If used, either discountRate or discountFixed is required |
| content.commerce.discountRate | Integer | X | Discount rate (0–100). If discountPrice is present, choose either discountRate or discountFixed |
| content.commerce.discountFixed | Integer | X | Fixed discount amount (0–999,999). If discountPrice is present, choose either discountRate or discountFixed |
| content.buttons | Array | X | List of message buttons. TEXT/IMAGE: up to 5 (up to 4 if a coupon is applied), WIDE/WIDE_ITEM_LIST: up to 2, PREMIUM_VIDEO: up to 1, COMMERCE: required (at least 1, up to 2). CAROUSEL_FEED/CAROUSEL_COMMERCE: use buttons within carousel items |
| content.buttons[].name | String | X | Button name. TEXT/IMAGE: up to 14 characters; others: up to 8 characters. AC type: send without a value. BF type: one of "설문 참여하기", "신청하기", or "응모하기" |
| content.buttons[].type | String | O | Button type. WL: Web Link, AL: App Link, BK: Bot Keyword, MD: Message Delivery, BC: Bot for Consultation, BT: Bot Transfer, BF: Business Form, AC: Channel Added [WL, AL, MD, BT, AC, BK, BF, BC] |
| content.buttons[].linkMo | String | X | Mobile web link (http/https). Required for WL type; optional for AL type (required when entered together with either schemeIos or schemeAndroid) |
| content.buttons[].linkPc | String | X | PC web link (http/https). Optional for the WL/AL type |
| content.buttons[].schemeIos | String | X | iOS app link. AL type: at least two of linkMo, schemeAndroid, and schemeIos are required |
| content.buttons[].schemeAndroid | String | X | Android app link. AL type: at least two of linkMo, schemeAndroid, and schemeIos are required |
| content.buttons[].bizFormId | Integer | X | Business form ID. Required for the BF type |
| content.coupon | Object | X | Coupon information. TEXT/IMAGE/WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO/COMMERCE: optional. CAROUSEL_FEED/CAROUSEL_COMMERCE: used within carousel items |
| content.coupon.title | String | O | Coupon title. Required. Must be one of the following formats: "{N}KRW off coupon" (N: 1–99,999,999), "{N}% off coupon" (N: 1–100), "Shipping discount coupon", "{product name} Free coupon" (product name up to 7 characters), "{product name} UP coupon" (product name up to 7 characters) |
| content.coupon.description | String | O | Coupon description. Required. TEXT/IMAGE/COMMERCE: up to 12 characters, WIDE/WIDE_ITEM_LIST/PREMIUM_VIDEO: up to 18 characters |
| content.coupon.linkMo | String | X | Mobile web link (http/https) to navigate to when the coupon is clicked. Required if not using a channel coupon URL |
| content.coupon.linkPc | String | X | PC web link to navigate to when the coupon is clicked. Optional |
| content.coupon.schemeIos | String | X | iOS app link to launch when the coupon is clicked. At least one of schemeIos or schemeAndroid is required when using a channel coupon URL |
| content.coupon.schemeAndroid | String | X | Android app link to open when the coupon is clicked. Required (at least one) along with schemeIos when using a channel coupon URL |
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Modify a Brand Message Template
PUT {{endpoint}}/template/v1.0/BRANDMESSAGE/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
{
"templateName" : "Modify Brand Message Template",
"messagePurpose" : "NORMAL",
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro Header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 KRW discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}
curl -X PUT "${endpoint}/template/v1.0/BRANDMESSAGE/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}" \
-d '{
"templateName" : "Modify brand message template",
"messagePurpose" : "NORMAL",
"content" : {
"messageType" : "TEXT",
"adult" : false,
"header" : "Header",
"content" : null,
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"carousel" : {
"head" : {
"header" : "Intro header",
"content" : null,
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
},
"list" : [ {
"header" : "Carousel Header",
"message" : "Carousel Message",
"additionalContent" : "Price information",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg",
"imageLink" : "https://www.example.com"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 won discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
} ],
"tail" : {
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
},
"item" : {
"list" : [ {
"title" : "Item title",
"image" : {
"attachmentId" : "20230131070811m2fDe1rXx80",
"imageUrl" : "https://example.com/image.jpg"
},
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
} ]
},
"video" : {
"videoUrl" : "https://tv.kakao.com/v/123456789",
"thumbnailUrl" : "https://www.example.com/thumbnail.jpg"
},
"commerce" : {
"title" : "Product title",
"regularPrice" : 50000,
"discountPrice" : 45000,
"discountRate" : 10,
"discountFixed" : 5000
},
"buttons" : [ {
"name" : "Button name",
"type" : "WL",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android",
"bizFormId" : 12345
} ],
"coupon" : {
"title" : "5,000 won discount coupon",
"description" : "For first-time customers only",
"linkMo" : "https://m.example.com",
"linkPc" : "https://www.example.com",
"schemeIos" : "example://ios",
"schemeAndroid" : "example://android"
}
}
}'
Deletes a template.
Request
DELETE /template/v1.0/BRANDMESSAGE/templates/{templateId}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
Request Parameters
| Name | Category | Type | Required | Description |
|---|---|---|---|---|
| X-NC-APP-KEY | Header | String | O | App Key |
| X-NHN-Authorization | Header | String | O | Access token |
| templateId | Path | String | O | Template ID |
Request Body
This API does not require a request body.
Response Body
{
"header" : {
"isSuccessful" : true,
"resultCode" : 0,
"resultMessage" : "SUCCESS"
}
}
| Path | Type | Not Null | Description |
|---|---|---|---|
| header | Object | O | |
| header.isSuccessful | Boolean | O | Indicates whether the request was successful. Default: true |
| header.resultCode | Integer | O | Result code of the request. Default: 0 |
| header.resultMessage | String | O | Result message of the request. Default: SUCCESS |
Request Example
### Delete a Brand Message Template
DELETE {{endpoint}}/template/v1.0/BRANDMESSAGE/templates/{{templateId}}
X-NC-APP-KEY: {appKey}
X-NHN-Authorization: Bearer {accessToken}
curl -X DELETE "${endpoint}/template/v1.0/BRANDMESSAGE/templates/${templateId}" \
-H "X-NC-APP-KEY: {appKey}" \
-H "X-NHN-Authorization: Bearer {accessToken}"