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

# Export message statistics as CSV

> Get daily campaign and user journey statistics as CSV.

To set the date range, use `start` and `end` together, or use `since` or `last`. The default date range is seven days. To query a single day, set `start` and `end` to the same date. `offset` applies only to `since` and `last`. Reporting dates use KST and exclude today.


## OpenAPI

````yaml /en/api-reference/openapi.yaml get /v1/projects/{projectId}/statistics.csv
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}/statistics.csv:
    get:
      summary: get-campaign-statistics-csv
      operationId: getCampaignStatisticsCsv
      parameters:
        - name: projectId
          in: path
          required: true
          schema:
            type: string
          description: Project ID.
        - name: start
          in: query
          required: false
          description: First date (YYYY-MM-DD, KST). Use with end.
          schema:
            type: string
            format: date
        - name: end
          in: query
          required: false
          description: Last date (YYYY-MM-DD, KST). Use with start.
          schema:
            type: string
            format: date
        - name: since
          in: query
          required: false
          description: Query data starting on this date.
          schema:
            type: string
            format: date
        - name: last
          in: query
          required: false
          description: Query the last N periods. Use a positive number.
          schema:
            type: integer
            minimum: 1
        - name: offset
          in: query
          required: false
          description: Move the reference date for since or last back by this many periods.
          schema:
            type: integer
            minimum: 0
        - name: timeUnit
          in: query
          required: false
          description: Unit for last or offset.
          schema:
            type: string
            enum:
              - day
              - week
              - month
            default: day
        - name: tag
          in: query
          required: false
          description: >-
            Repeat to filter campaigns matching any tag. User journeys are
            excluded when tags are supplied.
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: >-
            Returns `text/csv` when data is available. Dates use `DD/MM/YYYY`
            and unavailable metrics are `0`. Up to ten conversions appear in
            `conversion_1` through `conversion_10`. Conversion types are `전체 전환`
            (total), `직접 전환` (direct), or `전환 매출` (revenue). Unused slots are
            blank. Returns a `text/plain` message for empty results, some date
            range errors, or CSV files over 2 MB.
          headers:
            Content-Disposition:
              description: Attachment filename for CSV responses.
              schema:
                type: string
          content:
            text/csv:
              schema:
                type: string
              example: >
                date,resource_type,resource_id,resource_name,node_id,node_name,variant_id,variant_name,channel,channel_subtype,brand_message_target,tags,message_sent,message_failed,delivered,click,conversion_1_name,conversion_1_type,conversion_1_count,conversion_2_name,conversion_2_type,conversion_2_count,conversion_3_name,conversion_3_type,conversion_3_count,conversion_4_name,conversion_4_type,conversion_4_count,conversion_5_name,conversion_5_type,conversion_5_count,conversion_6_name,conversion_6_type,conversion_6_count,conversion_7_name,conversion_7_type,conversion_7_count,conversion_8_name,conversion_8_type,conversion_8_count,conversion_9_name,conversion_9_type,conversion_9_count,conversion_10_name,conversion_10_type,conversion_10_count

                01/06/2025,campaign,campaign_example,Welcome,,,,,push-notification,text,,summer,1500,23,1477,234,purchase,전체
                전환,45,,,,,,,,,,,,,,,,,,,,,,,,,,,
            text/plain:
              schema:
                type: string
              example: No data found for the specified date range and filters.
        '400':
          description: Invalid project ID or query parameters.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
        '403':
          description: CSV export is disabled for this project.
          content:
            text/plain:
              schema:
                type: string
        '408':
          description: The query timed out.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
      security: []

````

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