This document introduces callback information for Kakao Login.
Check the Usage policy before using the callback.
Method | URL | Authorization |
---|---|---|
GET/POST |
Callback URL registered in [My Application] > [Kakao Login] > [Unlink]. (Example: https://example.com/unlink/callback ) |
Service app admin key |
Permission | Prerequisite | Kakao Login | User consent |
---|---|---|---|
- | Activate Kakao Login Set unlink callback |
- | - |
The Unlink callback feature sends you a callback when a user unlinks from a service app. Ensure that you cannot get an unlink callback if you request the Unlink API in your service app to unlink a specific user from your service.
Kakao sends an unlink callback in any of the following cases. To figure out which case a user corresponds to among these, check the value of referrer_type
in the unlink callback request:
200 OK
by sending a callback response to the Kakao server.200 OK
are considered failures.200 OK
when you fail to delete the user information or fail to find the user. Process the user information internally after responding.Below is the detailed information of the unlink callback that Kakao sends to your service server.
Name | Description | Required |
---|---|---|
Authorization | Admin key used to validate your app. KakaoAK ${SERVICE_APP_ADMIN_KEY} |
O |
Name | Type | Description | Required |
---|---|---|---|
app_id | String |
App ID that a user requests to unlink from. | O |
user_id | String |
Service user ID of a user who requests to unlink. | O |
referrer_type | String |
The route of a user requests to unlink. One of the followings: - ACCOUNT_DELETE : If a user deletes the Kakao Account. - FORCED_ACCOUNT_DELETE : If a user's Kakao Account is deleted through Customer Service or deleted after a four-year dormant state. - UNLINK_FROM_APPS : If a user selects [Disconnect] on 'Manage Connected Services'. - UNLINK_FROM_ADMIN : If a user requests to unlink through the Kakao Customer service. - INCOMPLETE_SIGN_UP : If a user has not completed a signup. (Refer to Notice) |
O |
curl -v -G GET "{UNLINK_CALLBACK_URL}?app_id=123456&user_id=1234567890&referrer_type=UNLINK_FROM_APPS" \
-H "Authorization: KakaoAK ${SERVICE_APP_ADMIN_KEY}"
curl -v -X POST "{UNLINK_CALLBACK_URL}" \
-H "Authorization: KakaoAK ${SERVICE_APP_ADMIN_KEY}" \
--data-urlencode "app_id=123456" \
--data-urlencode "user_id=1234567890" \
--data-urlencode "referrer_type=UNLINK_FROM_APPS"
You can test if the unlink callback is working by unlinking an account with the service in [Settings] > [Kakao Account] > [Manage Connected Services] on Kakao Talk application or [Use Your Account] > [Manage Connected Services] on the Kakao Account page.