사이드 메뉴
Getting started
Kakao Developers
Login
Communication
Advertisement
- Concepts
- Ad creation: Ad account
- Ad creation: Campaign
- Ad creation: Ad group
- Targeting for ad group
- Custom audience targeting for ad group
- Ad creation: Creative common
- Ad creation: Display creative
- Ad creation: Message creative
- Ad creation: Personalized message creative
- Bizboard landing settings
- Report
- Message management
- Personalized message management
- Message ad management
- Message ad operation
- Ad View management
- Business Form+ management
- Business Form linkage management
- Pixel & SDK linkage management
- Audience management
- Engagement targeting management
- Customer file management
- Friend group management
- Ad account management
- Reference
- Type information
- Error code
Webhook
This document introduces the Kakao Talk Channel webhook feature.
This document explains the webhook requests that Kakao sends to your service's endpoint. Note that this specification describes incoming webhook requests from Kakao, not API requests that your service makes to Kakao.
For the overall workflow and detailed implementation guide for webhooks, see Implementation steps.
| Method | URL | Required response format | Authorization |
|---|---|---|---|
POST | Webhook URL registered in [App] > [Webhook] > [Kakao Talk Channel webhook] on the app management page | HTTP status code 2XX (within 3 seconds) |
| Requirements | See also | |
|---|---|---|
The Kakao Talk Channel webhook notifies the service when a user adds or blocks a Kakao Talk channel linked to the app.
Upon receiving the callback, the service must respond with an HTTP status code 2XX within 3 seconds.
For how to implement webhooks, refer to Implementation steps.
| Name | Type | Description | Required |
|---|---|---|---|
| Authorization | String | Primary admin key sent to verify whether the webhook is valid.Authorization: KakaoAK ${PRIMARY_ADMIN_KEY} | O |
| X-Kakao-Resource-ID | String | Unique ID for distinguishing each webhook.X-Kakao-Resource-ID: ${UNIQUE_ID} | O |
| User-Agent | String | String indicating that the webhook was sent from Kakao.User-Agent: KakaoOpenAPI/1.0 | O |
| Name | Type | Description | Required |
|---|---|---|---|
| event | Enum | Changed status of the relationship between a user and a Kakao Talk Channel.
| O |
| id | String | Service user ID who added or blocked a Kakao Talk Channel. | O |
| id_type | Enum | id type.
| O |
| channel_public_id | String | Profile ID of the Kakao Talk Channel whose relationship with the user has changed. Note: How to check the Kakao Talk Channel profile ID | O |
| channel_uuid | String | Kakao Talk Channel ID for search purpose. | O |
| updated_at | Datetime | The time when the Kakao Talk Channel relationship changed (in RFC3339 format based on UTC). | O |
plus_friend_public_id: Deprecated, profile ID of the Kakao Talk Channel (String), replaced with channel_public_id, refer to Notice
* plus_friend_uuid: Deprecated, Kakao Talk Channel ID for search purpose (String), replaced with channel_uuid, refer to Notice
* timestamp: Deprecated, the time when the Kakao Talk Channel relationship changed (Long, Unit: ms), replaced with updated_at
You must respond with HTTP status code 2XX within 3 seconds of receiving the webhook request.
This is the example of the webhook request that Kakao sends to your service when one of Kakao Talk Channels is added or blocked.
Request
curl -v -X POST "${KAKAOTALK_CHANNEL_CALLBACK_URL}" \-H "Authorization: KakaoAK ${PRIMARY_ADMIN_KEY}" \-H "X-Kakao-Resource-ID: ${UNIQUE_ID}" \-H "User-Agent: KakaoOpenAPI/1.0" \-H "Content-Type: application/json" \-d '{"event": "added","id": "1111","id_type": "app_user_id","channel_public_id": "_FLX","channel_uuid": "@ad","updated_at": "2019-11-21T10:14:07Z"}'