1. 🔑 Account
TunnelSats Public Wireguard API
  • Announcements
    • 👋 About our team
    • 💫 What is TunnelSats?
    • 🚀 Introducing the TunnelSats Public API v1
    • How TunnelSats Leverages Public APIs for Confined VPN Management
  • 📡 Discovery
    • List Available WireGuard Servers & Regions
      GET
  • ⚡ Purchase
    • Create a New WireGuard Subscription (Invoice Generation)
      POST
    • Check Invoice Status & Polling by Payment Hash
      GET
    • Claim WireGuard Configuration After Payment Settlement
      POST
  • 🔄 Lifecycle
    • Get Subscription & Bandwidth Status by WireGuard Public Key
      POST
    • Sync Subscription (Real-Time Server Refresh)
      POST
    • Renew an Existing VPN Subscription (Anonymous)
      POST
    • Request Bandwidth Top-Up ($1 for +100GB)
      POST
  • 🔑 Account
    • List Account Subscriptions (Authenticated)
      GET
    • Create Referral Code
      POST
    • Get Referral Code
      GET
    • Referral History
      GET
  • 🔧 Tools
    • Lightning Node Network Address Discovery
      POST
    • Universal Connectivity & Latency Probe
      POST
  • Cookbook
    • 🛠️ Automation & Code Examples
    • 🐚 Bash One-Liners
    • 🚑 Node Health & Upkeep
    • ⚡ Bandwidth Top-Up ($1 for +100GB)
    • 🛡️ Security & Authentication
    • 🎁 Referral Program: Earn Bonus Months
    • 🛑 Error Codes & Troubleshooting
  • Schemas
    • Server
    • InvoiceOrder
    • SubscriptionStatus
    • NodeLookup
    • ConnectivityResult
    • ApiError
    • ClaimResult
    • BandwidthResetResponse
    • ReferralCode
    • ReferralHistory
    • BandwidthResetPaymentStatus
    • PublicKeyStatusResponse
    • RenewalOrder
    • SubscriptionListItem
    • SyncResult
Tunnelsats Github
Tunnelsats Telegram
  1. 🔑 Account

Referral History

GET
https://tunnelsats.com/api/referral/history
Lists up to 50 paid or claimed subscriptions that used your referral code, newest first. bonus_earned is the number of bonus months the referral qualifies for based on the purchased duration (1 → 0, 3 → 1, 6 → 2, 12 → 3). Returns an empty list if you have no code yet. Rate limit: 30 requests/min per account.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Responses

🟢200
application/json
Referral history
Bodyapplication/json

🟠401
🟠429
🔴500
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://tunnelsats.com/api/referral/history' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Success
{
    "history": [
        {
            "date": "2026-01-01 19:40:00",
            "duration_purchased": 3,
            "bonus_earned": 1
        },
        {
            "date": "2025-12-25 10:00:00",
            "duration_purchased": 12,
            "bonus_earned": 3
        }
    ]
}
Modified at 2026-09-27 20:22:45
Previous
Get Referral Code
Next
Lightning Node Network Address Discovery
Built with