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

# Export as CSV

> The revenue-by-channel report as a CSV file (money in major units, e.g. `1900.00`).



## OpenAPI

````yaml /openapi.json get /v1/reports/export.csv
openapi: 3.1.0
info:
  title: Rumorly API
  version: 1.0.0
  description: >-
    Send "how did you hear about us?" answers in; get channels, named entities
    and revenue out. All JSON is snake_case.
servers:
  - url: https://api.rumorly.io
    description: Production
  - url: http://localhost:4100
    description: Local development
security: []
tags:
  - name: Basics
  - name: Responses
    description: Answers and their classification.
  - name: People
    description: The people who answered.
  - name: Reports
    description: Revenue by self-reported channel.
  - name: Snippet
    description: Endpoints the JS snippet calls.
paths:
  /v1/reports/export.csv:
    get:
      tags:
        - Reports
      summary: Export as CSV
      description: >-
        The revenue-by-channel report as a CSV file (money in major units, e.g.
        `1900.00`).
      parameters:
        - schema:
            type: string
            format: date
          required: false
          description: >-
            First day (inclusive), `YYYY-MM-DD`, by when answers were given.
            Default: 12 months ago.
          name: from
          in: query
        - schema:
            type: string
            format: date
          required: false
          description: 'Last day (inclusive), `YYYY-MM-DD`. Default: today.'
          name: to
          in: query
        - schema:
            type: string
            enum:
              - channel
              - entity
            default: channel
          required: false
          description: >-
            `channel` for one row per channel; `entity` for one row per named
            source (plus a `<slug>:none` row per channel).
          name: group_by
          in: query
        - schema:
            type: string
          required: false
          description: Only this channel's rows, by slug, e.g. `podcast`.
          example: podcast
          name: channel
          in: query
      responses:
        '200':
          description: A CSV file.
          content:
            text/csv:
              schema:
                type: string
        '400':
          description: The body or query failed validation; `issues` says which field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: >-
            `plan_required`: your plan doesn't include API access (Growth and
            up; the signup trial does). `quota_exceeded` (POST only): this
            month's response allowance is used up.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The key is not allowed to do this (e.g. a publishable key reading
            data).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - secretKey: []
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          example: invalid body
        code:
          type: string
        issues:
          type: array
          items:
            type: object
            properties:
              path:
                type: array
                items:
                  anyOf:
                    - type: string
                    - type: number
              message:
                type: string
            required:
              - path
              - message
      required:
        - error
  securitySchemes:
    secretKey:
      type: http
      scheme: bearer
      description: >-
        A secret key (`sk_live_…` / `sk_test_…`) from Settings → API keys.
        Server-side only.

````

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