본문 바로가기메인 메뉴 바로가기사이드 메뉴 바로가기

kakao developers

Related sites
  • Docs
  • Kakao Talk Channel
  • Webhook

사이드 메뉴

Search

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.

MethodURLRequired response formatAuthorization
POSTWebhook URL registered in [App] > [Webhook] > [Kakao Talk Channel webhook] on the app management pageHTTP status code 2XX (within 3 seconds)

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.

NameTypeDescriptionRequired
AuthorizationStringPrimary admin key sent to verify whether the webhook is valid.
Authorization: KakaoAK ${PRIMARY_ADMIN_KEY}
O
X-Kakao-Resource-IDStringUnique ID for distinguishing each webhook.
X-Kakao-Resource-ID: ${UNIQUE_ID}
O
User-AgentStringString indicating that the webhook was sent from Kakao.
User-Agent: KakaoOpenAPI/1.0
O
NameTypeDescriptionRequired
eventEnumChanged status of the relationship between a user and a Kakao Talk Channel.
  • added: Added
  • blocked: Blocked
O
idStringService user ID who added or blocked a Kakao Talk Channel.O
id_typeEnumid type.
  • app_user_id: A user who has agreed to provide 'Kakao Talk Channel addition status and details' among Kakao Login consent items.
  • open_id: A user who has not agreed to provide 'Kakao Talk Channel addition status and details' among Kakao Login consent items.
O
channel_public_idStringProfile 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_uuidStringKakao Talk Channel ID for search purpose.O
updated_atDatetimeThe 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.

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"
}'

Was this helpful?

    Kakao Talk Channel > Webhook - Kakao Developers | Docs