Skip to main content
Docs/Advanced

REST API

Manage your tunnels from scripts with a personal API token.

1

Create a token

Dashboard → Account → API tokens. Pick Read only, or Read + change IPv4 if your script should update the tunnel. The token (gt_…) is shown only once.

2

Send it in every request

shell
curl -s https://SITE/api/v1/tunnels \
  -H "Authorization: Bearer YOUR_TOKEN"

Endpoints

GET /api/v1/meYour nick, Tunnel Broker ID and the token's scope.
GET /api/v1/tunnelsAll your tunnels: id, name, description, type, PoP, prefix, IPv4 and status.
GET /api/v1/tunnels/{id}One tunnel.
GET /api/v1/tunnels/{id}/traffic?range=24hTraffic in bytes per interval; range 24h, 7d or 30d.
POST /api/v1/tunnels/{id}/ipv4Change the IPv4 of a SIT/GRE tunnel. Needs a token with the change IPv4 scope.
change IPv4
curl -s -X POST https://SITE/api/v1/tunnels/TUNNEL_ID/ipv4 \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ipv4": "YOUR_IPV4"}'

Limits and errors

  • 60 requests per minute per token. Tunnel changes share the dashboard limit (6 per 10 minutes).
  • Errors return JSON with detail or error and a status code: 401 bad token, 403 read-only token or blocked account, 404 not your tunnel, 429 too many requests.
Keep tokens secret

A token gives access to your tunnels. Revoke it in the dashboard if it leaked — it stops working immediately.

Only need to follow a changing IPv4?

The simpler Dynamic IPv4 update URL is enough for most routers.

Something unclear or missing? Contact support.