TunnelSats Public Wireguard API
  1. 🔐 Authenticated
TunnelSats Public Wireguard API
  • About our team
  • 📢 Public
    • List Servers
      GET
    • Create Subscription
      POST
    • Check Status / Heal
      GET
    • Claim Subscription
      POST
    • Renew Subscription
      POST
    • Get Subscription Status
      POST
  • 🔐 Authenticated
    • List My Subscriptions
      GET
    • Sync Subscription
      POST
    • Create Referral Code
      POST
    • Referral History
      GET
  • Announcements
    • 💫 What is TunnelSats?
    • 🚀 Introducing the TunnelSats Public API v1
  • Cookbook
    • 🛠️ Automation & Code Examples
    • 🐚 Bash One-Liners
    • 🛑 Error Codes & Troubleshooting
    • 🎁 Referral Program: Earn Bonus Months
  • Schemas
    • Server
    • InvoiceOrder
    • SubscriptionStatus
    • WireGuardConfig
    • ReferralCode
    • ReferralHistory
    • NodeLookup
    • ConnectivityResult
  1. 🔐 Authenticated

Sync Subscription

POST
/api/public/v1/subscription/{{paymentHash}}/sync
Triggers real-time sync from VPN server. Returns updated bandwidth/expiry.

Request

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

Responses

🟢200
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://tunnelsats.com/api/public/v1/subscription/{{paymentHash}}/sync' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "success": true,
    "subscription": {
        "id": "sub-xyz789",
        "bandwidth_used": 2489,
        "bandwidth_limit": 100000,
        "last_synced_at": "2026-01-15T14:20:00.000Z",
        "expiresAt": "2026-02-01T10:30:00.000Z"
    }
}
Modified at 2026-02-10 21:55:30
Previous
List My Subscriptions
Next
Create Referral Code
Built with