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:
When you get an unlink callback from Kakao, you must respond with the HTTP status code "200 OK" in all cases, except for the failure of deleting the account or deleting user data. Unlink callback sent from Kakao indicates that you need to delete the user's account or user information. Thus, even when you get a callback for a user that deleted the account in the service so is not retrieved, you need to send a success response.
Ensure that the other status codes except for "200 OK" are considered as failure. The status codes in the Redirection 3xx class are also not supported. Since the Kakao server determines success or failure with the HTTP status code, the response body in your callback response is ignored.
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 -X 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.