# Referral History

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/referral/history:
    get:
      summary: Referral History
      deprecated: false
      description: >-
        Retrieves a history of successful referrals (paid/claimed orders) that
        earned you bonus months.
      tags:
        - 🔐 Authenticated
      parameters:
        - name: Authorization
          in: header
          description: ''
          required: true
          example: Bearer {{apiKey}}
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  history:
                    type: array
                    items:
                      type: object
                      properties:
                        date:
                          type: string
                        duration_purchased:
                          type: integer
                        bonus_earned:
                          type: integer
                      required:
                        - date
                        - duration_purchased
                        - bonus_earned
                      x-apidog-orders:
                        - date
                        - duration_purchased
                        - bonus_earned
                required:
                  - history
                x-apidog-orders:
                  - history
              example:
                history:
                  - date: '2026-01-01T19:40:00.000Z'
                    duration_purchased: 3
                    bonus_earned: 1
                  - date: '2025-12-25T10:00:00.000Z'
                    duration_purchased: 12
                    bonus_earned: 3
          headers: {}
          x-apidog-name: ''
      security: []
      x-apidog-folder: 🔐 Authenticated
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/361232/apis/api-4063139-run
components:
  schemas: {}
  securitySchemes:
    ApiKeyAuth:
      type: bearer
      scheme: bearer
      description: Authenticate using your TunnelSats API Key (sk_live_...).
    NostrAuth:
      type: bearer
      scheme: bearer
      description: >-
        NIP-98 Nostr Authentication. The 'token' should be the base64-encoded
        NIP-98 event JSON.
servers:
  - url: https://tunnelsats.com
    description: Prod Env
security: []

```