# Get rental host

> GET /v1/rentals/{rental_id}/host. .

Source: https://legion.ambient.xyz/docs/api/rentals/get-rental-host

`GET https://api.legion.ambient.xyz/v1/rentals/{rental_id}/host`

Authenticate with an API key: `Authorization: Bearer $LEGION_API_KEY`.

. Which host the rental runs on and how that host is doing: what the marketplace shows every
renter about it (`listOffers`: its name, GPUs, country, hardware, Legion score, reliability, latest
network, disk and GPU benchmarks) and its daily uptime over the last 30 days, without its prices or
free GPUs, plus the live telemetry of the GPUs this rental holds. Readable for any state of the
rental, also once the host is fully rented and `getOffer` answers 404.

`telemetry` is what the host's agent reported in the last 2 minutes for this rental's own GPUs,
and only for the time since the rental was given them: never another GPU of the host, never a
sample from before the rental held the GPU. `reason` says why there is none: `not_running` (the
rental holds no GPU), `not_reported` (the agent sent nothing in the window) or
`telemetry_unavailable` (Legion could not read its metrics store). The figures are the agent's
word. Nothing here names the provider, an address, or another rental. Another organization's
rental is 404. Needs `rentals.manage`.

## Path parameters

- `rental_id`, string (uuid), required

## Responses

### 200

The rental's host.

- `host_id`, string (uuid), required
- `host_name`, string, required: The host's friendly name (`FriendlyName`); empty only for a host from before friendly names.
- `online`, boolean, required: Whether the host's agent synced recently.
- `last_seen_at`, string (date-time): The host's last sync.
- `gpu_model`, string, required
- `gpu_class`, GpuClass: Legion's canonical class of a GPU model: one of `b300`, `b200`, `gh200`, `h200`, `h100-sxm`, `h100-pcie`, `h100-nvl`, `a100-80gb`, `a100-40gb`, `l40s`, `l40`, `l4`, `a10`, `a40`, `a6000`, `rtx-6000-ada`, `rtx-pro-6000`, `rtx-5090`, `rtx-4090`, `rtx-3090`, `v100`, `mi300x`, or `other-<slug of the model>` for a model that matches none of them. Derived from the model name and the GPU memory, so hosts of one class are comparable for pricing.
- `gpu_memory_mib`, integer (int64)
- `gpu_count`, integer, required: Every GPU of the host, not only the rental's.
- `driver_version`, string
- `max_cuda_version`, CudaVersion: A CUDA version, `major.minor`. On a host or an offer it is the newest CUDA its NVIDIA driver runs, derived by Legion from `driver_version` and NVIDIA's published driver table. Absent when the driver is unknown or older than CUDA 11.8.
- `country`, CountryCode: An ISO 3166-1 alpha-2 country code, two capital letters. A declared listing country (`Listing.country` in a write) must be one of the 249 officially assigned codes: `UK` is not one, the United Kingdom is `GB`, and `EU`, `UN` and the other reserved or exceptional codes are refused with 400 `invalid_country`. Filters and reads keep the two-letter shape only.
- `country_verification`, CountryVerification: How the provider's declared country (`Listing.country`) compares with the country of the address the host's agent connects from (looked up in DB-IP's IP to Country Lite database: IP geolocation by DB-IP, https://db-ip.com, CC BY 4.0). `verified`: they are the same. `mismatch`: both are known and differ (a VPN, a cloud egress or a wrong declaration). `unverified`: either is unknown.
- `hardware`, HostHardware: What the agent reports about the host beyond its GPUs. Every field is absent until reported.
  - `cpu_model`, string
  - `disk_type`, DiskType: The kind of the workspace disk as the host's agent reports it. `virtual` is a block device a hypervisor presents (virtio, QEMU, VMware, Hyper-V, Xen or a cloud volume): the media behind it is unknown and often NVMe, so its speed is judged against the widest ceiling, not the HDD or SATA SSD one. An agent that predates `virtual` reports `hdd` or `ssd` for such a disk.
  - `disk_free_gib`, integer (int64): Free space on the filesystem that holds rental workspaces.
  - `pcie_gen_max`, integer: The lowest, across the host's GPUs, of the PCIe generation its link can run.
  - `pcie_width_max`, integer: The lowest PCIe link width across the GPUs.
  - `nvlink_links`, integer: Active NVLink links per GPU, the lowest across the GPUs; 0 is no NVLink.
  - `physical_cores`, integer: Physical CPU cores on the host. Absent until an agent that reports it syncs.
  - `threads_per_core`, integer: Hardware threads per physical core. 1 means every vCPU is a dedicated core.
  - `smt_active`, boolean: Whether simultaneous multithreading is on, from the kernel.
- `score`, LegionScore: The host's Legion score (0-100) and its breakdown. See `getScoreFormula` for the weights and thresholds of `version`.
  - `value`, integer, required
  - `version`, string, required
  - `provisional`, boolean, required: True while Legion has less than the formula's `provisional_days` of the host's history.
  - `computed_at`, string (date-time), required
  - `components`, array of ScoreComponent, required
    - `key`, string, required: `stability`, `freshness`, `performance` or `latency`.
    - `weight`, integer, required: Weight out of 100 across components.
    - `measured`, boolean, required: Whether any of its factors has data. A component without data is left out of the score.
    - `value`, number (double): The component's score. Absent when not measured.
    - `factors`, array of ScoreFactor, required
      - `key`, string, required
      - `weight`, number (double), required: Weight inside the component.
      - `measured`, boolean, required
      - `score`, number (double): Absent when not measured.
      - `verified`, boolean, required: True when Legion computed or observed the value itself; false when the host reported it.
      - `observed`, string: The value the factor was scored on, in words. Absent when not measured.
- `reliability`, HostReliability: What Legion computed about the host's dependability from its own records: never reported by the host. Updated every few minutes.
  - `uptime_30d`, number (double): Share of the minutes the host was online over the last 30 days since tracking began, out of the minutes it was at risk, meaning listed on the market or with an active rental. Minutes offline while unlisted with no active rental are left out. Absent until Legion has seen it sync.
  - `tracked_since`, string (date-time): When Legion started tracking the host's uptime.
  - `rentals_90d`, integer, required: Rentals created on the host in the last 90 days.
  - `failed_90d`, integer, required: Of those, how many failed for a reason on the host's side.
  - `interrupted_90d`, integer, required: Of those, how many lost the host while running.
- `uptime_daily`, array of DayUptime, required: The host's uptime per UTC day over the last 30 days, oldest first.
  - `day`, string (date), required
  - `uptime`, number (double): Share of the day's minutes the host was online. Absent for a day before Legion tracked the host.
- `benchmark`, HostBenchmark: One benchmark run of a host as Legion kept it. The agent runs it only while the host has no rental. Bandwidth is in Mbps; disk is sequential, in MB/s. A number with a flag against it is still shown here, for the provider and the admins, but scores 0 and is left out of search. Bandwidth comes in two figures. `edge_download_mbps` and `edge_upload_mbps` are the host's line speed, measured against the nearest Cloudflare location (`edge_location`) and verified with the Worker's signed receipt; `download_mbps` and `upload_mbps` are to the Legion control plane in us-west-2, with `control_plane_rtt_ms`, the round trip the agent saw to it. The score and search use the edge figure when the run has one, the control-plane figure otherwise. A run from an agent without the edge test has only the control-plane figures. `disk_read_mbps` and `disk_write_mbps` are the median of the runs in `disk_read_range` and `disk_write_range` when those are present. On a host (`Host.benchmark`, `Offer.benchmark`) every figure is the newest run that measured it, not the newest run as a whole: a run that skipped the network test does not blank the network figures an earlier run verified, as long as that run is no more than 72 hours old (the newest run's own figures are always shown). `run_id` and `measured_at` are the newest run's; `network_measured_at` says when the network figures were measured. A flag belongs to the run its figure came from, so a newer flagged measurement still replaces an older clean one. In the list of runs (`listHostBenchmarks`) every item is one run as it was, with only what it measured.
  - `run_id`, string (uuid), required
  - `measured_at`, string (date-time), required
  - `network_measured_at`, string (date-time): When the bandwidth figures (`download_mbps`, `upload_mbps`, `edge_download_mbps`, `edge_upload_mbps`) were measured: the newest run that measured any of them. Absent when none is shown, and in the list of runs (listHostBenchmarks), where each item is one run.
  - `network_skipped_reason`, string: Why this run (`run_id`) has no bandwidth figures, or no control-plane or no edge figures; absent when it measured both. `run_interval`: the host already ran a benchmark in the last 6 hours and no new request was made since, so the control plane and the edge refused the transfers. `daily_bytes`: the host used its control-plane transfer budget for the day. `edge_daily_runs`: it used its 4 edge runs for the day. `edge_run_over`: the run was more than 15 minutes old when it asked for an edge token. `edge_unavailable`: the edge test is not configured. `agent_skipped`: nothing was refused and nothing reached Legion, so the agent did not try. New values may be added.
  - `download_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `upload_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `control_plane_rtt_ms`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `edge_download_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `edge_upload_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `edge_location`, BenchEdgeLocation: Where the edge bandwidth test was served, as Cloudflare places the request.
    - `colo`, string, required: Cloudflare's location code, an IATA airport code such as LHR.
    - `city`, string
    - `country`, string: ISO 3166-1 alpha-2, as Cloudflare reports it.
  - `disk_read_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `disk_write_mbps`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `disk_read_range`, BenchmarkRange: The slowest and fastest of a disk figure's runs; its median is the figure itself.
    - `min`, number (double), required
    - `max`, number (double), required
    - `runs`, integer: How many runs; absent when the agent did not say.
  - `disk_write_range`, BenchmarkRange: The slowest and fastest of a disk figure's runs; its median is the figure itself.
    - `min`, number (double), required
    - `max`, number (double), required
    - `runs`, integer: How many runs; absent when the agent did not say.
  - `disk_cache_suspected`, boolean, required: The disk reads may include the hypervisor's cache: the agent said so, or the disk is `virtual` and reads more than 3 times faster than it writes. Informational: the figures stand and nothing is flagged. Setting the virtual disk's cache mode to none gives true figures.
  - `disk_randread_iops`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `disk_randwrite_iops`, BenchmarkValue
    - `value`, number (double), required
    - `verified`, boolean, required: True when Legion measured it itself (network bandwidth through its own listener, or through its edge Worker with a signed receipt); false when the host reported it.
  - `latency`, array of RegionLatency, required
    - `region`, LatencyRegion, required: The reference regions agents measure round trips to: TCP connects to each region's public EC2 API endpoint, the median of 5.
    - `rtt_ms`, number (double), required
  - `flags`, array of string, required: What looked wrong: `net_claim_mismatch` (the agent claimed a download more than 20% above what Legion measured; an upload claim never flags), `disk_implausible` (faster sequential throughput than the disk type can have), `disk_iops_implausible` (more random I/O operations per second than the disk type can do), `latency_impossible` (round trips that break the triangle inequality between regions), `location_mismatch` (the declared country is on another continent than the region the host is near), `hw_inconsistent` (a compute capability the GPU model does not have), `edge_claim_mismatch` (the agent claimed more than 20% above the edge bandwidth on the Worker's receipt), `edge_receipt_invalid` (an edge receipt that is not the Worker's, or not for this host and run). A bandwidth flag voids only the direction that mismatched (`claim_mismatches`); the edge upload never flags. A run kept before has no `claim_mismatches`, and its bandwidth flag voids both directions of its group.
  - `claim_mismatches`, array of BenchmarkClaimMismatch: The bandwidth figures the agent claimed more than 20% above what Legion measured, so the provider sees both numbers. `flag` is the flag it raised; absent for `edge_upload`, which is only noted: the edge Worker reads an upload as Cloudflare hands it the body, so its figure can fall well short of the line, and the line upload is then the higher of the edge and control-plane figures.
    - `metric`, string, required: `download` and `upload` are to the control plane, `edge_download` and `edge_upload` to `edge_location`.
    - `claimed_mbps`, number (double), required: What the host's agent measured.
    - `measured_mbps`, number (double), required: What Legion's server or edge Worker measured for the same run.
    - `flag`, string
- `gpu_benchmark`, HostGPUBenchmark: One GPU benchmark run of a host as Legion kept it. The Legion agent runs Legion's pinned benchmark image on the provider's machine while the host has no rental: the numbers are measured by the Legion agent (provider-run), never verified by a renter. A run with a flag is still shown here, for the provider and the admins, but is never scored and is left out of search.
  - `run_id`, string (uuid), required
  - `measured_at`, string (date-time), required
  - `tool_version`, string, required
  - `driver_version`, string
  - `cuda_version`, string
  - `tflops`, number (double): Dense FP16/BF16 tensor-core throughput per GPU, in TFLOPS: for each GPU the better of `bf16_tflops` and `fp16_tflops`, then the median across the host's GPUs. Absent when no GPU measured either.
  - `mem_bw_gbps`, number (double): Device memory bandwidth per GPU, in GB/s, the median across the host's GPUs.
  - `spec_tflops`, number (double): NVIDIA's published dense FP16/BF16 tensor peak (FP32 accumulation, no sparsity) for the host's GPU model, from Legion's table. Absent for a model not in it.
  - `gpus`, array of GPUBenchmarkGPU, required
    - `index`, integer, required: The GPU's index as nvidia-smi numbers it.
    - `name`, string: The GPU's name as the driver reports it.
    - `fp16_tflops`, number (double)
    - `bf16_tflops`, number (double)
    - `tf32_tflops`, number (double)
    - `fp32_tflops`, number (double)
    - `mem_bw_gbps`, number (double)
    - `h2d_gbps`, number (double)
    - `d2h_gbps`, number (double)
  - `p2p`, array of GPUPeerBandwidth, required
    - `src`, integer, required
    - `dst`, integer, required
    - `link`, string, required
    - `access`, boolean: Whether the two GPUs have direct peer access (cudaDeviceCanAccessPeer).
    - `gbps`, number (double)
  - `flags`, array of string, required: What looked wrong: `gpu_implausible` (a GPU measured more than 1.15 times its model's published peak, or more than 3 median absolute deviations from what the other hosts with the same model measured).
- `telemetry`, RentalHostTelemetry, required: . The latest figures the host's agent reported, within the last 2 minutes and since the rental was given the GPU, for each GPU the rental holds. The agent's word, not measured by Legion.
  - `available`, boolean, required: Whether any GPU has a figure.
  - `reason`, RentalHostTelemetryReason: Absent when `available`.
  - `at`, string (date-time): When Legion read the figures.
  - `gpus`, array of RentalGpuTelemetry, required: The rental's GPUs by index, each figure absent when the agent did not report it.
    - `index`, integer, required: The GPU's index on the host, as nvidia-smi numbers it.
    - `util_pct`, number (double)
    - `mem_used_bytes`, integer (int64)
    - `mem_total_bytes`, integer (int64)
    - `power_watts`, number (double)
    - `power_limit_watts`, number (double)
    - `temperature_celsius`, number (double)

Example:

```json
{
  "host_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
  "host_name": "string",
  "online": false,
  "last_seen_at": "2026-10-15T12:00:00Z",
  "gpu_model": "string",
  "gpu_class": "h100-sxm",
  "gpu_memory_mib": 0,
  "gpu_count": 0,
  "driver_version": "string",
  "max_cuda_version": "12.8",
  "country": "DE",
  "country_verification": "verified",
  "hardware": {
    "cpu_model": "string",
    "disk_type": "nvme",
    "disk_free_gib": 0,
    "pcie_gen_max": 1,
    "pcie_width_max": 1,
    "nvlink_links": 0,
    "physical_cores": 1,
    "threads_per_core": 1,
    "smt_active": false
  },
  "score": {
    "value": 0,
    "version": "v1",
    "provisional": false,
    "computed_at": "2026-10-15T12:00:00Z",
    "components": [
      {
        "key": "string",
        "weight": 0,
        "measured": false,
        "value": 0,
        "factors": [
          {
            "key": "string",
            "weight": 0,
            "measured": false,
            "score": 0,
            "verified": false,
            "observed": "string"
          }
        ]
      }
    ]
  },
  "reliability": {
    "uptime_30d": 0,
    "tracked_since": "2026-10-15T12:00:00Z",
    "rentals_90d": 0,
    "failed_90d": 0,
    "interrupted_90d": 0
  },
  "uptime_daily": [
    {
      "day": "2026-10-15",
      "uptime": 0
    }
  ],
  "benchmark": {
    "run_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
    "measured_at": "2026-10-15T12:00:00Z",
    "network_measured_at": "2026-10-15T12:00:00Z",
    "network_skipped_reason": "string",
    "download_mbps": {
      "value": 0,
      "verified": false
    },
    "upload_mbps": {
      "value": 0,
      "verified": false
    },
    "control_plane_rtt_ms": {
      "value": 0,
      "verified": false
    },
    "edge_download_mbps": {
      "value": 0,
      "verified": false
    },
    "edge_upload_mbps": {
      "value": 0,
      "verified": false
    },
    "edge_location": {
      "colo": "string",
      "city": "string",
      "country": "string"
    },
    "disk_read_mbps": {
      "value": 0,
      "verified": false
    },
    "disk_write_mbps": {
      "value": 0,
      "verified": false
    },
    "disk_read_range": {
      "min": 0,
      "max": 0,
      "runs": 1
    },
    "disk_write_range": {
      "min": 0,
      "max": 0,
      "runs": 1
    },
    "disk_cache_suspected": false,
    "disk_randread_iops": {
      "value": 0,
      "verified": false
    },
    "disk_randwrite_iops": {
      "value": 0,
      "verified": false
    },
    "latency": [
      {
        "region": "us-west-2",
        "rtt_ms": 0
      }
    ],
    "flags": [
      "string"
    ],
    "claim_mismatches": [
      {
        "metric": "download",
        "claimed_mbps": 0,
        "measured_mbps": 0,
        "flag": "string"
      }
    ]
  },
  "gpu_benchmark": {
    "run_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
    "measured_at": "2026-10-15T12:00:00Z",
    "tool_version": "string",
    "driver_version": "string",
    "cuda_version": "string",
    "tflops": 0,
    "mem_bw_gbps": 0,
    "spec_tflops": 0,
    "gpus": [
      {
        "index": 0,
        "name": "string",
        "fp16_tflops": 0,
        "bf16_tflops": 0,
        "tf32_tflops": 0,
        "fp32_tflops": 0,
        "mem_bw_gbps": 0,
        "h2d_gbps": 0,
        "d2h_gbps": 0
      }
    ],
    "p2p": [
      {
        "src": 0,
        "dst": 0,
        "link": "nvlink",
        "access": false,
        "gbps": 0
      }
    ],
    "flags": [
      "string"
    ]
  },
  "telemetry": {
    "available": false,
    "reason": "not_running",
    "at": "2026-10-15T12:00:00Z",
    "gpus": [
      {
        "index": 0,
        "util_pct": 0,
        "mem_used_bytes": 0,
        "mem_total_bytes": 0,
        "power_watts": 0,
        "power_limit_watts": 0,
        "temperature_celsius": 0
      }
    ]
  }
}
```

### 400

The request is malformed or fails validation. An image reference that
is not a container image reference answers `invalid_image_reference`.

### 401

Missing, unknown, expired or revoked credentials.

### 403

The caller lacks the permission this operation requires (`forbidden`),
or signed in without having joined an organization yet
(`no_organization`; `getOnboarding` and the invitation and
organization operations under it work), or could not sign in
(`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to
session tokens.

`access_not_approved`: a signed-in person who is not approved
for the beta yet. Every operation that takes a credential answers it to
them, except `getMe` and `joinMyWaitlist`; the problem carries
`access` (`waitlisted` or `not_requested`, and the email). Approved
means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.

`oauth_token_mcp_only`: the caller sent an OAuth access token (`lgo_`), which is accepted
only by `mcpMessage` and the tool calls it dispatches. Every other operation answers it, whatever
the token's scope. Use an API key or the Legion web app.

`org_suspended`: the caller's organization is suspended. Every operation that takes a
credential answers it, by session or API key, except `getMe` (which shows `org.suspended_at` and
`org.suspension_reason`) and the support operations under `/v1/support/`.

`terms_not_accepted`: an approved caller who has not accepted
the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, except `getMe`,
`acceptLegalDocuments`, `joinMyWaitlist` and the wind-down operations
(`listRentals`, `stopRental`, `deleteRental`, `listHosts`,
`updateListing` with `listed` false, `removeHost`); the problem
carries `legal`. An API key acts for the person who created it, so it
is refused until that person accepts. Terminal
operations also return
`session_required` (called with an API key) and `step_up_required`
(neither a sign-in nor a step-up challenge within the step-up window).

### 404

The resource does not exist or belongs to another organization.

### 500

An unexpected server error. Safe to retry.

## Errors

- 403 [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization)

## Example request

```sh
curl -s "https://api.legion.ambient.xyz/v1/rentals/$RENTAL_ID/host" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```
