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

Request Bandwidth Top-Up ($1 for +100GB)

POST
/api/public/v1/subscription/bandwidth-reset
Generates a $1 USD Lightning invoice to instantly reset bandwidth consumption to 0MB (+100GB allowance) and re-enable a throttled/disabled WireGuard peer. Usage must exceed 70% threshold.

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Bandwidth top-up invoice generated
Bodyapplication/json

🟠400Bad Request
🟠404Record Not Found
🟠429
🔴500Server Error
🔴503Service Unavailable
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://tunnelsats.com/api/public/v1/subscription/bandwidth-reset' \
--header 'Accept;' \
--header 'Content-Type: application/json' \
--data '{
    "wgPublicKey": "pWyZTQx8C4gzzgMVJHiN1ptI46wDtyJSMRa+wxtkXOM=",
    "serverId": "us-east"
}'
Response Response Example
200 - Example 1
{
    "invoice": "lnbc30000n1p...",
    "paymentHash": "c3d4e5f6a1b2...",
    "resetId": "d7b2277f-5990-4721-a565-6816babadc59",
    "amountSats": 3000,
    "amountUsd": "1.00",
    "currentUsagePercent": "85.4",
    "resetsThisMonth": 0,
    "maxResetsPerMonth": 2
}
Modified at 2026-08-31 19:53:40
Previous
Get Subscription & Bandwidth Status by WireGuard Public Key
Next
🔐 Authenticated
Built with