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

kakao developers

Related sites
  • Docs
  • Kakao Moment
  • Friend group management

사이드 메뉴

Search

This document describes how to use the Friend group management APIs.

MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFilesBusiness token

Returns a list of Friend groups.

  • Upload customer identifiers, such as phone numbers and service user IDs, for multiple ad campaigns and brands
  • Registered Friend groups can only be used for Kakao Talk Channel X Reach campaigns
NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescription
-TalkChannelGroupFile[]List of Friend group information.
NameTypeDescription
idLongFriend group's ID.
profileIdStringKakao Talk Channel's profile ID.
talkChannelProfileNameStringKakao Talk Channel's profile name.
fileTypeStringFriend group's type.
One of the followings:
  • APP_USER_ID: Service user ID
  • PHONE_NUMBER: Phone number
  • MESSAGE_RETARGET: Message recipients
groupKeyStringFriend group file's group key.
nameStringFriend group's name.
friendCountLongNumber of friends.
talkChannelGroupFileStatusStringStatus.
One of the followings:
  • WAITING: Waiting for creating Friend group
  • COMPLETE: Creating Friend group has been completed
  • DELETE: Deleted or deleting
  • ERROR: Other abnormal cases
createdDateStringDate and time of creation in yyyy-MM-dd'T'HH:mm:ss format.
curl -X GET "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
// HTTP/1.1 200 OK
// Content-Type: application/json;charset=UTF-8
[
{
"id": 1,
"profileId": 1,
"name": "first_friend",
"talkChannelGroupFileStatus": "COMPLETE",
"talkChannelProfileName": "first_friend",
"fileType": "APP_USER_ID",
"groupKey": "2067836d9750480ab67e823e107a2c31",
"createdDate": "2020-01-01 00:00:00"
}
]
MethodURLAuthorization
POSThttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFilesBusiness token

Registers customer identifiers obtained from running and operating ads, or previous message recipients, as a Friend group.

Friend groups are only allowed for a campaign with 'Kakao Talk Channel X Reach(도달)' type. You can upload up to 50 friend groups per ad account.

For the type of message recipients, you can register a Friend group by registering message ad group IDs whose messages should be sent with the same ad account within 30 days and not been deleted.

For the customer identifiers such as phone numbers and service user IDs, you can upload up to 10 CSV files with a total size of 200 MB or less. For the file format, refer to the guide and sample.

When you register friend groups, you must comply with the following obligations.

Obligations for handling personal information
  • If a user's personal information is entrusted to Kakao to use the Kakao's integrated advertising service, the advertiser must inform the user of this fact.
  • Advertisers must use personal information only for the purpose that users have consented in accordance with related laws.

This API limits the number of calls you can make to every five seconds per user account and ad account.

NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescriptionRequired
nameStringFriend group's name.
Allowed characters: Korean, English, special characters, space
Character limits: 50 characters
O
profileIdStringKakao Talk Channel's profile ID.
Use the IDs retrieved through the View list of Kakao Talk Channel profiles API.
O
fileTypeStringFriend group's type.
One of the followings:
  • APP_USER_ID: Service user ID
  • PHONE_NUMBER: Phone number
  • MESSAGE_RETARGET: Message recipients
O
filesMultipartFileFriend group file.
Only required if fileType is set to APP_USER_ID or PHONE_NUMBER.
O*
adGroupIdsLong[]Message ad group ID.
Only required if fileType is set to MESSAGE_RETARGET.
O*
NameTypeDescription
adAccountIdLongAd account's ID.
idLongFriend group' ID.
nameStringFriend group's name.
fileTypeStringFriend group's type.
One of the followings:
  • APP_USER_ID: Service user ID
  • PHONE_NUMBER: Phone number
  • MESSAGE_RETARGET: Message recipients
adGroupIdsLongMessage ad group ID.
successCountIntegerNumber of identifiers that are successfully uploaded in the uploaded Friend group files.
failedFileUrlStringFile URL that contains the identifiers that are failed to be uploaded.
failedCountIntegerNumber of identifiers failed to be uploaded in the uploaded Friend group files.
statusStringStatus.
One of the followings:
  • WAITING (Pending), COMPLETE, DELETE, ERROR
createdDateStringDate and time of creation in yyyy-MM-dd'T'HH:mm:ss format.
curl -X POST "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}" \
-F "name=friend_group1" \
-F "profileId=12345" \
-F "fileType=APP_USER_ID" \
-F "adGroupIds=12345" \
-F "files=@local/friend_group_file.csv"
// HTTP/1.1 200 OK
// Content-Type: application/json;charset=UTF-8
{
"adAccountId": 1234,
"id": 645645,
"name": "${FRIEND_GROUP_TARGET_NAME}",
"fileType": "APP_USER_ID",
"adGroupIds": 12345,
"successCount": 20,
"failedCount": 1,
"failedFileUrl": "${FAILED_FILES_LIST_URL}",
"status": "WAITING",
"createdDate": "2022-01-01 00:00:00"
}
MethodURLAuthorization
PUThttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/nameBusiness token

Edits the name of a Friend group.

You can use the registered Friend group only for the 'Kakao Talk Channel X Reach(도달)' type of campaign.

NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescriptionRequired
idLongFriend group's ID.O
nameStringFriend group's name.
Allowed characters: Korean, English, special characters, space
Character limits: 50 characters
O
NameTypeDescription
idLongFriend group's ID.
nameStringFriend group's name.
fileTypeStringFriend group's type.
One of the followings:
  • APP_USER_ID: Service user ID
  • PHONE_NUMBER: Phone number
  • MESSAGE_RETARGET: Message recipients
groupKeyStringFriend group file's group key.
profileIdStringKakao Talk Channel's profile ID.
talkChannelProfileNameStringKakao Talk Channel's profile name.
talkChannelGroupFileStatusStringStatus.
One of the followings:
  • WAITING: Pending
  • COMPLETE: Completed
  • DELETE: Deleted
  • ERROR: Failed to create
createdDateStringDate and time of creation in yyyy-MM-dd'T'HH:mm:ss format.
lastModifiedDateStringDate and time of modification in yyyy-MM-dd'T'HH:mm:ss format.
curl -X PUT "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/name" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}" \
-d '{
"id": 1234,
"name": "edit_name_of_first_friend_group"
}'
// HTTP/1.1 200 OK
// Content-Type: application/json;charset=UTF-8
{
"id": 1,
"profileId": 1,
"name": "edit_name_of_first_friend_group",
"talkChannelGroupFileStatus": "COMPLETE",
"talkChannelProfileName": "edit_name_of_first_friend_group",
"fileType": "APP_USER_ID",
"groupKey": "9c2754153bc64b3f8df9783f6fe6d4c5",
"createdDate": "2020-01-01 00:00:00",
"lastModifiedDate": "2020-01-01 15:00:00"
}
MethodURLAuthorization
DELETEhttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/${ID}Business token

Deletes a Friend group.

NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescriptionRequired
IDLongFriend group's ID.O
curl -v -X DELETE "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/${ID}" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
MethodURLAuthorization
DELETEhttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFilesBusiness token

Deletes multiple Friend groups at once.

NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescriptionRequired
idsStringFriend group's ID.
To pass multiple Friend group IDs, separate them with a comma(,).
O
curl -v -X DELETE "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles?ids=${ID},${ID}" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
// HTTP/1.1 200 OK
// Content-Type: application/json;charset=UTF-8
{
"successCount": 1,
"failCount": 1,
"errorMessages": ["타겟을 사용 중인 오디언스가 있습니다."]
}
MethodURLAuthorization
GEThttps://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/usages/${ID}Business token

Returns the list of ad groups that use the designated Friend group.

NameDescriptionRequired
AuthorizationAuthorization: Bearer ${BUSINESS_ACCESS_TOKEN}
Business token as a type of user authentication.
O
adAccountIdadAccountId: ${AD_ACCOUNT_ID}
Ad account's ID.
O
NameTypeDescriptionRequired
IDLongFriend group's ID.O
NameTypeDescription
-AdGroupAndCampaign[]List of ad groups and campaigns using the Friend group.
NameTypeDescription
campaignCampaignInformation of the campaign.
adGroupAdGroupInformation of the ad group.
messageAdMessageAdInformation of the message.
curl -X GET "https://apis.moment.kakao.com/openapi/v4/talkChannelGroupFiles/usages/${ID}" \
-H "Authorization: Bearer ${BUSINESS_ACCESS_TOKEN}" \
-H "adAccountId: ${AD_ACCOUNT_ID}"
// HTTP/1.1 200 OK
// Content-Type: application/json;charset=UTF-8
[
{
"adGroup": {
"id": 105488,
"name": "first_ad_group",
"adGroupStatus": ["LIVE"],
"adGroupType": "DISPLAY"
},
"campaign": {
"id": 62286,
"name": "first_campaign",
"campaignTypeGoal": {
"campaignType": "DISPLAY",
"goal": "VISITING"
}
}
},
{
"messageAd": {
"id": "msg-ad-1362737813386051585",
"name": "first_message",
"opStatus": ["READY"]
}
}
]

Was this helpful?

    Kakao Moment > Friend group management - Kakao Developers | Docs