> ## 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.

# List campaigns

> List the campaigns in a project and filter them by status, channel, and timing type.

> [!NOTE]
>
> This endpoint uses the same lookup logic as the `list_campaigns` tool in the Notifly MCP server. Use it to list campaigns from your server or internal tools and filter them by status, channel, and timing type without MCP.

**How results are returned**

* Campaigns are returned from the most recently created.
* If you omit `status`, the response includes every campaign except deleted ones. Deleted campaigns are returned only when you set `status=deleted`.
* When you combine filters, only campaigns that match all of them are returned (AND).
* The response includes basic campaign information and a timing summary only. It does not include message content, targeting conditions, or delivery statistics.
* Undefined query parameters, such as `limit`, return `400`. Use `page_size` to set the page size.

**Pagination**

Each request returns up to 100 campaigns (20 by default). If the response contains a `data.next_cursor` value, pass it unchanged as the `next_cursor` query parameter in the next request. A `next_cursor` of `null` means you reached the last page. Send the same filters as the first request when you request the next page.

```bash
# 1) First page of active app push campaigns
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 page: same filters + next_cursor from the previous response
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]
>
> Use a returned campaign `id` to call [Trigger a campaign](https://docs.notifly.tech/en/api-reference/trigger-campaign.md) or [Get detailed campaign statistics](https://docs.notifly.tech/en/api-reference/get-campaign-statistics-retrieval.md). To find only campaigns sent through the API, filter with `timing_type=api`.


## OpenAPI

````yaml /en/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: Notifly API server
security: []
tags:
  - name: catalog
    x-group: Catalogs
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: Project ID (32 lowercase hexadecimal characters).
        - name: status
          in: query
          required: false
          schema:
            type: string
            enum:
              - draft
              - active
              - inactive
              - terminated
              - deleted
          description: >
            Campaign status filter. If omitted, every status except `deleted` is
            returned.

            - `draft`: Draft

            - `active`: Active

            - `inactive`: Inactive

            - `terminated`: Ended

            - `deleted`: 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: >-
            Delivery channel filter. Use `text-message` for text messages (SMS,
            LMS, and MMS).
        - name: timing_type
          in: query
          required: false
          schema:
            type: string
            enum:
              - scheduled
              - event-based
              - api
          description: |
            Timing type filter.
            - `scheduled`: Scheduled delivery (one-time or recurring)
            - `event-based`: Event-based delivery
            - `api`: Delivery triggered by an API call
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
          description: Number of campaigns to return per request.
        - name: next_cursor
          in: query
          required: false
          schema:
            type: string
          description: >-
            To get the next page, pass the `data.next_cursor` value from the
            previous response unchanged.
      responses:
        '200':
          description: The campaign list was retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CampaignListResponse'
              example:
                data:
                  campaigns:
                    - id: a1B2c3
                      name: Welcome push
                      description: Sent 1 hour after sign-up
                      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: December promotion AlimTalk
                      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: >-
            The project ID is malformed, a filter value or query parameter is
            not allowed, or `next_cursor` is invalid.
          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: Authentication failed because the token expired or is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: UNAUTHENTICATED
                  message: Invalid Authorization Token.
        '403':
          description: You do not have access to the project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
              example:
                data: null
                error:
                  code: PERMISSION_DENIED
                  message: Invalid Access.
        '500':
          description: An internal server error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotiflyV1ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CampaignListResponse:
      type: object
      properties:
        data:
          type: object
          properties:
            campaigns:
              type: array
              description: Campaigns sorted from the most recently created.
              items:
                $ref: '#/components/schemas/CampaignListItem'
            next_cursor:
              type: string
              nullable: true
              description: Cursor for the next page. null on the last page.
        error:
          type: object
          nullable: true
          description: null on success.
    NotiflyV1ErrorResponse:
      type: object
      properties:
        data:
          type: object
          nullable: true
          description: null on failure.
        error:
          oneOf:
            - type: string
            - $ref: '#/components/schemas/NotiflyV1ErrorObject'
          description: >-
            Error returned by the v1 API. Authentication and authorization
            errors may be returned as an object with code and message fields.
            Request validation errors may be returned as a string.
      example:
        data: null
        error:
          code: UNAUTHORIZED
          message: Invalid Authorization Token
    CampaignListItem:
      type: object
      properties:
        id:
          type: string
          description: Campaign ID (6 alphanumeric characters).
        name:
          type: string
          nullable: true
          description: Campaign name.
        description:
          type: string
          nullable: true
          description: Campaign description.
        status:
          type: string
          nullable: true
          enum:
            - draft
            - active
            - inactive
            - terminated
            - deleted
          description: Campaign status.
        type:
          type: string
          nullable: true
          description: >-
            Campaign type. `standard` is a regular campaign and `experiment` is
            an A/B test campaign.
        channel:
          type: string
          nullable: true
          description: >-
            Delivery channel, such as `push-notification`, `kakao-alimtalk`, or
            `text-message`.
        segment_type:
          type: string
          nullable: true
          enum:
            - condition
            - csv
            - cohort
          description: >-
            How the audience is defined. `condition` uses conditions, `csv` uses
            an uploaded CSV file, and `cohort` uses a segment built with the AI
            assistant.
        timing:
          $ref: '#/components/schemas/CampaignListTiming'
        created_at:
          type: string
          format: date-time
          nullable: true
          description: Creation time (UTC, ISO 8601).
        updated_at:
          type: string
          format: date-time
          nullable: true
          description: Last update time (UTC, ISO 8601).
    NotiflyV1ErrorObject:
      type: object
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message.
    CampaignListTiming:
      type: object
      description: Timing summary. All time values are Unix timestamps in seconds.
      properties:
        timing_type:
          type: string
          nullable: true
          enum:
            - scheduled
            - event-based
            - api
          description: Timing type.
        interval:
          type: integer
          nullable: true
          description: >-
            Interval of a recurring scheduled campaign in seconds, such as
            `86400` for daily or `604800` for weekly. null for one-time
            delivery.
        starts:
          type: array
          nullable: true
          items:
            type: integer
          description: >-
            For scheduled campaigns, the delivery time (the first delivery time
            for recurring campaigns). For event-based campaigns, the start of
            the campaign period.
        delay:
          type: integer
          nullable: true
          description: >-
            For event-based campaigns, the delay in seconds between the event
            and delivery.
        end:
          type: integer
          nullable: true
          description: >-
            End time of a recurring scheduled campaign or an event-based
            campaign. null if no end time is set.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Pass the token issued by `POST /authenticate` as a bearer token.

````

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