> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notifly.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# 캠페인 목록 조회

> 프로젝트의 캠페인 목록을 상태, 채널, 발송 타이밍 유형으로 필터링해 조회합니다.

> [!NOTE]
>
> 노티플라이 MCP의 `list_campaigns` 도구와 같은 조회 로직을 사용합니다. MCP 없이도 서버나 사내 도구에서 캠페인 목록을 조회하고 상태, 채널, 발송 타이밍 유형으로 필터링할 수 있습니다.

**조회 동작**

* 캠페인은 생성 시각이 최신인 순서로 반환됩니다.
* `status`를 지정하지 않으면 삭제된 캠페인을 제외한 모든 캠페인을 반환합니다. 삭제된 캠페인은 `status=deleted`로 지정할 때만 조회됩니다.
* 여러 필터를 함께 지정하면 모든 조건을 만족하는 캠페인만 반환합니다(AND).
* 응답에는 캠페인의 기본 정보와 발송 타이밍 요약만 포함됩니다. 메시지 본문, 타겟팅 조건, 발송 통계는 포함되지 않습니다.
* 정의되지 않은 쿼리 파라미터(예: `limit`)를 보내면 `400`을 반환합니다. 페이지 크기는 `page_size`로 지정합니다.

**페이지네이션**

한 번에 최대 100개(기본 20개)까지 조회합니다. 응답의 `data.next_cursor` 값이 있으면 다음 요청의 `next_cursor` 쿼리 파라미터로 그대로 전달합니다. `next_cursor`가 `null`이면 마지막 페이지입니다. 다음 페이지를 요청할 때는 첫 요청과 같은 필터를 함께 보내세요.

```bash
# 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}"
```

> [!TIP]
>
> 조회한 캠페인 `id`로 [캠페인 트리거](https://docs.notifly.tech/api-reference/trigger-campaign.md)나 [메시지 통계 상세 조회](https://docs.notifly.tech/api-reference/get-campaign-statistics-retrieval.md)를 호출할 수 있습니다. API로 발송하는 캠페인만 찾으려면 `timing_type=api`로 필터링하세요.


## OpenAPI

````yaml /ko/api-reference/openapi.yaml get /v1/projects/{projectId}/campaigns
openapi: 3.0.3
info:
  title: Notifly API
  version: 1.0.0
  contact:
    email: contact@notifly.tech
servers:
  - url: https://api.notifly.tech
    description: 노티플라이 API 서버입니다
security: []
tags:
  - name: catalog
    x-group: 카탈로그
paths:
  /v1/projects/{projectId}/campaigns:
    get:
      summary: list-campaigns
      operationId: listCampaigns
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
            pattern: ^[a-f0-9]{32}$
          description: 프로젝트 ID (32자리 소문자 16진수)
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - active
              - inactive
              - terminated
              - deleted
          description: |
            캠페인 상태 필터입니다. 지정하지 않으면 `deleted`를 제외한 모든 상태를 조회합니다.
            - `draft`: 초안
            - `active`: 활성
            - `inactive`: 비활성
            - `terminated`: 종료
            - `deleted`: 삭제됨
        - name: channel
          in: query
          required: false
          schema:
            type: string
            enum:
              - push-notification
              - web-push-notification
              - in-app-message
              - in-web-message
              - kakao-alimtalk
              - kakao-friendtalk
              - kakao-brand-message
              - text-message
              - rcs
              - email
              - line
              - webhook
              - cafe24-app-push-notification
          description: 발송 채널 필터입니다. 문자 메시지(SMS/LMS/MMS)는 `text-message`로 조회합니다.
        - name: timing_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - scheduled
              - event-based
              - api
          description: |
            발송 타이밍 유형 필터입니다.
            - `scheduled`: 예약 발송(1회 또는 반복)
            - `event-based`: 이벤트 기반 발송
            - `api`: API 호출로 발송
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: 한 번에 조회할 캠페인 수입니다.
        - name: next_cursor
          in: query
          required: false
          schema:
            type: string
          description: 다음 페이지를 조회할 때 이전 응답의 `data.next_cursor` 값을 그대로 전달합니다.
      responses:
        '200':
          description: 캠페인 목록 조회 성공입니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignListResponse'
              example:
                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
        '400':
          description: 프로젝트 ID 형식 오류, 허용되지 않는 필터 값이나 쿼리 파라미터, 또는 잘못된 `next_cursor`입니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: INVALID_ARGUMENT
                  message: >-
                    Invalid campaign list query: page_size: Number must be less
                    than or equal to 100
        '401':
          description: 인증 실패입니다 (만료 또는 잘못된 토큰)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: UNAUTHENTICATED
                  message: Invalid Authorization Token.
        '403':
          description: 프로젝트 접근 권한이 없습니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: PERMISSION_DENIED
                  message: Invalid Access.
        '500':
          description: 서버 내부 오류입니다
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CampaignListResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            campaigns:
              type: array
              description: 조회된 캠페인 목록입니다. 생성 시각이 최신인 순서로 정렬됩니다.
              items:
                $ref: '#/components/schemas/CampaignListItem'
            next_cursor:
              type: string
              nullable: true
              description: 다음 페이지 조회에 사용할 커서입니다. 마지막 페이지면 null입니다.
        error:
          type: object
          nullable: true
          description: 성공 시 null입니다.
    NotiflyV1ErrorResponse:
      type: object
      properties:
        data:
          type: object
          nullable: true
          description: 실패 시 null입니다.
        error:
          oneOf:
            - type: string
            - $ref: '#/components/schemas/NotiflyV1ErrorObject'
          description: >-
            v1 API 실패 응답입니다. 인증/권한 오류는 code/message 객체, 요청 검증 오류는 문자열로 반환될 수
            있습니다.
      example:
        data: null
        error:
          code: UNAUTHORIZED
          message: Invalid Authorization Token
    CampaignListItem:
      type: object
      properties:
        id:
          type: string
          description: 캠페인 ID (6자리 영숫자)
        name:
          type: string
          nullable: true
          description: 캠페인 이름
        description:
          type: string
          nullable: true
          description: 캠페인 설명
        status:
          type: string
          nullable: true
          enum:
            - draft
            - active
            - inactive
            - terminated
            - deleted
          description: 캠페인 상태
        type:
          type: string
          nullable: true
          description: 캠페인 유형입니다. `standard`는 일반 캠페인, `experiment`는 A/B 테스트 캠페인입니다.
        channel:
          type: string
          nullable: true
          description: 발송 채널 (예. `push-notification`, `kakao-alimtalk`, `text-message`)
        segment_type:
          type: string
          nullable: true
          enum:
            - condition
            - csv
            - cohort
          description: >-
            발송 대상 지정 방식입니다. `condition`은 조건 기반, `csv`는 CSV 업로드, `cohort`는 AI
            어시스턴트로 만든 세그먼트입니다.
        timing:
          $ref: '#/components/schemas/CampaignListTiming'
        created_at:
          type: string
          format: date-time
          nullable: true
          description: 생성 시각 (UTC, ISO 8601)
        updated_at:
          type: string
          format: date-time
          nullable: true
          description: 마지막 수정 시각 (UTC, ISO 8601)
    NotiflyV1ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: 에러 코드입니다.
        message:
          type: string
          description: 에러 메시지입니다.
    CampaignListTiming:
      type: object
      description: 발송 타이밍 요약입니다. 시각 값은 모두 Unix 타임스탬프(초)입니다.
      properties:
        timing_type:
          type: string
          nullable: true
          enum:
            - scheduled
            - event-based
            - api
          description: 발송 타이밍 유형
        interval:
          type: integer
          nullable: true
          description: >-
            반복 예약 발송 주기(초)입니다. 예를 들어 매일은 `86400`, 매주는 `604800`입니다. 1회 발송이면
            null입니다.
        starts:
          type: array
          nullable: true
          items:
            type: integer
          description: 예약 발송은 발송(반복 발송은 첫 발송) 시각, 이벤트 기반 발송은 캠페인 기간의 시작 시각입니다.
        delay:
          type: integer
          nullable: true
          description: 이벤트 기반 발송에서 이벤트 발생 후 발송까지 지연 시간(초)입니다.
        end:
          type: integer
          nullable: true
          description: 반복 예약 발송 또는 이벤트 기반 발송의 종료 시각입니다. 종료 시각이 없으면 null입니다.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: POST /authenticate로 발급받은 인증 토큰을 Bearer 형식으로 전달합니다.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.