메인 콘텐츠로 건너뛰기
POST
/
event
이벤트 전송
curl --request POST \
  --url https://api-v2.adrop.io/event \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "uid": "<string>",
  "eventName": "<string>",
  "platform": "<string>"
}
'
{
    "message": "ok"
}
사용자 행동 이벤트를 전송하여 이벤트 기반 오디언스 타겟팅을 구축할 수 있습니다. 이벤트 데이터는 오디언스 세분화 및 전환 추적에 활용됩니다.

요청 파라미터

헤더

Authorization
string
필수
App Key (adrop_service.json에서 확인)
Content-Type
string
필수
application/json

바디 파라미터

uid
string
필수
사용자 고유 식별자
eventName
string
필수
이벤트 이름 (1~64자)
platform
string
플랫폼. 예: web, android, ios
이벤트별 추가 파라미터는 요청 바디의 최상위 필드로 전달합니다. 다중 아이템 이벤트(begin_checkout, purchase)의 경우 items 배열을 전달합니다.

응답

message
string
성공 시 "ok", 유효성 검증 실패 시 "!invalid"
{
    "message": "ok"
}

지원되는 이벤트

공통 이벤트

이벤트 이름설명파라미터
app_open앱 실행
sign_up회원가입method (필수)
push_clicks푸시 알림 클릭campaign_id (필수)
page_view페이지 조회page_id (필수), page_category, page_url
click요소 클릭element_id (필수), element_type, target_url

온라인 판매 이벤트

이벤트 이름설명파라미터
view_item아이템 조회item_id (필수), item_name, item_category, brand, price
add_to_wishlist위시리스트 추가item_id (필수), item_name, item_category, brand, price
add_to_cart장바구니 추가item_id (필수), item_name, item_category, brand, price (필수), quantity (필수), value, currency
begin_checkout결제 시작currency, items (배열, 아이템당 item_id 필수)
purchase구매 완료tx_id (필수), currency, items (배열, 아이템당 item_id 필수)

리드 생성 이벤트

이벤트 이름설명파라미터
view_content콘텐츠 조회content_id (필수), content_name, content_type
begin_lead_form리드 폼 시작form_id (필수), form_name, form_type, form_destination
generate_lead리드 생성form_id (필수), form_name, form_type, form_destination, value, currency

예시

단순 이벤트

const axios = require('axios');

axios.post('https://api-v2.adrop.io/event', {
    uid: 'USER_ID',
    eventName: 'app_open'
}, {
    headers: {
        'Authorization': 'YOUR_APP_KEY',
        'Content-Type': 'application/json'
    }
});

파라미터가 있는 이벤트

const axios = require('axios');

axios.post('https://api-v2.adrop.io/event', {
    uid: 'USER_ID',
    eventName: 'view_item',
    platform: 'web',
    item_id: 'SKU-123',
    item_name: 'Widget',
    item_category: 'Electronics',
    brand: 'BrandX',
    price: 29900
}, {
    headers: {
        'Authorization': 'YOUR_APP_KEY',
        'Content-Type': 'application/json'
    }
});

다중 아이템 이벤트 (구매)

const axios = require('axios');

axios.post('https://api-v2.adrop.io/event', {
    uid: 'USER_ID',
    eventName: 'purchase',
    platform: 'web',
    tx_id: 'TXN-20240101-001',
    currency: 'KRW',
    items: [
        {
            item_id: 'SKU-001',
            item_name: 'Product A',
            item_category: 'Electronics',
            brand: 'BrandX',
            price: 29900,
            quantity: 1
        },
        {
            item_id: 'SKU-002',
            item_name: 'Product B',
            price: 15000,
            quantity: 2
        }
    ]
}, {
    headers: {
        'Authorization': 'YOUR_APP_KEY',
        'Content-Type': 'application/json'
    }
});

리드 생성 이벤트

const axios = require('axios');

axios.post('https://api-v2.adrop.io/event', {
    uid: 'USER_ID',
    eventName: 'generate_lead',
    platform: 'web',
    form_id: 'contact-form-01',
    form_name: 'Contact Us',
    form_type: 'contact',
    form_destination: '/thank-you',
    value: 50000,
    currency: 'KRW'
}, {
    headers: {
        'Authorization': 'YOUR_APP_KEY',
        'Content-Type': 'application/json'
    }
});

참고 사항

  • 알 수 없는 이벤트 이름이나 필수 파라미터가 누락된 이벤트는 무시됩니다 (HTTP 200 반환).
  • 다중 아이템 이벤트는 요청당 최대 100개 아이템을 지원합니다.
  • 문자열 파라미터 값은 최대 1024자까지 가능합니다.
  • uid는 저장 전 SHA-256으로 해시 처리됩니다.

관련 문서