get-campaign-statistics
curl --request POST \
--url https://api.notifly.tech/v1/projects/{projectId}/statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start": "2025-06-01",
"end": "2025-06-07"
}
'import requests
url = "https://api.notifly.tech/v1/projects/{projectId}/statistics"
payload = {
"start": "2025-06-01",
"end": "2025-06-07"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({start: '2025-06-01', end: '2025-06-07'})
};
fetch('https://api.notifly.tech/v1/projects/{projectId}/statistics', 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/v1/projects/{projectId}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start' => '2025-06-01',
'end' => '2025-06-07'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/v1/projects/{projectId}/statistics"
payload := strings.NewReader("{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.notifly.tech/v1/projects/{projectId}/statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}"
response = http.request(request)
puts response.read_body[
{
"date": "2025-06-01",
"resource_type": "campaign",
"campaign_id": "campaign_example",
"campaign_name": "Welcome",
"variant_id": null,
"variant_name": null,
"tags": [
"summer"
],
"channel": "push-notification",
"channel_subtype": "text",
"brand_message_target": null,
"message": {
"title": "Welcome",
"body": "Hello"
},
"message_sent": 1500,
"message_failed": 23,
"delivered": 1477,
"click": 234,
"conversion": [
{
"name": "purchase",
"type": "total_count_conversion",
"count": 45
}
]
},
{
"date": "2025-06-01",
"resource_type": "user_journey",
"user_journey_id": "journey_example",
"user_journey_name": "Onboarding",
"user_journey_node_id": "node_example",
"user_journey_node_name": "Welcome",
"channel": "kakao-alimtalk",
"channel_subtype": null,
"brand_message_target": null,
"message": {},
"message_sent": 892,
"message_failed": 5,
"delivered": null,
"click": 156,
"conversion": []
}
]{
"error": "InvalidRequest",
"message": "..."
}{
"error": "Unauthorized"
}{
"error": "RequestTimeout"
}{
"error": "InternalServerError",
"message": "..."
}내보내기 & 분석
메시지 통계 조회
캠페인과 유저여정의 발송 성공, 실패, 도달, 클릭, 전환 수를 일자와 채널별로 조회합니다. 당일 데이터는 제외합니다.
POST
/
v1
/
projects
/
{projectId}
/
statistics
get-campaign-statistics
curl --request POST \
--url https://api.notifly.tech/v1/projects/{projectId}/statistics \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"start": "2025-06-01",
"end": "2025-06-07"
}
'import requests
url = "https://api.notifly.tech/v1/projects/{projectId}/statistics"
payload = {
"start": "2025-06-01",
"end": "2025-06-07"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({start: '2025-06-01', end: '2025-06-07'})
};
fetch('https://api.notifly.tech/v1/projects/{projectId}/statistics', 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/v1/projects/{projectId}/statistics",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'start' => '2025-06-01',
'end' => '2025-06-07'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifly.tech/v1/projects/{projectId}/statistics"
payload := strings.NewReader("{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.notifly.tech/v1/projects/{projectId}/statistics")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/statistics")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"start\": \"2025-06-01\",\n \"end\": \"2025-06-07\"\n}"
response = http.request(request)
puts response.read_body[
{
"date": "2025-06-01",
"resource_type": "campaign",
"campaign_id": "campaign_example",
"campaign_name": "Welcome",
"variant_id": null,
"variant_name": null,
"tags": [
"summer"
],
"channel": "push-notification",
"channel_subtype": "text",
"brand_message_target": null,
"message": {
"title": "Welcome",
"body": "Hello"
},
"message_sent": 1500,
"message_failed": 23,
"delivered": 1477,
"click": 234,
"conversion": [
{
"name": "purchase",
"type": "total_count_conversion",
"count": 45
}
]
},
{
"date": "2025-06-01",
"resource_type": "user_journey",
"user_journey_id": "journey_example",
"user_journey_name": "Onboarding",
"user_journey_node_id": "node_example",
"user_journey_node_name": "Welcome",
"channel": "kakao-alimtalk",
"channel_subtype": null,
"brand_message_target": null,
"message": {},
"message_sent": 892,
"message_failed": 5,
"delivered": null,
"click": 156,
"conversion": []
}
]{
"error": "InvalidRequest",
"message": "..."
}{
"error": "Unauthorized"
}{
"error": "RequestTimeout"
}{
"error": "InternalServerError",
"message": "..."
}조회 조건전일 데이터는 오전 7시(KST) 이후에 조회하세요.
집계 표기 일자일자별 데이터는 발생 일자 기준으로 집계 및 표기됩니다. 예를 들어 7월 23일 발송한 캠페인의 클릭이 24일에 발생했다면, 23일에 발송, 24일에 클릭 이벤트가 집계됩니다.
메시지 통계 상세 조회와 차이점메시지 통계 상세 조회에서는 캠페인을 하나 지정합니다. 이 API에서는 요청한 기간의 캠페인과 유저여정 통계를 일자별로 조회할 수 있습니다.
tags를 지정하면 유저여정은 제외하고 지정한 태그 중 하나 이상이 일치하는 캠페인만 반환합니다.본문
application/json
응답
성공적인 통계 조회입니다
