> ## 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 earnings percentile

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



## OpenAPI

````yaml openapi.json POST /api/v1/fanvue/earnings/percentile
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/percentile:
    post:
      tags:
        - Fanvue
      summary: Insights earnings percentile
      description: |-
        Insights earnings percentile
        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/FanvueInsightsEarningsPercentileResponse'
        '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
    FanvueInsightsEarningsPercentileResponse:
      type: object
      properties:
        success:
          type: boolean
          description: Success status
        data:
          type:
            - object
            - 'null'
          properties:
            data:
              type: array
              items:
                $ref: '#/components/schemas/FanvueEarningsDatum'
            cursor:
              type:
                - string
                - 'null'
            hasMore:
              type: boolean
            totalCount:
              type:
                - number
                - 'null'
          required:
            - data
            - cursor
            - hasMore
            - totalCount
          description: The cursor-paginated FanvueEarningsDatum list.
      required:
        - success
        - data
    FanvueEarningsDatum:
      type: object
      properties:
        date:
          type: string
        gross:
          type: number
        net:
          type: number
        currency:
          type:
            - string
            - 'null'
        source:
          type: string
          enum:
            - all
            - affiliate
            - appStore
            - checkoutLink
            - fanExperience
            - mediaLink
            - message
            - post
            - referral
            - renewal
            - subscription
            - tip
            - giveaway
            - refund
            - chargeback
        transactionOrderId:
          type: string
        transactionOrderStatus:
          type: string
          enum:
            - availableForPayout
            - pendingBalance
        messageUuid:
          type: string
        messageType:
          type: string
          enum:
            - AUTOMATED_CANCELED
            - AUTOMATED_NEW_FOLLOWER
            - AUTOMATED_NEW_PURCHASE
            - AUTOMATED_NEW_SUBSCRIBER
            - AUTOMATED_RE_SUBSCRIBED
            - AUTOMATED_RENEWED
            - AUTOMATED_FIRST_MESSAGE_REPLY
            - AUTOMATED_CHAT_MESSAGE_REPLY
            - BROADCAST
            - CHAT_TEXT_GENERATION
            - CHAT_TEXT_REWRITE
            - CHAT_TEXT_REPLY
            - GHOST_PROMOTION
            - MARKETING_KYC
            - TIP
            - LOCKED_MESSAGE_UNLOCKED
            - VOICE_CALL
            - SINGLE_RECIPIENT
        postUuid:
          type: string
        tipContext:
          type: string
          enum:
            - post
            - message
        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
        - transactionOrderId
        - transactionOrderStatus
        - 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.