유저 데이터 연동하기
유저 데이터를 서버에서 연동하는 방법을 설명합니다. 블럭스 담당자에게 문의하여 발급받은 secret key를 사용해서 유저 데이터를 연동할 수 있습니다.
유저 생성 및 속성 업데이트 API
엔드포인트
POST https://api.blux.ai/prod/v2/applications/{APPLICATION_ID}/users/update-properties/bulk
인증
요청 시 Authorization 헤더에 발급받은 secret key를 포함해야 합니다:
Authorization: {SECRET_KEY}
요청 본문
{
"users": [
{
"user_id": "USER_ID",
"user_properties": {
"phone_number": "01012345678",
"email_address": "john.doe@example.com",
"nighttime_notification_consent": true,
"marketing_notification_consent": true,
"marketing_notification_sms_consent": true,
"marketing_notification_email_consent": true,
"marketing_notification_kakao_consent": true,
"marketing_notification_push_consent": true,
"gender": "male",
"age": 30
},
"custom_user_properties": {
"name": "John Doe",
"membership_level": "GOLD"
}
},
...
]
}