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

# Get the referral funnel for a referrer

> Sign-ups and first-time deposits per UTC day, newest day first. Days with no
activity are omitted; clients fill the gaps.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/referrals/funnel
openapi: 3.1.0
info:
  title: Decibel Trading API
  description: >-
    RESTful API for Decibel. Provides read-only endpoints for market data,
    trading operations, positions, and analytics.
  contact:
    name: Decibel Team
    url: https://decibel.trade/
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.mainnet.aptoslabs.com/decibel
    description: Mainnet
  - url: https://api.testnet.aptoslabs.com/decibel
    description: Testnet
security:
  - bearerAuth: []
tags:
  - name: Market Data
    description: Market information and real-time data endpoints
  - name: User
    description: User information and account management
  - name: Account
    description: Account-specific endpoints and data
  - name: Trades
    description: Trading operations and history
  - name: Positions
    description: User position management
  - name: Orders
    description: Order management and history
  - name: TWAP
    description: Time-weighted average price orders
  - name: Bulk Orders
    description: Bulk order management
  - name: Vaults
    description: Vault operations and management
  - name: Analytics
    description: Analytics and performance metrics
  - name: Points
    description: Points-related account metrics
  - name: Trading Points
    description: Trading points endpoints
  - name: Trading Hz
    description: Trading Hz endpoints
  - name: Tier
    description: Tier information endpoints
  - name: Streaks
    description: User streak tracking endpoints
  - name: Predeposit Rewards
    description: Season 0 predeposit USDC rewards
  - name: Referrals
    description: Referral code management and tracking
  - name: Affiliates
    description: Affiliate code and earnings endpoints
  - name: Campaigns
    description: On-chain reward campaign endpoints
paths:
  /api/v1/referrals/funnel:
    get:
      tags:
        - Referrals
      summary: Get the referral funnel for a referrer
      description: >-
        Sign-ups and first-time deposits per UTC day, newest day first. Days
        with no

        activity are omitted; clients fill the gaps.
      operationId: handle_referral_funnel
      parameters:
        - name: referrer_account
          in: query
          description: The referrer's wallet address (not a subaccount address)
          required: true
          schema:
            type: string
        - name: days
          in: query
          description: Most recent UTC days to return. Defaults to 14, clamped to 90.
          required: false
          schema:
            type: integer
            format: int64
            minimum: 0
      responses:
        '200':
          description: Per-day sign-ups and first deposits
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ReferralFunnelDay'
        '400':
          description: Invalid address
        '500':
          description: Database error
components:
  schemas:
    ReferralFunnelDay:
      type: object
      description: One UTC day of the referral funnel.
      required:
        - day_start_unix_ms
        - sign_ups
        - first_deposits
      properties:
        day_start_unix_ms:
          type: integer
          format: int64
          description: UTC midnight of the day
        first_deposits:
          type: integer
          format: int64
          description: Referrals whose very first collateral deposit landed on this day
          minimum: 0
        sign_ups:
          type: integer
          format: int64
          description: Referrals that redeemed one of the referrer's codes on this day
          minimum: 0
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer token from Geomi. See
        [Authentication](/api-reference/rest/authentication) for setup
        instructions.

````