get-campaign-event-export-result
curl --request GET \
--url https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"id": "E252EB67-48E3-49DC-866D-F8C26161230D",
"user_id": "user_12345",
"notifly_user_id": "notifly_user_abcde",
"device_id": "ios_device_98765",
"notifly_device_id": "notifly_device_xyz",
"channel": "push_notification",
"event_name": "send_success",
"failure_reason": null,
"resource_title": "6월 신규 혜택 안내",
"resource_type": "campaign",
"campaign_id": "camp_202406_promo",
"experiment_group_name": "A",
"user_journey_id": null,
"user_journey_node_id": null,
"time": "1749373994000000",
"message_data": {
"title": "지금 확인하고 혜택 받기!",
"body": "6월 신규 회원님만을 위한 특별 이벤트 🎁",
"link": "link://link/feed?id=1243"
},
"channel_metadata": {
"channel_subtype": "image",
"brand_message_target": null
}
}
],
"total_page_count": 1
}{
"status": "processing",
"message": "Data is being generated."
}{
"status": "not_found",
"message": "The specified project_id and export_id could not be found."
}{
"error": "Timeout"
}{
"status": "invalid_page",
"message": "The requested page does not exist."
}{
"status": "error",
"message": "An error occurred while processing the data."
}Export message events
Retrieve exported campaign events
Use the export_id returned by the export request to retrieve results in pages of up to 1,000 records.
GET
/
projects
/
{projectId}
/
campaign-event-data
/
exports
/
{exportId}
/
result
get-campaign-event-export-result
curl --request GET \
--url https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/projects/{projectId}/campaign-event-data/exports/{exportId}/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": [
{
"id": "E252EB67-48E3-49DC-866D-F8C26161230D",
"user_id": "user_12345",
"notifly_user_id": "notifly_user_abcde",
"device_id": "ios_device_98765",
"notifly_device_id": "notifly_device_xyz",
"channel": "push_notification",
"event_name": "send_success",
"failure_reason": null,
"resource_title": "6월 신규 혜택 안내",
"resource_type": "campaign",
"campaign_id": "camp_202406_promo",
"experiment_group_name": "A",
"user_journey_id": null,
"user_journey_node_id": null,
"time": "1749373994000000",
"message_data": {
"title": "지금 확인하고 혜택 받기!",
"body": "6월 신규 회원님만을 위한 특별 이벤트 🎁",
"link": "link://link/feed?id=1243"
},
"channel_metadata": {
"channel_subtype": "image",
"brand_message_target": null
}
}
],
"total_page_count": 1
}{
"status": "processing",
"message": "Data is being generated."
}{
"status": "not_found",
"message": "The specified project_id and export_id could not be found."
}{
"error": "Timeout"
}{
"status": "invalid_page",
"message": "The requested page does not exist."
}{
"status": "error",
"message": "An error occurred while processing the data."
}PaginationThis API uses page-based pagination.
- Page number: An integer starting at 0.
- Page size: Up to 1,000 event records per page.
- Total pages: Returned in the
total_page_countfield. - Valid page range for nonempty results: 0 to (total_page_count - 1).
data array and a total_page_count of 0.Message data availability by channelFor channels other than push-notification, the message_data column is available only for data from 2025-07-18 onward.The in-app-message and in-web-message channels also require the following SDK versions or later.
- iOS SDK: 1.17.2
- Android SDK: 1.18.1
- React Native SDK: 3.10.1
- JavaScript SDK: 2.17.4
Message data examples
- text-message
- email
- kakao-friendtalk
- kakao-alimtalk
- kakao-brand-message (basic)
- kakao-brand-message (free-form)
- in-app-message
- in-web-message
- web-push-notification
- webhook
{
"requestId": "Request ID",
"requestDate": "YYYY-MM-DD HH:mm:ss",
"templateId": "Template ID",
"title": "Message title",
"body": "Message body",
"sendNo": "07000000000",
"recipientNo": "01012345678",
"messageType": "MMS",
"countryCode": "82",
"adYn": "N",
"attachFileList": [
{
"fileId": 123456789,
"fileName": "image.jpg",
"filePath": "/path/to/image/",
"saveFileName": "saved.jpg",
"uploadType": "TEMPORARY"
}
]
}
{
"title": "Email subject",
"body": {
"html": "<html><body><p>Email body</p></body></html>",
"text": "Content"
}
}
{
"plusFriendId": "@channel-name",
"senderKey": "Sender key",
"recipientNo": "01012345678",
"content": "Message content",
"buttons": [
{
"ordering": 1,
"type": "WL",
"name": "Button label",
"linkMo": "https://m.example.com",
"linkPc": "https://example.com",
"schemeIos": "",
"schemeAndroid": ""
}
],
"isAd": true
}
{
"plusFriendId": "@channel-name",
"senderKey": "Sender key",
"recipientNo": "01012345678",
"templateCode": "Template code",
"content": "[Brand] Message body",
"templateExtra": "Additional information",
"buttons": [
{
"ordering": 1,
"type": "WL",
"name": "Button label",
"linkMo": "https://m.example.com",
"linkPc": "https://example.com"
}
]
}
The fields included depend on
messageType.{
"messageType": "COMMERCE",
"content": "Products recommended for the sample customer.",
"imageUrl": "https://example.com/product.png",
"commerce": {
"title": "Recommended products",
"regularPrice": "10000",
"discountPrice": "9000",
"discountRate": "10"
},
"buttons": [
{
"name": "View product",
"linkType": "WL",
"linkMobile": "https://example.com/products/1"
}
]
}
{
"chatBubbleType": "WIDE_ITEM_LIST",
"header": "Recommended products",
"attachment": {
"item": {
"list": [
{
"imgUrl": "https://mud-kage.kakao.com/example/product-1.jpg",
"urlMobile": "https://example.com/products/1"
},
{
"title": "Second product",
"imgUrl": "https://mud-kage.kakao.com/example/product-2.jpg",
"urlMobile": "https://example.com/products/2"
},
{
"title": "Third product",
"imgUrl": "https://mud-kage.kakao.com/example/product-3.jpg",
"urlMobile": "https://example.com/products/3"
}
]
},
"button": [
{
"name": "See more",
"type": "WL",
"urlMobile": "https://example.com/products"
}
]
}
}
{
"templateName": "Template name"
}
{
"templateName": "Template name"
}
{
"notifly": {
"ti": "Title",
"bd": "Body",
"cid": "Campaign ID",
"mid": "Message ID",
"u": "https://your-link.com",
"ic": "https://your-icon.png",
"bg": "#ffffff",
"im": "https://your-image.jpg",
"sd": "/push-sound.mp3",
"tg": "notifly-push-notification",
"vb": [200, 100, 200],
"ri": false,
"data": {},
"ac": [
{ "action": "click", "title": "Go to Link" },
{ "action": "close", "title": "Close" }
]
}
}
{
"url": "https://your.webhook.endpoint",
"method": "POST",
"headers": {
"Content-Type": "application/json"
},
"data": "{ \"key\": \"value\" }"
}
