Skip to Content
Xeonr Developer Docs
API SpecificationTraffic

Get Transfer

POST
/xeonr.burrow.v1.TrafficService/GetTransfer

Returns how many bytes a team's tunnels carried over a window, in total and as a zero-filled series of buckets for a chart, optionally narrowed to one tunnel and broken down per tunnel.

Bytes are counted on the stream between the gateway and the agent as they move, so a long-lived WebSocket, TCP connection or UDP flow shows up while it runs rather than when it ends, and an upgraded connection's frames are counted. Every HTTP request, TCP connection and UDP flow is counted whatever the tunnel's capture mode, which decides only what the request history keeps. bytes_in is what callers sent into the tunnel, bytes_out what the agent sent back, both including HTTP headers but not the agent protocol's own framing.

Kept for 400 days, independently of the reservation's retention: a bucket is a count, with no path, address or body in it. Metering began in October 2026, so a window reaching further back reads zero there.

Required scopes: burrow:traffic:read

Authorization

BearerAuth
AuthorizationBearer <token>

A Xeonr Auth access token whose audience is this API, or a team API key (xk_…), presented as Authorization: Bearer ….

In: header

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

team?string
Lengthlength <= 128
tunnel?string

Tunnel narrows to one tunnel by name, matched exactly. Empty is the whole team.

Lengthlength <= 253
window?

TransferWindow is the period a transfer series covers and how it is cut.

byTunnel?boolean

ByTunnel adds each tunnel's total over the window, for a breakdown. validate:skip — a flag; both values are valid

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://burrow.prod.wtf/xeonr.burrow.v1.TrafficService/GetTransfer" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "transfer": "map[buckets:[map[bytesIn:18350080 bytesOut:524288000 start:2026-10-20T23:00:00Z streams:4210]] bytesIn:381681664 bytesOut:10905190400 step:TRANSFER_STEP_DAY streams:88412 timeFrom:2026-09-30T23:00:00Z timeTo:2026-10-22T00:00:00Z timeZone:Europe/London tunnels:[map[bytesIn:381681664 bytesOut:10905190400 protocol:PROTOCOL_HTTP streams:88412 tunnel:checkout]]]"
}