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

# Create a revenue report

> Saves a custom revenue report for your organisation from the fields, filters and date range sent, and returns the saved set-up. It doesn't run the report; use `GET /v1/report/{id}/data` for the rows. Get filter values from `GET /v1/report/filters`.



## OpenAPI

````yaml /openapi.json post /v1/report
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality.


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    ## Errors any endpoint can return

    Every signed-in endpoint can also return these, so they aren't listed on
    each one:


    - `401` Unauthorized: no valid token was sent. It's missing, invalid,
    expired or revoked.

    - `403` Forbidden with `code` `session_invalid`: your user or organisation
    no longer exists, or you were removed from the organisation. Sign in again.

    - `403` Forbidden with `code` `insufficient_scope` ("This sign-in is
    read-only"): an OAuth (MCP) sign-in with read access tried to make a change.

    - `403` Forbidden with `code` `organisation_unavailable`: an OAuth (MCP)
    sign-in has lost access to its organisation. Switch to another organisation.

    - `503` Service Unavailable: "System is down for scheduled maintenance". Try
    again later.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Publisher
  - name: Publisher/Publisher Tag
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: Publisher/Publisher Stack
  - name: Publisher/Experiment
  - name: Publisher/Publisher Meta
  - name: Publisher/Debugging
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Integration
  - name: Integration/Authentication
  - name: Integration/Mapping
  - name: Mapping
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Benchmarking
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Campaign Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Audience
  - name: Audience/Segment
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: User
  - name: User/Account
  - name: Billing
  - name: Billing/Profile
  - name: Billing/Invoice
  - name: Audit Log
  - name: Search
  - name: Set-up
  - name: public
paths:
  /v1/report:
    post:
      tags:
        - Reporting/Revenue Reports
        - public
      summary: Create a revenue report
      description: >-
        Saves a custom revenue report for your organisation from the fields,
        filters and date range sent, and returns the saved set-up. It doesn't
        run the report; use `GET /v1/report/{id}/data` for the rows. Get filter
        values from `GET /v1/report/filters`.
      operationId: createReport
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - fields
              properties:
                title:
                  title: Title
                  description: Report name shown in the report list.
                  maxLength: 50
                  type: string
                  nullable: true
                temporary:
                  type: boolean
                  title: Temporary
                  description: >-
                    Saves the report as temporary (status 0), so it's left out
                    of `GET /v1/report` but can still be opened and run by ID.
                    Defaults to false.
                date_range:
                  type: string
                  title: Date range
                  description: >-
                    Date range preset. Preset ranges end yesterday. With
                    `custom`, also send `custom_date`; `custom` without both
                    dates runs as `all_time`. `all_time` needs a `limit` of
                    10,000 or less. Values: `custom` = Custom/Fixed, `yesterday`
                    = Yesterday, `seven_days` = Last 7 days, `thirty_days` =
                    Last 30 days, `three_months` = Last 3 months, `six_months` =
                    Last 6 months, `last_week` = Last week, `last_month` = Last
                    month, `last_quarter` = Last quarter, `last_year` = Last
                    year, `week_to_date` = Week to date, `month_to_date` = Month
                    to date, `quarter_to_date` = Quarter to date, `year_to_date`
                    = Year to date, `all_time` = All time.
                  enum:
                    - custom
                    - yesterday
                    - seven_days
                    - thirty_days
                    - three_months
                    - six_months
                    - last_week
                    - last_month
                    - last_quarter
                    - last_year
                    - week_to_date
                    - month_to_date
                    - quarter_to_date
                    - year_to_date
                    - all_time
                fields:
                  type: array
                  title: Fields
                  description: >-
                    Dimensions and metrics to include, at least two, with at
                    least one dimension (`account_name`, `account_owner`,
                    `campaign_advertiser`, `campaign`, `channel`, `config_id`,
                    `config_name`, `creative_size`, `date`, `device`,
                    `environment`, `geo`, `line_item`, `month`, `organisation`,
                    `partner`, `platform`, `publisher`, `region`,
                    `revenue_source`, `tag`, `uid`, `unit`) and one metric
                    (`ad_impressions`, `ad_requests`, `ad_responses`,
                    `ad_unit_loads`, `clicks`, `cost`, `ctr`, `ecpm`, `fill`,
                    `gross_revenue`, `imp_fill`, `net_revenue`,
                    `page_impressions`, `page_rpm`, `q1_impressions`,
                    `q1_percent`, `q2_impressions`, `q2_percent`,
                    `q3_impressions`, `q3_percent`, `q4_impressions`,
                    `q4_percent`, `rpm`, `unit_fill`, `viewability`,
                    `viewable_impressions`). `account_name`, `account_owner`,
                    `platform`, `partner`, `channel`, `line_item`, `geo`,
                    `region`, `device` and `creative_size` can't be combined
                    with `ad_requests`, `ad_responses`, `ad_unit_loads`, `fill`,
                    `imp_fill` or `unit_fill`, as fields or as filters.
                    `page_impressions` and `page_rpm` only combine with `date`,
                    `month`, `uid`, `publisher`, `organisation`, `gross_revenue`
                    and `net_revenue`, and only the `uid` and `oid` filters.
                  minItems: 2
                  items:
                    type: string
                    enum:
                      - account_name
                      - account_owner
                      - ad_impressions
                      - ad_requests
                      - ad_responses
                      - ad_unit_loads
                      - campaign_advertiser
                      - campaign
                      - channel
                      - clicks
                      - config_id
                      - config_name
                      - cost
                      - creative_size
                      - ctr
                      - date
                      - device
                      - ecpm
                      - environment
                      - fill
                      - geo
                      - gross_revenue
                      - imp_fill
                      - line_item
                      - month
                      - net_revenue
                      - organisation
                      - page_impressions
                      - page_rpm
                      - partner
                      - platform
                      - publisher
                      - q1_impressions
                      - q1_percent
                      - q2_impressions
                      - q2_percent
                      - q3_impressions
                      - q3_percent
                      - q4_impressions
                      - q4_percent
                      - region
                      - revenue_source
                      - rpm
                      - tag
                      - uid
                      - unit_fill
                      - unit
                      - viewability
                      - viewable_impressions
                    description: >-
                      Values: `account_name` = Account name, `account_owner` =
                      Account owner, `ad_impressions` = Ad impressions,
                      `ad_requests` = Ad requests, `ad_responses` = Ad
                      responses, `ad_unit_loads` = Ad unit loads,
                      `campaign_advertiser` = Campaign advertiser, `campaign` =
                      Campaign, `channel` = Channel, `clicks` = Clicks,
                      `config_id` = Config ID, `config_name` = Config name,
                      `cost` = Cost (gross minus net revenue), `creative_size` =
                      Creative size, `ctr` = CTR, `date` = Date, `device` =
                      Device, `ecpm` = eCPM, `environment` = Environment (web or
                      app), `fill` = Ad server fill, `geo` = Country,
                      `gross_revenue` = Gross revenue, `imp_fill` = Fill,
                      `line_item` = Line item, `month` = Month, `net_revenue` =
                      Net revenue, `organisation` = Organisation,
                      `page_impressions` = Page impressions, `page_rpm` = Page
                      RPM, `partner` = Partner, `platform` = Platform,
                      `publisher` = Publisher (domain), `q1_impressions` = Q1
                      impressions, `q1_percent` = Q1 rate, `q2_impressions` = Q2
                      impressions, `q2_percent` = Q2 rate, `q3_impressions` = Q3
                      impressions, `q3_percent` = Q3 rate, `q4_impressions` = Q4
                      impressions, `q4_percent` = Q4 rate, `region` = Region,
                      `revenue_source` = Revenue source, `rpm` = eRPM, `tag` =
                      Publisher tag, `uid` = Publisher ID, `unit_fill` = Unit
                      fill, `unit` = Unit type, `viewability` = Viewability,
                      `viewable_impressions` = Viewable impressions.
                filters:
                  type: object
                  title: Filters
                  description: >-
                    Filters keyed by filter name. Values come from `GET
                    /v1/report/filters`. Unknown filter names are rejected.
                  properties:
                    account_name:
                      type: object
                      title: Account
                      description: >-
                        Integration accounts, by integration ID (the `value`
                        from `/v1/report/filters` `account_name`). Send both
                        `type` and `matches`; a filter with an empty `matches`
                        list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: number
                      additionalProperties: false
                    account_owner:
                      type: object
                      title: Account owner
                      description: >-
                        Organisations that own the integration account, by
                        organisation ID (0 is the platform's own accounts). Send
                        both `type` and `matches`; a filter with an empty
                        `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: number
                      additionalProperties: false
                    config_id:
                      type: object
                      title: Config
                      description: >-
                        Ad unit configs, by config ID. Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: number
                      additionalProperties: false
                    creative_size:
                      type: object
                      title: Creative size
                      description: >-
                        Creative sizes, such as `300x250`. Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    campaign:
                      type: object
                      title: Campaign
                      description: >-
                        Ad server campaigns, by campaign ID. Send both `type`
                        and `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    campaign_advertiser:
                      type: object
                      title: Campaign advertiser
                      description: >-
                        Ad server advertiser names. Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    line_item:
                      type: object
                      title: Line item
                      description: >-
                        Ad server line items, by line item ID. Send both `type`
                        and `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    device:
                      type: object
                      title: Device
                      description: >-
                        Device types: `mobile`, `tablet` or `desktop`. Send both
                        `type` and `matches`; a filter with an empty `matches`
                        list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    environment:
                      type: object
                      title: Environment
                      description: >-
                        `web` or `app`. Send both `type` and `matches`; a filter
                        with an empty `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    geo:
                      type: object
                      title: Country
                      description: >-
                        Two-letter country codes. Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    region:
                      type: object
                      title: Region
                      description: >-
                        Region codes from `/v1/report/filters` `region`. Send
                        both `type` and `matches`; a filter with an empty
                        `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    revenue_source:
                      type: object
                      title: Revenue source
                      description: >-
                        `saas` (SaaS) or `pap` (Plug&Play). Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    oid:
                      type: object
                      title: Organisation
                      description: >-
                        Publisher organisations, by organisation ID. Send both
                        `type` and `matches`; a filter with an empty `matches`
                        list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: number
                      additionalProperties: false
                    partner:
                      type: object
                      title: Partner
                      description: >-
                        Demand partner names, lower case. Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    channel:
                      type: object
                      title: Channel
                      description: >-
                        Channels, such as `Header Bidding` or `Open Bidding`.
                        Send both `type` and `matches`; a filter with an empty
                        `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    platform:
                      type: object
                      title: Platform
                      description: >-
                        Integration platforms, by lower-case module ID. Send
                        both `type` and `matches`; a filter with an empty
                        `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    tag:
                      type: object
                      title: Publisher tag
                      description: >-
                        Publisher tags, by slug. Send both `type` and `matches`;
                        a filter with an empty `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                    uid:
                      type: object
                      title: Publisher
                      description: >-
                        Publishers, by publisher ID (uid). Send both `type` and
                        `matches`; a filter with an empty `matches` list is
                        ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: number
                      additionalProperties: false
                    unit:
                      type: object
                      title: Unit type
                      description: >-
                        Unit types, such as `in-article` or `adhesion`. Send
                        both `type` and `matches`; a filter with an empty
                        `matches` list is ignored.
                      properties:
                        type:
                          type: string
                          title: Match type
                          description: >-
                            Whether to keep only rows that match (`include`) or
                            drop them (`exclude`). Values: `include` = Include,
                            `exclude` = Exclude.
                          enum:
                            - include
                            - exclude
                        matches:
                          type: array
                          title: Values
                          description: Values to match, from `/v1/report/filters`.
                          items:
                            type: string
                      additionalProperties: false
                  additionalProperties: false
                custom_date:
                  title: Custom dates
                  description: >-
                    Start and end dates (YYYY-MM-DD), used when `date_range` is
                    `custom`. Null clears them.
                  properties:
                    start:
                      type: string
                      format: date
                      title: Start date
                      description: First day of the report.
                    end:
                      type: string
                      format: date
                      title: End date
                      description: Last day of the report.
                  additionalProperties: false
                  type: object
                  nullable: true
                table_state:
                  title: Table state
                  description: >-
                    The front end's saved table layout (column order, widths and
                    so on), stored as JSON and returned as sent. Not validated.
                    Null clears it.
                limit:
                  title: Row limit
                  description: >-
                    Maximum number of rows the report returns. Required (10,000
                    or less) when `date_range` is `all_time`. Null removes the
                    limit.
                  type: number
                  nullable: true
                order:
                  title: Sort order
                  description: >-
                    Sort rules, applied in order. Each `field` must also be in
                    `fields`. Null or an empty list removes sorting.
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                        title: Sort field
                        description: >-
                          Field to sort by. Values: `account_name` = Account
                          name, `account_owner` = Account owner,
                          `ad_impressions` = Ad impressions, `ad_requests` = Ad
                          requests, `ad_responses` = Ad responses,
                          `ad_unit_loads` = Ad unit loads, `campaign_advertiser`
                          = Campaign advertiser, `campaign` = Campaign,
                          `channel` = Channel, `clicks` = Clicks, `config_id` =
                          Config ID, `config_name` = Config name, `cost` = Cost
                          (gross minus net revenue), `creative_size` = Creative
                          size, `ctr` = CTR, `date` = Date, `device` = Device,
                          `ecpm` = eCPM, `environment` = Environment (web or
                          app), `fill` = Ad server fill, `geo` = Country,
                          `gross_revenue` = Gross revenue, `imp_fill` = Fill,
                          `line_item` = Line item, `month` = Month,
                          `net_revenue` = Net revenue, `organisation` =
                          Organisation, `page_impressions` = Page impressions,
                          `page_rpm` = Page RPM, `partner` = Partner, `platform`
                          = Platform, `publisher` = Publisher (domain),
                          `q1_impressions` = Q1 impressions, `q1_percent` = Q1
                          rate, `q2_impressions` = Q2 impressions, `q2_percent`
                          = Q2 rate, `q3_impressions` = Q3 impressions,
                          `q3_percent` = Q3 rate, `q4_impressions` = Q4
                          impressions, `q4_percent` = Q4 rate, `region` =
                          Region, `revenue_source` = Revenue source, `rpm` =
                          eRPM, `tag` = Publisher tag, `uid` = Publisher ID,
                          `unit_fill` = Unit fill, `unit` = Unit type,
                          `viewability` = Viewability, `viewable_impressions` =
                          Viewable impressions.
                        enum:
                          - account_name
                          - account_owner
                          - ad_impressions
                          - ad_requests
                          - ad_responses
                          - ad_unit_loads
                          - campaign_advertiser
                          - campaign
                          - channel
                          - clicks
                          - config_id
                          - config_name
                          - cost
                          - creative_size
                          - ctr
                          - date
                          - device
                          - ecpm
                          - environment
                          - fill
                          - geo
                          - gross_revenue
                          - imp_fill
                          - line_item
                          - month
                          - net_revenue
                          - organisation
                          - page_impressions
                          - page_rpm
                          - partner
                          - platform
                          - publisher
                          - q1_impressions
                          - q1_percent
                          - q2_impressions
                          - q2_percent
                          - q3_impressions
                          - q3_percent
                          - q4_impressions
                          - q4_percent
                          - region
                          - revenue_source
                          - rpm
                          - tag
                          - uid
                          - unit_fill
                          - unit
                          - viewability
                          - viewable_impressions
                      sort:
                        type: string
                        title: Direction
                        description: >-
                          Sort direction. Values: `ASC` = Ascending, `DESC` =
                          Descending.
                        enum:
                          - ASC
                          - DESC
                    additionalProperties: false
                  type: array
                  nullable: true
              additionalProperties: true
            example:
              title: Mobile revenue by publisher
              date_range: thirty_days
              fields:
                - date
                - publisher
                - ad_impressions
                - net_revenue
              filters:
                device:
                  type: include
                  matches:
                    - mobile
                    - tablet
              order:
                - field: net_revenue
                  sort: DESC
              limit: 500
        required: true
      responses:
        '200':
          description: 'OK: The report was saved. Returns its set-up.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    description: A saved report's set-up.
                    properties:
                      id:
                        type: integer
                        description: Report ID.
                        readOnly: true
                      title:
                        description: >-
                          Report title. A title made only of digits comes back
                          as a number.
                        oneOf:
                          - type: string
                            nullable: true
                          - type: number
                            nullable: true
                      created_by:
                        type: integer
                        description: ID of the user who created the report.
                        readOnly: true
                      organisation_id:
                        type: integer
                        description: Organisation the report belongs to.
                        readOnly: true
                      fields:
                        type: array
                        items:
                          type: string
                          enum:
                            - account_name
                            - account_owner
                            - ad_impressions
                            - ad_requests
                            - ad_responses
                            - ad_unit_loads
                            - campaign_advertiser
                            - campaign
                            - channel
                            - clicks
                            - config_id
                            - config_name
                            - cost
                            - creative_size
                            - ctr
                            - date
                            - device
                            - ecpm
                            - environment
                            - fill
                            - geo
                            - gross_revenue
                            - imp_fill
                            - line_item
                            - month
                            - net_revenue
                            - organisation
                            - page_impressions
                            - page_rpm
                            - partner
                            - platform
                            - publisher
                            - q1_impressions
                            - q1_percent
                            - q2_impressions
                            - q2_percent
                            - q3_impressions
                            - q3_percent
                            - q4_impressions
                            - q4_percent
                            - region
                            - revenue_source
                            - rpm
                            - tag
                            - uid
                            - unit_fill
                            - unit
                            - viewability
                            - viewable_impressions
                        description: Fields in the report.
                      date_range:
                        type: string
                        enum:
                          - custom
                          - yesterday
                          - seven_days
                          - thirty_days
                          - three_months
                          - six_months
                          - last_week
                          - last_month
                          - last_quarter
                          - last_year
                          - week_to_date
                          - month_to_date
                          - quarter_to_date
                          - year_to_date
                          - all_time
                        description: Date range preset.
                      custom_date:
                        description: Custom start and end dates, or null.
                        properties:
                          start:
                            type: string
                            description: Start date.
                            format: date
                          end:
                            type: string
                            description: End date.
                            format: date
                        type: object
                        nullable: true
                      table_state:
                        description: Saved table layout as sent by the front end, or null.
                      filters:
                        description: Filters keyed by filter name.
                        additionalProperties:
                          type: object
                          properties:
                            type:
                              type: string
                              enum:
                                - include
                                - exclude
                              description: Include or exclude matching rows.
                            matches:
                              type: array
                              items:
                                oneOf:
                                  - type: string
                                  - type: number
                              description: Values matched.
                        type: object
                        properties: {}
                        nullable: true
                      limit:
                        description: Row limit, or null.
                        type: number
                        nullable: true
                      order:
                        description: Sort rules, or null.
                        items:
                          type: object
                          properties:
                            field:
                              type: string
                              description: Field.
                            sort:
                              type: string
                              enum:
                                - ASC
                                - DESC
                        type: array
                        nullable: true
                      created_on:
                        type: string
                        description: When the report was created (Y-m-d H:i:s).
                        readOnly: true
                      temporary:
                        type: boolean
                        description: True if the report was saved as temporary.
                  success:
                    type: boolean
                    description: Always true on success.
                    enum:
                      - true
                required:
                  - results
                  - success
              example:
                results:
                  id: 412
                  title: Revenue by publisher
                  created_by: 87
                  organisation_id: 3
                  fields:
                    - date
                    - publisher
                    - ad_impressions
                    - net_revenue
                  date_range: thirty_days
                  custom_date: null
                  table_state: null
                  filters:
                    device:
                      type: include
                      matches:
                        - mobile
                        - tablet
                  limit: null
                  order:
                    - field: net_revenue
                      sort: DESC
                  created_on: '2026-11-02 09:14:03'
                  temporary: false
                success: true
          headers: {}
        '400':
          description: >-
            Bad Request: The body fails validation ("Form errors found: …", such
            as a `fields` entry that isn't a known field, fewer than two
            `fields`, an unknown `date_range` or filter, or a `title` over 50
            characters), or the fields don't make a valid report: no dimension
            or no metric ("Bad request. You must select at least one dimension
            and one metric."), metrics incompatible with the chosen dimensions
            or filters ("Metric … is incompatible with dimension …" or "Page
            impression metrics are incompatible with …"), or a sort on a field
            that isn't in the report ("You can only sort by fields that are
            selected for inclusion in the report.").
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: >-
                  Form errors found: date_range: The data should match one item
                  from enum
          headers: {}
        '401':
          description: >-
            Unauthorized: No valid token was sent. It's missing, invalid,
            expired or revoked.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: Token not found.
          headers: {}
        '403':
          description: 'Forbidden: You don''t have permission to do this.'
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                success: false
                message: User forbidden
          headers: {}
        '500':
          description: >-
            Internal Server Error: An unexpected error. The message includes a
            reference to quote to support.
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status: 500
                message: >-
                  An error occurred [4f2k], please try again shortly or contact
                  your account manager for further assistance.
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal API token from the platform's settings page, or an OAuth
        access token.

````

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