---
title: "List all selected routes"
method: GET
path: "/api/v1/admin/routes/selected"
tags: ["Admin", "Route"]
---

# List all selected routes

`GET /api/v1/admin/routes/selected`

List all selected routes in the system, and their next hop identifier, metric and sequence number.
It is possible for a route to be selected and have an infinite metric. This route will however not forward packets.

## Response `200`

Success

- Route[]
  - `subnet` string — The overlay subnet for which this is the route
  - `nextHop` string — A way to identify the next hop of the route, where forwarded packets will be sent
  - `metric` union — The metric of the route, an estimation of how long the packet will take to arrive at its final destination
    - integer — A finite metric value
    - string — An infinite (unreachable) metric. This is always `infinite`
  - `seqno` integer — the sequence number advertised with this route by the source

## Changes

- **2024-02-26** `2db7bf2cd73d` — 1 info
  - endpoint added
- **2023-10-26** `1c37c167d50d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/threefoldtech/apis/mycelium-management/changes/api/v1/admin/routes/selected/get.md)

---

[API](https://skmtc.dev/threefoldtech/apis/mycelium-management.md) · [All operations](https://skmtc.dev/threefoldtech/apis/mycelium-management/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/threefoldtech/mycelium-management/revisions/65042c1a7b84/schema)
