---
title: "Linhagem, arvore e volume de rede"
method: GET
path: "/mesh/agents/{agent_id}/network"
tags: ["Mesh · Network"]
---

# Linhagem, arvore e volume de rede

`GET /mesh/agents/{agent_id}/network`

## Request

- Base URL: `https://api.luniumpay.com`
- URL: `https://api.luniumpay.com/mesh/agents/{agent_id}/network`
- Auth: none required

Consulta recursiva no banco. `network_volume` conta a arvore inteira; `reward_eligible_volume` conta so o que remunera (nivel 1).

## Path parameters

- `agent_id` string, required

## Response `200`

A rede.

- AgentNetwork: A arvore abaixo de um agente. `network_volume` conta a arvore inteira (serve para reputacao); `reward_eligible_volume` conta so o que remunera.
  - `agent_id` string
  - `referred_by` string, nullable
  - `depth` integer
  - `direct_children` integer
  - `total_descendants` integer
  - `own_volume_cents` integer
  - `own_transactions` integer
  - `network_volume_cents` integer
  - `network_transactions` integer
  - `reward_eligible_volume_cents` integer
  - `lifetime_rewards_cents` integer
  - `first_operation` string, date-time, nullable
  - `production_since` string, date-time, nullable
  - `children` object[]

## Other responses

- `404`: Nao existe.

---

[API](https://skmtc.dev/luniumpay/apis/lunium-crypto-pix-settlement-brazil.md) · [All operations](https://skmtc.dev/luniumpay/apis/lunium-crypto-pix-settlement-brazil/llms.txt) · [OpenAPI document](https://skmtc.dev/luniumpay/apis/lunium-crypto-pix-settlement-brazil/revisions/0b5a340fa9dd?raw)
