API
Provision Tunnel
Provision a foreground tunnel. Returns HTTP 402 with an MPP payment challenge if no credential is provided. On successful payment, returns tunnel details with a receipt.
POST
/api/agent/tunnelsResponse (200):
json
{
"subdomain": "agent-a1b2c3d4",
"publicUrl": "https://agent-a1b2c3d4.otterkit.app",
"connectUrl": "wss://otterkit.app/ws/connect?subdomain=agent-a1b2c3d4",
"mode": "foreground"
}Response (402): MPP payment challenge with WWW-Authenticate: Payment header.