Skip to Content
Xeonr Developer Docs

Announce grabber

POST
/xmb.api.v1.GrabberAgentService/AnnounceGrabber

Reports the grabber's WireGuard public key and storage, and returns its tunnel configuration. Authenticated by the grabber token.

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

grabberToken?string
Length20 <= length <= 128
wgPublicKey?string

Current WireGuard public key (base64, 32 bytes). Generated fresh at boot; a changed key is a rotation and replaces the previous one.

Length44 <= length <= 44
agentVersion?string
Lengthlength <= 64
wgListenPort?integer

The UDP port the WireGuard device is bound to — stable, and configured rather than ephemeral, so peers have something to dial.

Formatint32
Range0 <= value <= 65535
internalAddresses?array<>

Private addresses on the grabber's own interfaces. The platform rejects anything here that is not actually private, so a misconfigured node cannot publish a routable address as though it were a LAN one.

Itemsitems <= 32
externalAddresses?array<>

Routable addresses, when somebody has forwarded a port deliberately.

Itemsitems <= 32
storage?

The disk, as the grabber computes it.

advertisedEndpoints?array<>

Endpoints the operator says this grabber is reachable at, "host:port". See AnnounceHubRequest.advertised_endpoints — the one thing nothing can discover, present for the forward that changes the port number, empty for almost everyone.

Itemsitems <= 8
peerLinks?array<>

The state of this grabber's WireGuard session to each node peer. The handshake is the probe; this is how its result reaches the platform.

Itemsitems <= 128
resources?

The machine's resources as the grabber sees them — HubResources verbatim, because the machine underneath is the same kind of machine and two vocabularies for one meaning would drift. Absent from a grabber older than the field; the platform records a gap, never a zero.

torrentStats?

What the torrent client is doing, as of this announce.

bootId?string

This process lifetime's identity — the SAME id log shipping stamps on its batches. The boundary the platform splits cumulative counters on; see AnnounceHubRequest.boot_id.

Lengthlength <= 64
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.GrabberAgentService/AnnounceGrabber" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{
  "uuid": "9b2f4c1e-7a3d-4e8f-8c6b-2a1d5e7f3c90",
  "tunnelCidr": "10.100.0.24/29",
  "primaryIp": "10.100.0.24",
  "gateways": [
    "map[endpoint:gw-ams1.xmb.xeonr.io:51820 tunnelIp:10.100.0.1 wgPublicKey:Qx7rT2mV9kP4nB8cZ1wF6yH3jL5sD0aG2eR7uK9iM4o=]"
  ],
  "nodePeers": [
    "map[candidates:[map[endpoint:192.168.1.20:51820 kind:PEER_CANDIDATE_KIND_LAN]] tunnelCidr:10.100.0.16/29 uuid:c41e7d2a-6f3b-4a9e-b2d8-1e5f7a3c9b04 wgPublicKey:Hb3kN8pQ2xR6tV1yZ5cF9mJ4wL7sA0dG3eU8iK2oP6n=]"
  ],
  "settings": "map[GRABBER_MAX_CONCURRENT_DELIVERIES:2 GRABBER_UPLOAD_LIMIT_BYTES_PER_SEC:12500000]",
  "serverSlug": "cabin",
  "telemetry": "map[expiresIn:3600s token:<lantern-ingest-token> url:https://lantern.xeonr.io/v1/ingest]",
  "controlAuth": "map[audiences:[https://xmb.gg urn:xeonr:auth:application:08fc3508-988f-4074-ae5d-b7fd72c38e0b] enforce:true issuer:https://auth.xeonr.io scopes:[xmb:nodes:admin] subjects:[urn:xeonr:auth:uid:service_account:14]]"
}