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"
}
Learn how to send user behavior events using the REST API.
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"
}
application/jsonweb, android, iosbegin_checkout, purchase), pass an items array.
"ok" on success, "!invalid" on validation error.{
"message": "ok"
}
| Event Name | Description | Parameters |
|---|---|---|
app_open | App opened | — |
sign_up | User signed up | method (required) |
push_clicks | Push notification clicked | campaign_id (required) |
page_view | Page viewed | page_id (required), page_category, page_url |
click | Element clicked | element_id (required), element_type, target_url |
| Event Name | Description | Parameters |
|---|---|---|
view_item | Viewed item | item_id (required), item_name, item_category, brand, price |
add_to_wishlist | Added to wishlist | item_id (required), item_name, item_category, brand, price |
add_to_cart | Added to cart | item_id (required), item_name, item_category, brand, price (required), quantity (required), value, currency |
begin_checkout | Began checkout | currency, items (array, item_id required per item) |
purchase | Purchase completed | tx_id (required), currency, items (array, item_id required per item) |
| Event Name | Description | Parameters |
|---|---|---|
view_content | Viewed content | content_id (required), content_name, content_type |
begin_lead_form | Began lead form | form_id (required), form_name, form_type, form_destination |
generate_lead | Lead generated | form_id (required), 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'
}
});
uid is hashed with SHA-256 before storage.Was this page helpful?