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

# Insights spending

> Insights spending via Posttu's Fanvue REST API (POST /api/v1/fanvue/earnings/spending) and MCP server.



## OpenAPI

````yaml openapi.json POST /api/v1/fanvue/earnings/spending
openapi: 3.1.0
info:
  title: Posttu API
  version: 1.0.0
  description: >-
    Posttu V1 REST API — Workflow automation, social-media post management,
    inbox, tags, and calendar.
servers:
  - url: https://posttu.com
    description: Production
security: []
paths:
  /api/v1/fanvue/earnings/spending:
    post:
      tags:
        - Fanvue
      summary: Insights spending
      description: |-
        Insights spending
        Requires API key scope: `fanvue:read`.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FanvueApiBaseInput'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FanvueInsightsSpendingResponse'
        '401':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
      security:
        - ApiKeyAuth: []
components:
  schemas:
    FanvueApiBaseInput:
      type: object
      properties:
        channelId:
          type: string
          description: Fanvue channel ID
          example: ch_fanvue123
      required:
        - channelId
    FanvueInsightsSpendingResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          type:
            - object
            - 'null'
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/FanvueSpendingDatum'
            cursor:
              type:
                - string
                - 'null'
            hasMore:
              type: boolean
            totalCount:
              type:
                - number
                - 'null'
          required:
            - data
            - cursor
            - hasMore
            - totalCount
          description: The cursor-paginated FanvueSpendingDatum list.
      required:
        - success
        - data
    FanvueSpendingDatum:
      type: object
      properties:
        date:
          type: string
        gross:
          type: number
        net:
          type: number
        currency:
          type:
            - string
            - 'null'
        source:
          type: string
          enum:
            - refund
            - chargeback
        messageUuid:
          type: string
        postUuid:
          type: string
        user:
          type:
            - object
            - 'null'
          properties:
            uuid:
              type: string
            handle:
              type: string
            displayName:
              type: string
            nickname:
              type:
                - string
                - 'null'
            isTopSpender:
              type: boolean
          required:
            - uuid
            - handle
            - displayName
            - nickname
            - isTopSpender
      required:
        - date
        - gross
        - net
        - currency
        - source
        - user
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      description: 'Pass your API key via the Authorization header: `Bearer <api-key>`'

````

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