# What customers ask for: customers and ARR per feature, category, New opportunity and the whole product (/api/feedback/get_feedback_counts)

`GET /v1/products/{productId}/feedback-counts`

Operation name: `get_feedback_counts`

The main read for prioritising. Only grouped insights count. A customer is a company, else the contact's company, else the contact, else the record. Each customer counts once in each topic, and once on each feature, category, `unplaced` and New opportunity (a category covers its live features below), and once in `product`, the whole product's total (every page carries it); types likewise, ARR once per customer. ARR amounts are exact decimal strings in `currency`, the organization's reporting currency, converted with the stored rates of `ratesAsOf`; ARR in the currencies in `unconverted` is left out. `noArr` is true when none of the customers counted here has ARR in any currency: report "no ARR yet" and where ARR comes from (a CRM connection's ARR field, `set_arr_field`; or `arr` or `mrr` on `send_feedback`), not zero revenue. Trends and changes follow the product's reporting unit, `unit` (week, month or quarter: its Report by, or on auto the unit its volume calls for). `periods` are each trend unit's first day (weeks from Monday, UTC), the current, unfinished one last; `trend` counts customers per unit by the date feedback was given, a customer once a unit. `window.latest` is the last complete window (4 weeks, 3 months or 2 quarters) and `window.before` the one before (`to` is the day after). `change` holds their customers, each customer once a window however many of its units they gave feedback in; when both are under 5, people see the two numbers instead of a percent, so report them that way. `trendByType` and `changeByType` are the same for each insight type alone. `meta.counting`: feedback is still on its way into topics; `meta.uncounted`: some feedback is left out because it needs attention; `meta.hasRecords`: any record exists; `meta.countingRecords` and `meta.uncountedRecords`: how many records are still on their way, and how many are left out (a record counts in one of them at most, left out first). `withoutStatus`: how many distinct counted customers have no customer status, in all and per type. Each total's `changeState` is its change state for `type`. With `change`, `minCustomers` or `minArr`, only matching features are listed (categories while they hold one, with full totals); `product`, `unplaced` and `newOpportunity` keep theirs and `newOpportunityMatches` says if New opportunity matches. Drill into a feature with `list_feature_topics`.

## Authentication

An OAuth access token for the person who allowed your tool: register a client, then the authorization code flow with PKCE (S256). Send it as `Authorization: Bearer <token>` on every route that needs a signed-in person. Calls with a token are limited per person, across all their apps, to 120 calls a minute and 10,000 a UTC day; calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) also to 10 a minute and 200 a UTC day. Over a limit a call answers 429 `rate_limited` with `Retry-After` and `details.retryAfter` in seconds, and changes nothing.

Or: An API key, sent as `Authorization: Bearer ha_…` (keys made before the rename to Heuristic start `fsa_` and keep working). Keys are created only in the Heuristic web app and shown once. A personal key (Settings → Personal → My API keys) acts as its person in one of their organizations, with exactly their access there, checked on every call; its calls count toward the person's limits on calls through apps and agents, as described for OAuth tokens, and it can't change the person's account (their profile, organizations, invitations or connected apps). An organization key (Settings → Organization → API keys, created by Admins) acts for the organization, not a person: it can see and change every product and its feedback as an Admin can, but not people, product access, CRM connections or the organization's settings, and it can't delete a product; each organization key has its own limits, with the same numbers. Either kind is Full access or Read only (a change with a read-only key answers 403 `read_only_key`), reaches only its own organization (others answer 404), works on /v1 only, not on the MCP server, and can't create keys or manage the organization's API keys. Other refused calls answer 403 `api_key_not_allowed`. A wrong, expired or revoked key, or a disabled member's personal key, answers 401 `unauthorized`. A full-access key sends feedback: a personal key as its person, to the products they own; an organization key to any product of its organization; the record's `sentBy` names the key.

## Path parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `productId` | path | string | yes | A Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 `validation_error`. |

## Query parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `customerStatus` | query | string | no | Only customers with this status count: `customer` or `prospect`. Left out: customers and prospects, and customers with no status. A customer's status is taken the way its ARR is: a company's own (the record's, else its contact's company); a contact counted alone, the status of their most recent record that carried one; a record counted alone, its own. `withoutStatus` says how many counted customers have no status, whatever this is. |
| `period` | query | string | no | Only feedback given in this period counts, by the date it was given: `30d` and `90d` are the last 30 or 90 days, `12m` the last 12 calendar months (UTC), all measured back from the moment of the request; feedback dated later counts too. Left out: all time. Counts, ARR, `insights`, which topics are listed and `withoutStatus` follow it; `trend`, `trendByType`, `change`, `changeByType` and `meta` do not (they keep the reporting unit's own windows). |
| `sort` | query | string | no | `tree` (the default): categories and features in the hierarchy's order, as `get_hierarchy` pages them. `customers` or `arr`: the features only, ranked most first by `counts` or `arr` (`total`, or `type`'s) under the filters given, ties by title. `change`: the features only, fastest growing first: by the rise in `change` (or `type`'s), then the percent (new ones first), then title. A ranking moves as feedback arrives, so later pages can repeat or skip a feature. |
| `categoryId` | query | string | no | A Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 `validation_error`. |
| `type` | query | string | no | The insight type whose numbers `changeState`, the filters and `sort` read. Left out: all types. |
| `change` | query | string | no | Only features in any of these `changeState`s, lower case and comma separated: `growing`, `new`, `shrinking`, `flat` (`growing,new`). |
| `minCustomers` | query | integer or null | no | Only features with at least this many customers. 0 or left out: off. |
| `minArr` | query | integer or null | no | Only features with at least this ARR, in whole units of `currency`. 0 or left out: off. |
| `limit` | query | integer | no | How many items a page holds, 1 to 1000 (50 when left out). A larger page may be cut off by your client. |
| `cursor` | query | string | no | The previous page's `meta.nextCursor`, with the same `sort`, `categoryId` and filters; left out: the first page. In tree order with filters, a changed match refuses it (409): start again. |

## Responses

### 200

The counts

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "currency": {
          "type": "string"
        },
        "ratesAsOf": {
          "type": [
            "string",
            "null"
          ]
        },
        "unconverted": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "noArr": {
          "type": "boolean",
          "description": "True when none of the customers counted here, under the filters given, has ARR in any currency: ARR values are then 0 for want of ARR, not because there is no revenue. Report it as \"no ARR yet\", and that ARR comes from a CRM connection's ARR field (`set_arr_field`) or from `arr` or `mrr` sent with `send_feedback`."
        },
        "unit": {
          "type": "string",
          "enum": [
            "week",
            "month",
            "quarter"
          ]
        },
        "periods": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "window": {
          "type": "object",
          "properties": {
            "latest": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ]
            },
            "before": {
              "type": "object",
              "properties": {
                "from": {
                  "type": "string"
                },
                "to": {
                  "type": "string"
                }
              },
              "required": [
                "from",
                "to"
              ]
            }
          },
          "required": [
            "latest",
            "before"
          ]
        },
        "features": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "counts": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer"
                  },
                  "feature_request": {
                    "type": "integer"
                  },
                  "bug": {
                    "type": "integer"
                  },
                  "praise": {
                    "type": "integer"
                  },
                  "complaint": {
                    "type": "integer"
                  },
                  "question": {
                    "type": "integer"
                  }
                },
                "required": [
                  "total",
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "arr": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "feature_request": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "bug": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "praise": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "complaint": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "question": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  }
                },
                "required": [
                  "total",
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "trend": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "trendByType": {
                "type": "object",
                "properties": {
                  "feature_request": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "bug": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "praise": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "complaint": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "question": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "required": [
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "change": {
                "type": "object",
                "properties": {
                  "before": {
                    "type": "integer"
                  },
                  "latest": {
                    "type": "integer"
                  }
                },
                "required": [
                  "before",
                  "latest"
                ]
              },
              "changeByType": {
                "type": "object",
                "properties": {
                  "feature_request": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "bug": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "praise": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "complaint": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "question": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  }
                },
                "required": [
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "topics": {
                "type": "integer",
                "description": "How many topics have counted feedback here under the filters given: the topics its topics read lists."
              },
              "changeState": {
                "type": "string",
                "enum": [
                  "growing",
                  "new",
                  "shrinking",
                  "flat"
                ]
              },
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "counts",
              "arr",
              "trend",
              "trendByType",
              "change",
              "changeByType",
              "topics",
              "changeState",
              "id",
              "title"
            ]
          }
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "counts": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "integer"
                  },
                  "feature_request": {
                    "type": "integer"
                  },
                  "bug": {
                    "type": "integer"
                  },
                  "praise": {
                    "type": "integer"
                  },
                  "complaint": {
                    "type": "integer"
                  },
                  "question": {
                    "type": "integer"
                  }
                },
                "required": [
                  "total",
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "arr": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "feature_request": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "bug": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "praise": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "complaint": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  },
                  "question": {
                    "type": "string",
                    "pattern": "^\\d+\\.\\d{2}$"
                  }
                },
                "required": [
                  "total",
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "trend": {
                "type": "array",
                "items": {
                  "type": "integer"
                }
              },
              "trendByType": {
                "type": "object",
                "properties": {
                  "feature_request": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "bug": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "praise": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "complaint": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  },
                  "question": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    }
                  }
                },
                "required": [
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "change": {
                "type": "object",
                "properties": {
                  "before": {
                    "type": "integer"
                  },
                  "latest": {
                    "type": "integer"
                  }
                },
                "required": [
                  "before",
                  "latest"
                ]
              },
              "changeByType": {
                "type": "object",
                "properties": {
                  "feature_request": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "bug": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "praise": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "complaint": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  },
                  "question": {
                    "type": "object",
                    "properties": {
                      "before": {
                        "type": "integer"
                      },
                      "latest": {
                        "type": "integer"
                      }
                    },
                    "required": [
                      "before",
                      "latest"
                    ]
                  }
                },
                "required": [
                  "feature_request",
                  "bug",
                  "praise",
                  "complaint",
                  "question"
                ]
              },
              "topics": {
                "type": "integer",
                "description": "How many topics have counted feedback here under the filters given: the topics its topics read lists."
              },
              "changeState": {
                "type": "string",
                "enum": [
                  "growing",
                  "new",
                  "shrinking",
                  "flat"
                ]
              },
              "id": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            },
            "required": [
              "counts",
              "arr",
              "trend",
              "trendByType",
              "change",
              "changeByType",
              "topics",
              "changeState",
              "id",
              "title"
            ]
          }
        },
        "unplaced": {
          "type": "object",
          "properties": {
            "counts": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "feature_request": {
                  "type": "integer"
                },
                "bug": {
                  "type": "integer"
                },
                "praise": {
                  "type": "integer"
                },
                "complaint": {
                  "type": "integer"
                },
                "question": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "arr": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "feature_request": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "bug": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "praise": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "complaint": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "question": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "trend": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "trendByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "bug": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "praise": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "complaint": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "question": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "change": {
              "type": "object",
              "properties": {
                "before": {
                  "type": "integer"
                },
                "latest": {
                  "type": "integer"
                }
              },
              "required": [
                "before",
                "latest"
              ]
            },
            "changeByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "bug": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "praise": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "complaint": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "question": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "topics": {
              "type": "integer",
              "description": "How many topics have counted feedback here under the filters given: the topics its topics read lists."
            },
            "changeState": {
              "type": "string",
              "enum": [
                "growing",
                "new",
                "shrinking",
                "flat"
              ]
            }
          },
          "required": [
            "counts",
            "arr",
            "trend",
            "trendByType",
            "change",
            "changeByType",
            "topics",
            "changeState"
          ]
        },
        "newOpportunity": {
          "type": "object",
          "properties": {
            "counts": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "feature_request": {
                  "type": "integer"
                },
                "bug": {
                  "type": "integer"
                },
                "praise": {
                  "type": "integer"
                },
                "complaint": {
                  "type": "integer"
                },
                "question": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "arr": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "feature_request": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "bug": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "praise": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "complaint": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "question": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "trend": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "trendByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "bug": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "praise": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "complaint": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "question": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "change": {
              "type": "object",
              "properties": {
                "before": {
                  "type": "integer"
                },
                "latest": {
                  "type": "integer"
                }
              },
              "required": [
                "before",
                "latest"
              ]
            },
            "changeByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "bug": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "praise": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "complaint": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "question": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "topics": {
              "type": "integer",
              "description": "How many topics have counted feedback here under the filters given: the topics its topics read lists."
            },
            "changeState": {
              "type": "string",
              "enum": [
                "growing",
                "new",
                "shrinking",
                "flat"
              ]
            }
          },
          "required": [
            "counts",
            "arr",
            "trend",
            "trendByType",
            "change",
            "changeByType",
            "topics",
            "changeState"
          ]
        },
        "product": {
          "type": "object",
          "properties": {
            "counts": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "integer"
                },
                "feature_request": {
                  "type": "integer"
                },
                "bug": {
                  "type": "integer"
                },
                "praise": {
                  "type": "integer"
                },
                "complaint": {
                  "type": "integer"
                },
                "question": {
                  "type": "integer"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "arr": {
              "type": "object",
              "properties": {
                "total": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "feature_request": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "bug": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "praise": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "complaint": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                },
                "question": {
                  "type": "string",
                  "pattern": "^\\d+\\.\\d{2}$"
                }
              },
              "required": [
                "total",
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "trend": {
              "type": "array",
              "items": {
                "type": "integer"
              }
            },
            "trendByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "bug": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "praise": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "complaint": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                },
                "question": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  }
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "change": {
              "type": "object",
              "properties": {
                "before": {
                  "type": "integer"
                },
                "latest": {
                  "type": "integer"
                }
              },
              "required": [
                "before",
                "latest"
              ]
            },
            "changeByType": {
              "type": "object",
              "properties": {
                "feature_request": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "bug": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "praise": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "complaint": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                },
                "question": {
                  "type": "object",
                  "properties": {
                    "before": {
                      "type": "integer"
                    },
                    "latest": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "before",
                    "latest"
                  ]
                }
              },
              "required": [
                "feature_request",
                "bug",
                "praise",
                "complaint",
                "question"
              ]
            },
            "topics": {
              "type": "integer",
              "description": "How many topics have counted feedback here under the filters given: the topics its topics read lists."
            },
            "changeState": {
              "type": "string",
              "enum": [
                "growing",
                "new",
                "shrinking",
                "flat"
              ]
            }
          },
          "required": [
            "counts",
            "arr",
            "trend",
            "trendByType",
            "change",
            "changeByType",
            "topics",
            "changeState"
          ],
          "description": "The whole product: each customer counted once across every feature, category, the features not in a category yet and New opportunity, under the filters given. Use it for the product's total; summing the categories counts a customer once per category."
        },
        "withoutStatus": {
          "type": "object",
          "properties": {
            "total": {
              "type": "integer",
              "minimum": 0
            },
            "feature_request": {
              "type": "integer",
              "minimum": 0
            },
            "bug": {
              "type": "integer",
              "minimum": 0
            },
            "praise": {
              "type": "integer",
              "minimum": 0
            },
            "complaint": {
              "type": "integer",
              "minimum": 0
            },
            "question": {
              "type": "integer",
              "minimum": 0
            }
          },
          "required": [
            "total",
            "feature_request",
            "bug",
            "praise",
            "complaint",
            "question"
          ]
        },
        "version": {
          "type": "string"
        },
        "newOpportunityMatches": {
          "type": "boolean"
        }
      },
      "required": [
        "currency",
        "ratesAsOf",
        "unconverted",
        "noArr",
        "unit",
        "periods",
        "window",
        "features",
        "categories",
        "unplaced",
        "newOpportunity",
        "product",
        "withoutStatus",
        "version",
        "newOpportunityMatches"
      ]
    },
    "meta": {
      "type": "object",
      "properties": {
        "counting": {
          "type": "boolean"
        },
        "uncounted": {
          "type": "boolean"
        },
        "hasRecords": {
          "type": "boolean"
        },
        "countingRecords": {
          "type": "integer",
          "minimum": 0
        },
        "uncountedRecords": {
          "type": "integer",
          "minimum": 0
        },
        "nextCursor": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "counting",
        "uncounted",
        "hasRecords",
        "countingRecords",
        "uncountedRecords",
        "nextCursor"
      ]
    }
  },
  "required": [
    "data",
    "meta"
  ]
}
```

### 400

Error

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {}
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 401

Error

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {}
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 404

Error

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {}
      },
      "required": [
        "code",
        "message"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

## Example request

```bash
curl "https://staging.heuristic.app/v1/products/{productId}/feedback-counts" \
  -H "Authorization: Bearer <access token>"
```
