1. 🔄 Lifecycle
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
    • Renew an Existing VPN Subscription (Anonymous)
      POST
    • Sync Subscription (Real-Time Server Refresh)
      POST
    • Request Bandwidth Top-Up ($1 for +100GB)
      POST
  • 🔑 Account
    • List Account Subscriptions (Authenticated)
      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
    • PublicKeyStatusResponse
    • RenewalOrder
    • SubscriptionListItem
    • SyncResult
Tunnelsats Github
Tunnelsats Telegram
  1. 🔄 Lifecycle

Sync Subscription (Real-Time Server Refresh)

POST
https://tunnelsats.com/api/public/v1/subscription/{paymentHash}/sync
Triggers a real-time sync from the VPN server to refresh bandwidth, expiry, and peer status. Requires authentication and subscription ownership. Rate limit: 5 requests/min per subscription.

Request

Path Params

Header Params

Responses

🟢200OK
application/json
Subscription synced successfully
Bodyapplication/json

🟠401Unauthorized
🟠404Record Not Found
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://tunnelsats.com/api/public/v1/subscription//sync' \
--header 'Authorization;' \
--header 'Accept;'
Response Response Example
200 - Success Example
{
    "success": true,
    "subscription": {
        "expiry": "2026-10-15T12:00:00Z",
        "bandwidth_used_gb": 45.67,
        "status": "enabled",
        "server_domain": "de2.tunnelsats.com"
    }
}
Modified at 2026-09-02 16:25:43
Previous
Renew an Existing VPN Subscription (Anonymous)
Next
Request Bandwidth Top-Up ($1 for +100GB)
Built with