list-campaigns
curl --request GET \
--url https://api.notifly.tech/v1/projects/{projectId}/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.notifly.tech/v1/projects/{projectId}/campaigns"
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/v1/projects/{projectId}/campaigns', 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}/campaigns",
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/v1/projects/{projectId}/campaigns"
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/v1/projects/{projectId}/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/campaigns")
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{
"data": {
"campaigns": [
{
"id": "a1B2c3",
"name": "가입 환영 푸시",
"description": "가입 1시간 뒤 발송",
"status": "active",
"type": "standard",
"channel": "push-notification",
"segment_type": "condition",
"timing": {
"timing_type": "event-based",
"interval": null,
"starts": [
1796050800
],
"delay": 3600,
"end": 1803826800
},
"created_at": "2026-11-28T02:15:30.000Z",
"updated_at": "2026-11-30T08:40:12.000Z"
},
{
"id": "Xy9Zk2",
"name": "12월 프로모션 알림톡",
"description": null,
"status": "draft",
"type": "standard",
"channel": "kakao-alimtalk",
"segment_type": "csv",
"timing": {
"timing_type": "scheduled",
"interval": null,
"starts": [
1796432400
],
"delay": null,
"end": null
},
"created_at": "2026-11-25T06:00:00.000Z",
"updated_at": "2026-11-25T06:10:45.000Z"
}
],
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0xMS0yNVQwNjowMDowMC4wMDBaIiwiaWQiOiJYeTlaazIifQ"
},
"error": null
}{
"data": null,
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid campaign list query: page_size: Number must be less than or equal to 100"
}
}{
"data": null,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid Authorization Token."
}
}{
"data": null,
"error": {
"code": "PERMISSION_DENIED",
"message": "Invalid Access."
}
}{
"data": null,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid Authorization Token"
}
}캠페인
캠페인 목록 조회
프로젝트의 캠페인 목록을 상태, 채널, 발송 타이밍 유형으로 필터링해 조회합니다.
GET
/
v1
/
projects
/
{projectId}
/
campaigns
list-campaigns
curl --request GET \
--url https://api.notifly.tech/v1/projects/{projectId}/campaigns \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.notifly.tech/v1/projects/{projectId}/campaigns"
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/v1/projects/{projectId}/campaigns', 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}/campaigns",
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/v1/projects/{projectId}/campaigns"
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/v1/projects/{projectId}/campaigns")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.notifly.tech/v1/projects/{projectId}/campaigns")
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{
"data": {
"campaigns": [
{
"id": "a1B2c3",
"name": "가입 환영 푸시",
"description": "가입 1시간 뒤 발송",
"status": "active",
"type": "standard",
"channel": "push-notification",
"segment_type": "condition",
"timing": {
"timing_type": "event-based",
"interval": null,
"starts": [
1796050800
],
"delay": 3600,
"end": 1803826800
},
"created_at": "2026-11-28T02:15:30.000Z",
"updated_at": "2026-11-30T08:40:12.000Z"
},
{
"id": "Xy9Zk2",
"name": "12월 프로모션 알림톡",
"description": null,
"status": "draft",
"type": "standard",
"channel": "kakao-alimtalk",
"segment_type": "csv",
"timing": {
"timing_type": "scheduled",
"interval": null,
"starts": [
1796432400
],
"delay": null,
"end": null
},
"created_at": "2026-11-25T06:00:00.000Z",
"updated_at": "2026-11-25T06:10:45.000Z"
}
],
"next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0xMS0yNVQwNjowMDowMC4wMDBaIiwiaWQiOiJYeTlaazIifQ"
},
"error": null
}{
"data": null,
"error": {
"code": "INVALID_ARGUMENT",
"message": "Invalid campaign list query: page_size: Number must be less than or equal to 100"
}
}{
"data": null,
"error": {
"code": "UNAUTHENTICATED",
"message": "Invalid Authorization Token."
}
}{
"data": null,
"error": {
"code": "PERMISSION_DENIED",
"message": "Invalid Access."
}
}{
"data": null,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid Authorization Token"
}
}노티플라이 MCP의
list_campaigns 도구와 같은 조회 로직을 사용합니다. MCP 없이도 서버나 사내 도구에서 캠페인 목록을 조회하고 상태, 채널, 발송 타이밍 유형으로 필터링할 수 있습니다.- 캠페인은 생성 시각이 최신인 순서로 반환됩니다.
status를 지정하지 않으면 삭제된 캠페인을 제외한 모든 캠페인을 반환합니다. 삭제된 캠페인은status=deleted로 지정할 때만 조회됩니다.- 여러 필터를 함께 지정하면 모든 조건을 만족하는 캠페인만 반환합니다(AND).
- 응답에는 캠페인의 기본 정보와 발송 타이밍 요약만 포함됩니다. 메시지 본문, 타겟팅 조건, 발송 통계는 포함되지 않습니다.
- 정의되지 않은 쿼리 파라미터(예:
limit)를 보내면400을 반환합니다. 페이지 크기는page_size로 지정합니다.
data.next_cursor 값이 있으면 다음 요청의 next_cursor 쿼리 파라미터로 그대로 전달합니다. next_cursor가 null이면 마지막 페이지입니다. 다음 페이지를 요청할 때는 첫 요청과 같은 필터를 함께 보내세요.
# 1) 활성 상태인 앱 푸시 캠페인 첫 페이지
curl -G "https://api.notifly.tech/v1/projects/{projectId}/campaigns" \
-H "Authorization: Bearer {token}" \
--data-urlencode "status=active" \
--data-urlencode "channel=push-notification" \
--data-urlencode "page_size=50"
# 2) 다음 페이지: 같은 필터 + 이전 응답의 next_cursor
curl -G "https://api.notifly.tech/v1/projects/{projectId}/campaigns" \
-H "Authorization: Bearer {token}" \
--data-urlencode "status=active" \
--data-urlencode "channel=push-notification" \
--data-urlencode "page_size=50" \
--data-urlencode "next_cursor={next_cursor}"
조회한 캠페인
id로 캠페인 트리거나 메시지 통계 상세 조회를 호출할 수 있습니다. API로 발송하는 캠페인만 찾으려면 timing_type=api로 필터링하세요.