The KakaoTalk template endpoint offers a way for you to manage your KakaoTalk channel-specific templates that can be used with the Conversation API.
Returns a paginated list of templates for the specified project. If no page token is supplied then the first `50` templates are returned in alphabetical order.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
List of templates
BadRequest
Unauthorized
NotFound
InternalServerError
Response with templates.
{- "totalSize": 2,
- "pageSize": 50,
- "templates": [
- {
- "id": "1a76b24e-bead-4c72-b468-6c3bdfff0ee6",
- "code": "S7yFqaKqJ8tsnBZH2CEd",
- "state": "APPROVED",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}, - "created": "2023-02-24T10:19:31.372Z",
- "modified": "2023-02-24T10:19:31.372Z"
}, - {
- "id": "1a76b24e-bead-4c72-b468-6c3bdfff0ee6",
- "code": "S7yFqaKqJ8tsnBZH2CEd",
- "state": "APPROVED",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}, - "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}
}, - "created": "2023-02-24T10:19:31.372Z",
- "modified": "2023-02-24T10:19:31.372Z"
}
]
}
Creates a new template with the request data.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
Template data
Created template
BadRequest
Unauthorized
NotFound
Conflict
FailedDependency
InternalServerError
Minimum body to create a template.
{- "details": {
- "name": "Example name",
- "content": "Example content",
- "language": "EN"
}
}
Response when successfully creating a template.
{- "id": "1a76b24e-bead-4c72-b468-6c3bdfff0ee6",
- "code": "S7yFqaKqJ8tsnBZH2CEd",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}
}, - "created": "2023-02-24T10:19:31.372Z",
- "modified": "2023-02-24T10:19:31.372Z"
}
{- "type": "KAKAOTALK_TEMPLATE_COMMENT_ADDED",
- "comment": "new template comment"
}
Returns a template for a project, with the specified name and language.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string The unique name of the template. |
Template
BadRequest
Unauthorized
NotFound
InternalServerError
Response when successfully creating a template.
{- "id": "1a76b24e-bead-4c72-b468-6c3bdfff0ee6",
- "code": "S7yFqaKqJ8tsnBZH2CEd",
- "state": "APPROVED",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}, - "created": "2023-02-24T10:19:31.372Z",
- "modified": "2023-02-24T10:19:31.372Z"
}
Delete template that matches the template code.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string The unique name of the template. |
Template deleted
BadRequest
Unauthorized
NotFound
InternalServerError
{- "errorCode": "project_not_initialized",
- "message": "Project not initialized for KakaoTalk.",
- "resolution": "Verify that the project ID is correct and that it has been onboarded for KakaoTalk."
}
Updates an existing template with the request data.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string |
Updating data
Updated template
BadRequest
Unauthorized
NotFound
Conflict
FailedDependency
InternalServerError
Minimum body to update a template.
{ }
Response when successfully updating a template.
{- "id": "1a76b24e-bead-4c72-b468-6c3bdfff0ee6",
- "code": "S7yFqaKqJ8tsnBZH2CEd",
- "changes": {
- "status": "IN_PROGRESS",
- "details": {
- "language": "EN",
- "messageType": "BASIC",
- "emphasizeType": "EMPHASIZE_TYPE_NONE",
- "categoryCode": "001001",
- "securityFlag": false,
- "name": "Example name",
- "content": "Example content",
- "extra": "Example extra",
- "ad": "Example ad",
- "title": "Example title",
- "subtitle": "Example subtitle",
- "imageName": "Example image name",
- "buttons": [
- {
- "ordering": 1,
- "type": "APP_LINK",
- "name": "Example Name",
}
]
}
}, - "created": "2023-02-24T10:19:31.372Z",
- "modified": "2023-02-24T10:19:31.372Z"
}
Paginated list of activities for a template. Ordered from the most recent one to the oldest one.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string The unique name of the template. |
Recent activities on template
BadRequest
Unauthorized
NotFound
InternalServerError
Response for all template activities.
{- "totalSize": 2,
- "pageSize": 50,
- "notifications": [
- {
- "type": "CREATED",
- "created": "2023-01-19T13:11:08.204Z",
- "author": "Provisioning API user"
}, - {
- "type": "COMMENT_ADDED",
- "created": "2023-01-19T13:11:08.204Z",
- "comment": "Example comment",
- "author": "Provisioning API user"
}
]
}
Delete a template draft.
Please note that it is only possible to delete templates that have not yet been submitted to KakaoTalk.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string The unique name of the template. |
Template draft deleted
BadRequest
Unauthorized
NotFound
Conflict
InternalServerError
{- "errorCode": "project_not_initialized",
- "message": "Project not initialized for KakaoTalk.",
- "resolution": "Verify that the project ID is correct and that it has been onboarded for KakaoTalk."
}
Creates a comment for a template.
projectId required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
plusFriendId required | string The unique ID of the sender. |
templateCode required | string The unique name of the template. |
Comment data
Example body request to create a comment.
{- "comment": "Example comment."
}
Response when successfully creating a comment.
{- "type": "CREATED",
- "comment": "Example comment",
- "created": "2023-01-19T13:11:08.204Z"
}