Skip to content

Get one offer with its score breakdown and uptime history

API key

The offer of one host, as listOffers would list it, with its daily uptime over the last 30 days. 404 when the host is not an offer the caller could rent now (not listed, offline, no GPU free, or held back by the organization's network policy). Availability is the on-demand tier's, as listOffers with no tier: GPUs held by interruptible rentals count. spot_price_to_win_per_gpu_hour is for gpu_count GPUs.

Send an API key as Authorization: Bearer lgn_…. Authentication

GETEndpointhttps://api.legion.ambient.xyz/v1/offers/{host_id}
curl
curl -s "https://api.legion.ambient.xyz/v1/offers/$HOST_ID" \
  -H "Authorization: Bearer $LEGION_API_KEY"
Response 200
{
  "offer": {
    "available_until": "2026-10-15T12:00:00Z",
    "host_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
    "own_host": false,
    "own_use_price_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "own_use_interruptible_price_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "own_use_fee_bps": 0,
    "own_use_fee_floor_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "renter_fee_bps": 0,
    "host_name": "quiet-river-7k2f",
    "gpu_model": "string",
    "gpu_class": "h100-sxm",
    "gpu_memory_mib": 0,
    "gpu_count": 0,
    "gpus_free": 0,
    "gpus_interruptible": 0,
    "price_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "interruptible_price_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "spot_price_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "spot_price_to_win_per_gpu_hour": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "spot_win_status": "free_gpus",
    "preemption_notice_seconds": 0,
    "storage_price_per_gib_month": {
      "amount_minor": 250,
      "currency": "USD"
    },
    "per_gpu": {
      "cpu_cores": 0,
      "memory_mib": 0,
      "disk_gib": 0
    },
    "driver_version": "string",
    "platform": "linux/amd64",
    "compute_capability": "9.0",
    "runtime": false,
    "max_cuda_version": "12.8",
    "ports_exposable": false,
    "restricted_network": 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
    },
    "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"
        }
      ]
    },
    "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
    },
    "country": "DE",
    "country_verification": "verified",
    "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"
      ]
    }
  },
  "uptime_daily": [
    {
      "day": "2026-10-15",
      "uptime": 0
    }
  ]
}

Example values.

Path parameters

  • host_idstring (uuid)Required

Query parameters

  • gpu_countinteger

    . The GPU count spot_price_to_win_per_gpu_hour and spot_win_status are for: what a createRental of this many GPUs would need to bid. Default 1.

    1–64

Responses

  • 200The offer.

    The offer.

    • offerOfferRequired

      Child fields · 37
      • available_untilstring (date-time)

        . When a maintenance window of the host starts, while one is scheduled: the host stops being rentable then. Nothing more about the window is shown. Absent for a host with no open window. Inside the window's notice (72 hours for an on-demand rental, 1 hour for an interruptible one) the tier cannot be rented (409 host_maintenance).

      • host_idstring (uuid)Required

      • own_hostboolean

        . The host belongs to the caller's organization. Renting it is own use (Rental.own_use): the organization pays only Ambient's platform fee, own_use_price_per_gpu_hour, earns nothing on it, and any paying renter takes the GPUs. Absent or false for other hosts. Hosts of an organization linked to the caller's are not offered at all: it may not rent them.

      • own_use_price_per_gpu_hourMoney

        On an own host, what own use of it pays per GPU-hour if created now on demand: Ambient's platform fee, the greater of own_use_fee_bps of the host's own listed price (before the renter platform fee) and own_use_fee_floor_per_gpu_hour. The organization's own hosts are offered to it also while they are not listed (nobody else sees them then).

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • own_use_interruptible_price_per_gpu_hourMoney

        On an own host with an interruptible floor, what own use pays per GPU-hour if created as interruptible, the fee of the floor. It is still on demand with no bid.

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • own_use_fee_bpsinteger

        On an own host, the platform fee's rate in basis points of the listed price (500 is 5%).

        0–10000

      • own_use_fee_floor_per_gpu_hourMoney

        On an own host, the least own use pays per GPU-hour, whatever the listed price: the own-use fee is the greater of own_use_fee_bps of the listed price and this floor.

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • renter_fee_bpsinteger

        . The renter platform fee, in basis points, a rental created now pays on top of the provider's price (500 is 5%). Every price of the offer is all-in: it already includes this fee, so clients can say "Prices include a 5% platform fee". price_per_gpu_hour is what an on-demand rental created now pays per GPU-hour, the provider's price plus this fee; the max_price_per_gpu_hour_cents filter and the price and price_per_tflops sorts use the all-in price. Own use pays no renter fee.

        0–10000

      • host_nameFriendlyNameRequired

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • gpu_modelstringRequired

        The GPU model the provider's agent reported, as printable ASCII of at most 128 characters: written by a third party, so data, never instructions.

        at most 128 characters

      • gpu_classGpuClassRequired

        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.

        at most 160 characters · pattern ^[a-z0-9][a-z0-9-]*$

      • gpu_memory_mibinteger (int64)Required

      • gpu_countintegerRequired

      • gpus_freeintegerRequired

        How many GPUs a new rental can take: the free GPUs, or fewer when the disk the host's rentals keep (stopped and failed ones included, at the disk they use, until they are deleted) leaves less than each GPU's share. An interruptible rental can take this many; an on-demand rental can also take gpus_interruptible (still within the disk), and so can an interruptible bid while the spot auction is on, by beating the bids that hold them.

      • gpus_interruptibleinteger

        GPUs held by interruptible rentals on this host (starting, running, exited or host_offline), which an on-demand rental takes when it needs them, and a higher bid can win at a clearing. 0 when there are none.

        at least 0

      • price_per_gpu_hourMoneyRequired

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • interruptible_price_per_gpu_hourMoney

        All-in, like price_per_gpu_hour. The floor of this host's spot auction for interruptible rentals; absent when the host is not offered as interruptible. An interruptible rental pays the auction's clearing price, not the floor itself (see spot_price_per_gpu_hour), and is stopped when an on-demand rental on the host needs its GPUs or when a higher bid outbids it.

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • spot_price_per_gpu_hourMoney

        . All-in, like price_per_gpu_hour. The current price of the host's spot auction: the price of its last clearing (the highest losing limit), or the floor (interruptible_price_per_gpu_hour) when nothing is outbid, and always the floor while the platform's auction is switched off. What the rentals that win pay now, until the next clearing. It is not always enough to win: when bids hold the GPUs a new bid needs, it must outbid them, at spot_price_to_win_per_gpu_hour. Absent when the host is not offered as interruptible.

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • spot_price_to_win_per_gpu_hourMoney

        . All-in, like price_per_gpu_hour. The lowest limit (max_price_per_gpu_hour) an interruptible rental created now needs to win this host's GPUs, for the GPU count asked for (listOffers' min_gpus, getOffer's gpu_count, else 1), and the minimum bid: createRental refuses a limit under it with 409 bid_too_low, whose current_price_per_gpu_hour is this number. It is spot_price_per_gpu_hour when a bid at that wins (spot_win_status free_gpus), else the lowest winning limit rounded up to the next step of the larger of 5 cents and 5% of the host's on-demand price, capped at the on-demand price (outbid), so it tells no incumbent's limit more precisely than bid_too_low does. Computed from the same market a clearing sees (the first-10-minute protection, on-demand rentals, waiting bids, the host's own organization and those linked to it), at most 30 seconds old and never older than the host's last clearing. Absent when no bid can win now (unavailable), when the host is not offered as interruptible, and on the caller's own host (own use is no bid).

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • spot_win_statusSpotWinStatus

        . What a new interruptible bid on the host meets now. free_gpus: a bid at the spot price (spot_price_per_gpu_hour) wins. outbid: the GPUs are held by bids, or wanted by waiting ones, that a new bid must outbid, at spot_price_to_win_per_gpu_hour. unavailable: no bid can win now, the GPUs being held by on-demand rentals or by interruptible rentals in their first 10 minutes. Absent where spot_price_to_win_per_gpu_hour is not computed (not interruptible, own host).

        one of: "free_gpus", "outbid", "unavailable"

      • preemption_notice_secondsinteger

        . How long an interruptible rental on this host keeps running after it is preempted or outbid: 300 when the host's agent gives the notice (preemption_notice_v1), 0 when it stops it at once. Absent when the host is not offered as interruptible.

        at least 0

      • storage_price_per_gib_monthMoney

        What a stopped rental on this host is charged per GiB per 730-hour month while the organization has credit, all-in with the renter platform fee, on the disk it uses as its host's agent reports it, at most its share, and its whole share when the agent does not report it; absent when storage is free. The host's own rate, or the platform's when it has none; a rental created on the host keeps it.

        read-only

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

      • per_gpuResourcesRequired

        Child fields · 3
        • cpu_coresintegerRequired

          at least 0

        • memory_mibinteger (int64)Required

          at least 0

        • disk_gibinteger (int64)Required

          at least 0

      • driver_versionstring

        The NVIDIA driver the provider's agent reported, as printable ASCII of at most 128 characters.

        at most 128 characters

      • platformPlatform

        The OCI platform of the machine a host's containers run on: os/architecture or os/architecture/variant, for example linux/amd64, linux/arm64 or linux/arm/v7. It is what an image's platforms list is matched against. Reported by the agent; absent for hosts whose agent predates it or cannot tell.

        at most 32 characters · pattern ^[a-z0-9_]+/[a-z0-9_]+(/[a-z0-9_]+)?$

      • compute_capabilityComputeCapability

        CUDA compute capability as major.minor, as nvidia-smi --query-gpu=compute_cap reports it (8.0 A100, 8.9 L40S and RTX 4090, 9.0 H100 and H200, 10.0 B200). Compare numerically by major, then minor, never as a string or a float: 10.0 is above 9.0. Reported by the agent; absent when the agent predates it or the driver is too old to answer. On a host or an offer it is the lowest across the host's GPUs.

        at most 5 characters · pattern ^[0-9]{1,2}\.[0-9]{1,2}$

      • runtimeRuntimeAvailableRequired

        Whether a rental on this host is created with the Legion runtime: the host's agent supports it and Legion offers it to that host. When false the rental runs its image's own sshd on port 22, as before. Rentals that already exist never change.

      • max_cuda_versionCudaVersion

        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.

        at most 5 characters · pattern ^[0-9]{1,2}\.[0-9]{1,2}$

      • ports_exposableboolean

        Whether the host's agent can serve ports a rental exposes through the Legion edge. Exposure can still be paused platform-wide.

      • restricted_networkbooleanRequired

        . The provider requires the allow-list on this host: a rental created on it can reach only the allow-list (enforce), whatever the organization chose, and can ask for more sites after it starts (egress requests). Otherwise outbound traffic is open (audit) unless the organization chose enforce. Private networks and outbound email (TCP port 25) are blocked on every host.

      • scoreLegionScore

        The host's Legion score (0-100) and its breakdown. See getScoreFormula for the weights and thresholds of version.

        Child fields · 5
        • valueintegerRequired

          0–100

        • versionstringRequired

          pattern ^v[0-9]{1,3}$

        • provisionalbooleanRequired

          True while Legion has less than the formula's provisional_days of the host's history.

        • computed_atstring (date-time)Required

        • componentsarray of ScoreComponentRequired

          at most 16 items

          Child fields · 5
          • keystringRequired

            stability, freshness, performance or latency.

            pattern ^[a-z0-9_]{1,32}$

          • weightintegerRequired

            Weight out of 100 across components.

            0–100

          • measuredbooleanRequired

            Whether any of its factors has data. A component without data is left out of the score.

          • valuenumber (double)

            The component's score. Absent when not measured.

            0–1

          • factorsarray of ScoreFactorRequired

            at most 16 items

            Child fields · 6
            • keystringRequired

              pattern ^[a-z0-9_]{1,32}$

            • weightnumber (double)Required

              Weight inside the component.

              0–1

            • measuredbooleanRequired

            • scorenumber (double)

              Absent when not measured.

              0–1

            • verifiedbooleanRequired

              True when Legion computed or observed the value itself; false when the host reported it.

            • observedstring

              The value the factor was scored on, in words. Absent when not measured.

              at most 200 characters

      • reliabilityHostReliability

        What Legion computed about the host's dependability from its own records: never reported by the host. Updated every few minutes.

        Child fields · 5
        • uptime_30dnumber (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.

          0–1

        • tracked_sincestring (date-time)

          When Legion started tracking the host's uptime.

        • rentals_90dintegerRequired

          Rentals created on the host in the last 90 days.

          at least 0

        • failed_90dintegerRequired

          Of those, how many failed for a reason on the host's side.

          at least 0

        • interrupted_90dintegerRequired

          Of those, how many lost the host while running.

          at least 0

      • benchmarkHostBenchmark

        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.

        Child fields · 20
        • run_idstring (uuid)Required

        • measured_atstring (date-time)Required

        • network_measured_atstring (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_reasonstring

          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.

          pattern ^[a-z_]{1,32}$

        • download_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_msBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_locationBenchEdgeLocation

          Where the edge bandwidth test was served, as Cloudflare places the request.

          Child fields · 3
          • colostringRequired

            Cloudflare's location code, an IATA airport code such as LHR.

            pattern ^[A-Z0-9]{3,4}$

          • citystring

            at most 128 characters

          • countrystring

            ISO 3166-1 alpha-2, as Cloudflare reports it.

            pattern ^[A-Z0-9]{2}$

        • disk_read_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_mbpsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_rangeBenchmarkRange

          The slowest and fastest of a disk figure's runs; its median is the figure itself.

          Child fields · 3
          • minnumber (double)Required

            at least 0

          • maxnumber (double)Required

            at least 0

          • runsinteger

            How many runs; absent when the agent did not say.

            1–20

        • disk_write_rangeBenchmarkRange

          The slowest and fastest of a disk figure's runs; its median is the figure itself.

          Child fields · 3
          • minnumber (double)Required

            at least 0

          • maxnumber (double)Required

            at least 0

          • runsinteger

            How many runs; absent when the agent did not say.

            1–20

        • disk_cache_suspectedbooleanRequired

          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_iopsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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_iopsBenchmarkValue

          Child fields · 2
          • valuenumber (double)Required

            at least 0

          • verifiedbooleanRequired

            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.

        • latencyarray of RegionLatencyRequired

          at most 8 items

          Child fields · 2
          • regionLatencyRegionRequired

            The reference regions agents measure round trips to: TCP connects to each region's public EC2 API endpoint, the median of 5.

            one of: "us-west-2", "us-east-1", "eu-central-1", "ap-northeast-1", "ap-southeast-1"

          • rtt_msnumber (double)Required

            at least 0

        • flagsarray of stringRequired

          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.

          at most 8 items

        • claim_mismatchesarray 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.

          at most 4 items

          Child fields · 4
          • metricstringRequired

            download and upload are to the control plane, edge_download and edge_upload to edge_location.

            one of: "download", "upload", "edge_download", "edge_upload"

          • claimed_mbpsnumber (double)Required

            What the host's agent measured.

            at least 0

          • measured_mbpsnumber (double)Required

            What Legion's server or edge Worker measured for the same run.

            at least 0

          • flagstring

            pattern ^[a-z_]{1,32}$

      • hardwareHostHardware

        What the agent reports about the host beyond its GPUs. Every field is absent until reported.

        Child fields · 9
        • cpu_modelstring

          at most 128 characters

        • disk_typeDiskType

          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.

          one of: "nvme", "ssd", "hdd", "virtual"

        • disk_free_gibinteger (int64)

          Free space on the filesystem that holds rental workspaces.

          at least 0

        • pcie_gen_maxinteger

          The lowest, across the host's GPUs, of the PCIe generation its link can run.

          1–9

        • pcie_width_maxinteger

          The lowest PCIe link width across the GPUs.

          1–32

        • nvlink_linksinteger

          Active NVLink links per GPU, the lowest across the GPUs; 0 is no NVLink.

          0–64

        • physical_coresinteger

          Physical CPU cores on the host. Absent until an agent that reports it syncs.

          1–4096

        • threads_per_coreinteger

          Hardware threads per physical core. 1 means every vCPU is a dedicated core.

          1–16

        • smt_activeboolean

          Whether simultaneous multithreading is on, from the kernel.

      • countryCountryCode

        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.

        pattern ^[A-Z]{2}$

      • country_verificationCountryVerification

        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.

        one of: "verified", "mismatch", "unverified"

      • gpu_benchmarkHostGPUBenchmark

        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.

        Child fields · 11
        • run_idstring (uuid)Required

        • measured_atstring (date-time)Required

        • tool_versionstringRequired

          at most 16 characters

        • driver_versionstring

          at most 32 characters

        • cuda_versionstring

          at most 8 characters

        • tflopsnumber (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.

          at least 0

        • mem_bw_gbpsnumber (double)

          Device memory bandwidth per GPU, in GB/s, the median across the host's GPUs.

          at least 0

        • spec_tflopsnumber (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.

          at least 0

        • gpusarray of GPUBenchmarkGPURequired

          at most 64 items

          Child fields · 9
          • indexintegerRequired

            The GPU's index as nvidia-smi numbers it.

            0–63

          • namestring

            The GPU's name as the driver reports it.

            at most 128 characters

          • fp16_tflopsnumber (double)

            0–100000

          • bf16_tflopsnumber (double)

            0–100000

          • tf32_tflopsnumber (double)

            0–100000

          • fp32_tflopsnumber (double)

            0–100000

          • mem_bw_gbpsnumber (double)

            0–100000

          • h2d_gbpsnumber (double)

            0–100000

          • d2h_gbpsnumber (double)

            0–100000

        • p2parray of GPUPeerBandwidthRequired

          at most 256 items

          Child fields · 5
          • srcintegerRequired

            0–63

          • dstintegerRequired

            0–63

          • linkstringRequired

            one of: "nvlink", "pcie"

          • accessboolean

            Whether the two GPUs have direct peer access (cudaDeviceCanAccessPeer).

          • gbpsnumber (double)

            0–100000

        • flagsarray of stringRequired

          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).

          at most 8 items

    • uptime_dailyarray of DayUptimeRequired

      The host's uptime for each of the last 30 UTC days, oldest first, today so far last.

      at most 30 items

      Child fields · 2
      • daystring (date)Required

      • uptimenumber (double)

        Share of the day's minutes the host was online. Absent for a day before Legion tracked the host.

        0–1

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

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

    • typestringRequired

      URI reference identifying the problem type: the code's entry in the public error reference, https://legion.ambient.xyz/docs/errors#<code>. Branch on code, never on type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

    • resource_idstring (uuid)

      The resource a conflict refers to, when there is one (egress_request_exists: the request already waiting; export_in_progress: the pending workspace export).

    • accessMeAccess

      Whether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive): approved (a member of an organization, holding a pending invitation, or Legion), waitlisted (on the waitlist, not approved yet) or not_requested (not on the waitlist). Carried by Me (always approved for a member) and by the problem of a 403 access_not_approved, and of getMe's 403 no_organization.

      Child fields · 2
      • statestringRequired

        one of: "approved", "waitlisted", "not_requested"

      • emailstring (email)Required

        The verified email the state was decided on.

    • legalMeLegal

      The caller's consent to Legion's legal documents. required lists every document the consent step shows and acceptLegalDocuments takes, at its current version. accepted is true when the caller accepted the current version of every agree document; while it is false, every operation except getMe, acceptLegalDocuments, joinMyWaitlist and the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403 terms_not_accepted.

      Child fields · 2
      • requiredarray of LegalDocumentRequired

        Child fields · 6
        • keyLegalDocumentKeyRequired

          A legal document: terms (Terms of Use), acceptable_use (Acceptable Use Policy), privacy (Privacy Policy), data_handling (Data Handling).

          one of: "terms", "acceptable_use", "privacy", "data_handling"

        • versionstringRequired

          The current version. A new version of an agree document must be accepted again.

        • effectivestring (date)Required

          The date the current version took effect.

        • titlestringRequired

        • urlstring (uri)Required

          The document's public page.

        • acceptancestringRequired

          agree: the person agrees to it, and the API is refused until the current version is accepted. acknowledge: the person confirms having read it, in the same step.

          one of: "agree", "acknowledge"

      • acceptedbooleanRequired

    • blocking_rentalsarray of HostRemovalBlockingRental

      Sorted by ID.

      at most 1000 items

      Child fields · 6
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • endablebooleanRequired

        Removing the host anyway (removeHost with force true) would end it: it is host_offline on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.

      • heldboolean

        On a preservation hold.

      • rented_by_youboolean

        The caller's own organization rented it, so the caller can open it (getRental). Only from removeHost; absent means false.

    • stored_data_rentalsarray of HostStoredDataRental

      . Sorted by ID.

      at most 1000 items

      Child fields · 8
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • estimated_size_bytesinteger (int64)Required

        The size of its files on the host; with estimate_basis disk_share an upper bound.

      • estimate_basisBackupEstimateBasisRequired

        . What a backup's quote was computed on. disk_used: the size the rental's host last reported its workspace uses (disk_used_gib). disk_share: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (resources.disk_gib): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a stale disk_used_gib) is charged the quote, not more.

        one of: "disk_used", "disk_share"

      • delete_afterstring (date-time)

        When its files are deleted (its delete_after); absent while held.

      • backup_stateBackupState

        Its renter's newest backup, when it has one.

      • rented_by_youboolean

        The caller's own organization rented it. Only on the public listener; absent means false.

    • available_untilstring (date-time)

      . On 409 host_maintenance from createRental (whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.

    • maintenanceMaintenanceSummary

      . On 409 host_maintenance from startRental of the renter's own rental, the window that keeps it stopped.

      Child fields · 4
      • startstring (date-time)Required

        When the window starts: the host's rentals stop then (after a 5-minute notice).

      • endstring (date-time)Required

        The planned end. The provider may end the window earlier.

      • reasonMaintenanceReasonRequired

        . Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.

        one of: "hardware", "software", "network", "power", "facility", "other"

      • stateMaintenanceStateRequired

        . scheduled (announced, renters told), closing (the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice), active (the host is in maintenance, its rentals stopped), overrun (the planned end passed and the host has not synced back), completed, cancelled. The list grows: accept a value you do not know.

        one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"

    • test_switchAdminOrgTestSwitch

      Child fields · 5
      • test_orgbooleanRequired

      • allowedbooleanRequired

      • blocking_rentalsarray of AdminOrgTestBlockingRentalRequired

        at most 100 items

        Child fields · 7
        • idstring (uuid)Required

        • nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

        • stateRentalStateRequired

          starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

          one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

        • renter_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • provider_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • host_idstring (uuid)Required

        • host_nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • blocking_rental_countintegerRequired

        at least 0

      • unpaid_earningsMoneyRequired

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

    • current_price_per_gpu_hourMoney

      The host's price per GPU-hour now, on 409 price_changed from createRental, the price a bid would win now on 409 bid_too_low, or the floor on 409 bid_below_floor; all-in, as the renter sees prices.

      Child fields · 2
      • amount_minorinteger (int64)Required

        Amount in minor units (cents for USD).

        at least 0

      • currencyMoneyCurrencyRequired

        ISO 4217 currency code. Only USD is supported.

        one of: "USD"

    • next_available_atstring (date-time)

      When the action is allowed again, on 429 benchmark_request_limited from requestHostBenchmark.

    • reasonPromoIneligibleReason

      Why the organization may not redeem the promo code, on 403 promo_code_not_eligible.

    • registryRegistrySignInRegistry

      . The registry a sign-in would be for, on 422 image_private of an image on a registry Legion takes sign-ins for (offer to add one with putRegistrySignIn), and on 422 registry_sign_in_rejected (the sign-in the registry refused). Only ever one of these four; registry_host names any host.

    • registry_hoststring

      . The registry host a credential is or would be for: on 422 image_private (offer to add one with createRegistryCredential), registry_sign_in_rejected, registry_credential_rejected, and the refusals of a registry (registry_ecr_unsupported, registry_auth_unsupported, registry_host_not_allowed, registry_realm_not_allowed).

      at most 253 characters

    • registry_credential_idstring (uuid)

      . The credential the registry refused, on 422 registry_sign_in_rejected.

    • registry_credential_rentalsarray of RegistryCredentialRental

      . The rentals that still use a registry credential, on 409 registry_credential_in_use from deleteRegistryCredential and deleteRegistrySignIn. Oldest first.

      at most 100 items

      Child fields · 3
      • idstring (uuid)Required

      • namestringRequired

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

    • invited_emailstring

      . The address an invitation is for, masked (g•••y@example.com), on 403 invitation_for_another_account from getMyInvitation.

      at most 320 characters

  • 401Missing, unknown, expired or revoked credentials.

    Missing, unknown, expired or revoked credentials.

    • typestringRequired

      URI reference identifying the problem type: the code's entry in the public error reference, https://legion.ambient.xyz/docs/errors#<code>. Branch on code, never on type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

    • resource_idstring (uuid)

      The resource a conflict refers to, when there is one (egress_request_exists: the request already waiting; export_in_progress: the pending workspace export).

    • accessMeAccess

      Whether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive): approved (a member of an organization, holding a pending invitation, or Legion), waitlisted (on the waitlist, not approved yet) or not_requested (not on the waitlist). Carried by Me (always approved for a member) and by the problem of a 403 access_not_approved, and of getMe's 403 no_organization.

      Child fields · 2
      • statestringRequired

        one of: "approved", "waitlisted", "not_requested"

      • emailstring (email)Required

        The verified email the state was decided on.

    • legalMeLegal

      The caller's consent to Legion's legal documents. required lists every document the consent step shows and acceptLegalDocuments takes, at its current version. accepted is true when the caller accepted the current version of every agree document; while it is false, every operation except getMe, acceptLegalDocuments, joinMyWaitlist and the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403 terms_not_accepted.

      Child fields · 2
      • requiredarray of LegalDocumentRequired

        Child fields · 6
        • keyLegalDocumentKeyRequired

          A legal document: terms (Terms of Use), acceptable_use (Acceptable Use Policy), privacy (Privacy Policy), data_handling (Data Handling).

          one of: "terms", "acceptable_use", "privacy", "data_handling"

        • versionstringRequired

          The current version. A new version of an agree document must be accepted again.

        • effectivestring (date)Required

          The date the current version took effect.

        • titlestringRequired

        • urlstring (uri)Required

          The document's public page.

        • acceptancestringRequired

          agree: the person agrees to it, and the API is refused until the current version is accepted. acknowledge: the person confirms having read it, in the same step.

          one of: "agree", "acknowledge"

      • acceptedbooleanRequired

    • blocking_rentalsarray of HostRemovalBlockingRental

      Sorted by ID.

      at most 1000 items

      Child fields · 6
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • endablebooleanRequired

        Removing the host anyway (removeHost with force true) would end it: it is host_offline on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.

      • heldboolean

        On a preservation hold.

      • rented_by_youboolean

        The caller's own organization rented it, so the caller can open it (getRental). Only from removeHost; absent means false.

    • stored_data_rentalsarray of HostStoredDataRental

      . Sorted by ID.

      at most 1000 items

      Child fields · 8
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • estimated_size_bytesinteger (int64)Required

        The size of its files on the host; with estimate_basis disk_share an upper bound.

      • estimate_basisBackupEstimateBasisRequired

        . What a backup's quote was computed on. disk_used: the size the rental's host last reported its workspace uses (disk_used_gib). disk_share: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (resources.disk_gib): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a stale disk_used_gib) is charged the quote, not more.

        one of: "disk_used", "disk_share"

      • delete_afterstring (date-time)

        When its files are deleted (its delete_after); absent while held.

      • backup_stateBackupState

        Its renter's newest backup, when it has one.

      • rented_by_youboolean

        The caller's own organization rented it. Only on the public listener; absent means false.

    • available_untilstring (date-time)

      . On 409 host_maintenance from createRental (whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.

    • maintenanceMaintenanceSummary

      . On 409 host_maintenance from startRental of the renter's own rental, the window that keeps it stopped.

      Child fields · 4
      • startstring (date-time)Required

        When the window starts: the host's rentals stop then (after a 5-minute notice).

      • endstring (date-time)Required

        The planned end. The provider may end the window earlier.

      • reasonMaintenanceReasonRequired

        . Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.

        one of: "hardware", "software", "network", "power", "facility", "other"

      • stateMaintenanceStateRequired

        . scheduled (announced, renters told), closing (the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice), active (the host is in maintenance, its rentals stopped), overrun (the planned end passed and the host has not synced back), completed, cancelled. The list grows: accept a value you do not know.

        one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"

    • test_switchAdminOrgTestSwitch

      Child fields · 5
      • test_orgbooleanRequired

      • allowedbooleanRequired

      • blocking_rentalsarray of AdminOrgTestBlockingRentalRequired

        at most 100 items

        Child fields · 7
        • idstring (uuid)Required

        • nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

        • stateRentalStateRequired

          starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

          one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

        • renter_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • provider_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • host_idstring (uuid)Required

        • host_nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • blocking_rental_countintegerRequired

        at least 0

      • unpaid_earningsMoneyRequired

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

    • current_price_per_gpu_hourMoney

      The host's price per GPU-hour now, on 409 price_changed from createRental, the price a bid would win now on 409 bid_too_low, or the floor on 409 bid_below_floor; all-in, as the renter sees prices.

      Child fields · 2
      • amount_minorinteger (int64)Required

        Amount in minor units (cents for USD).

        at least 0

      • currencyMoneyCurrencyRequired

        ISO 4217 currency code. Only USD is supported.

        one of: "USD"

    • next_available_atstring (date-time)

      When the action is allowed again, on 429 benchmark_request_limited from requestHostBenchmark.

    • reasonPromoIneligibleReason

      Why the organization may not redeem the promo code, on 403 promo_code_not_eligible.

    • registryRegistrySignInRegistry

      . The registry a sign-in would be for, on 422 image_private of an image on a registry Legion takes sign-ins for (offer to add one with putRegistrySignIn), and on 422 registry_sign_in_rejected (the sign-in the registry refused). Only ever one of these four; registry_host names any host.

    • registry_hoststring

      . The registry host a credential is or would be for: on 422 image_private (offer to add one with createRegistryCredential), registry_sign_in_rejected, registry_credential_rejected, and the refusals of a registry (registry_ecr_unsupported, registry_auth_unsupported, registry_host_not_allowed, registry_realm_not_allowed).

      at most 253 characters

    • registry_credential_idstring (uuid)

      . The credential the registry refused, on 422 registry_sign_in_rejected.

    • registry_credential_rentalsarray of RegistryCredentialRental

      . The rentals that still use a registry credential, on 409 registry_credential_in_use from deleteRegistryCredential and deleteRegistrySignIn. Oldest first.

      at most 100 items

      Child fields · 3
      • idstring (uuid)Required

      • namestringRequired

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

    • invited_emailstring

      . The address an invitation is for, masked (g•••y@example.com), on 403 invitation_for_another_account from getMyInvitation.

      at most 320 characters

  • 403The 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.

    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).

    • typestringRequired

      URI reference identifying the problem type: the code's entry in the public error reference, https://legion.ambient.xyz/docs/errors#<code>. Branch on code, never on type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

    • resource_idstring (uuid)

      The resource a conflict refers to, when there is one (egress_request_exists: the request already waiting; export_in_progress: the pending workspace export).

    • accessMeAccess

      Whether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive): approved (a member of an organization, holding a pending invitation, or Legion), waitlisted (on the waitlist, not approved yet) or not_requested (not on the waitlist). Carried by Me (always approved for a member) and by the problem of a 403 access_not_approved, and of getMe's 403 no_organization.

      Child fields · 2
      • statestringRequired

        one of: "approved", "waitlisted", "not_requested"

      • emailstring (email)Required

        The verified email the state was decided on.

    • legalMeLegal

      The caller's consent to Legion's legal documents. required lists every document the consent step shows and acceptLegalDocuments takes, at its current version. accepted is true when the caller accepted the current version of every agree document; while it is false, every operation except getMe, acceptLegalDocuments, joinMyWaitlist and the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403 terms_not_accepted.

      Child fields · 2
      • requiredarray of LegalDocumentRequired

        Child fields · 6
        • keyLegalDocumentKeyRequired

          A legal document: terms (Terms of Use), acceptable_use (Acceptable Use Policy), privacy (Privacy Policy), data_handling (Data Handling).

          one of: "terms", "acceptable_use", "privacy", "data_handling"

        • versionstringRequired

          The current version. A new version of an agree document must be accepted again.

        • effectivestring (date)Required

          The date the current version took effect.

        • titlestringRequired

        • urlstring (uri)Required

          The document's public page.

        • acceptancestringRequired

          agree: the person agrees to it, and the API is refused until the current version is accepted. acknowledge: the person confirms having read it, in the same step.

          one of: "agree", "acknowledge"

      • acceptedbooleanRequired

    • blocking_rentalsarray of HostRemovalBlockingRental

      Sorted by ID.

      at most 1000 items

      Child fields · 6
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • endablebooleanRequired

        Removing the host anyway (removeHost with force true) would end it: it is host_offline on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.

      • heldboolean

        On a preservation hold.

      • rented_by_youboolean

        The caller's own organization rented it, so the caller can open it (getRental). Only from removeHost; absent means false.

    • stored_data_rentalsarray of HostStoredDataRental

      . Sorted by ID.

      at most 1000 items

      Child fields · 8
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • estimated_size_bytesinteger (int64)Required

        The size of its files on the host; with estimate_basis disk_share an upper bound.

      • estimate_basisBackupEstimateBasisRequired

        . What a backup's quote was computed on. disk_used: the size the rental's host last reported its workspace uses (disk_used_gib). disk_share: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (resources.disk_gib): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a stale disk_used_gib) is charged the quote, not more.

        one of: "disk_used", "disk_share"

      • delete_afterstring (date-time)

        When its files are deleted (its delete_after); absent while held.

      • backup_stateBackupState

        Its renter's newest backup, when it has one.

      • rented_by_youboolean

        The caller's own organization rented it. Only on the public listener; absent means false.

    • available_untilstring (date-time)

      . On 409 host_maintenance from createRental (whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.

    • maintenanceMaintenanceSummary

      . On 409 host_maintenance from startRental of the renter's own rental, the window that keeps it stopped.

      Child fields · 4
      • startstring (date-time)Required

        When the window starts: the host's rentals stop then (after a 5-minute notice).

      • endstring (date-time)Required

        The planned end. The provider may end the window earlier.

      • reasonMaintenanceReasonRequired

        . Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.

        one of: "hardware", "software", "network", "power", "facility", "other"

      • stateMaintenanceStateRequired

        . scheduled (announced, renters told), closing (the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice), active (the host is in maintenance, its rentals stopped), overrun (the planned end passed and the host has not synced back), completed, cancelled. The list grows: accept a value you do not know.

        one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"

    • test_switchAdminOrgTestSwitch

      Child fields · 5
      • test_orgbooleanRequired

      • allowedbooleanRequired

      • blocking_rentalsarray of AdminOrgTestBlockingRentalRequired

        at most 100 items

        Child fields · 7
        • idstring (uuid)Required

        • nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

        • stateRentalStateRequired

          starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

          one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

        • renter_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • provider_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • host_idstring (uuid)Required

        • host_nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • blocking_rental_countintegerRequired

        at least 0

      • unpaid_earningsMoneyRequired

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

    • current_price_per_gpu_hourMoney

      The host's price per GPU-hour now, on 409 price_changed from createRental, the price a bid would win now on 409 bid_too_low, or the floor on 409 bid_below_floor; all-in, as the renter sees prices.

      Child fields · 2
      • amount_minorinteger (int64)Required

        Amount in minor units (cents for USD).

        at least 0

      • currencyMoneyCurrencyRequired

        ISO 4217 currency code. Only USD is supported.

        one of: "USD"

    • next_available_atstring (date-time)

      When the action is allowed again, on 429 benchmark_request_limited from requestHostBenchmark.

    • reasonPromoIneligibleReason

      Why the organization may not redeem the promo code, on 403 promo_code_not_eligible.

    • registryRegistrySignInRegistry

      . The registry a sign-in would be for, on 422 image_private of an image on a registry Legion takes sign-ins for (offer to add one with putRegistrySignIn), and on 422 registry_sign_in_rejected (the sign-in the registry refused). Only ever one of these four; registry_host names any host.

    • registry_hoststring

      . The registry host a credential is or would be for: on 422 image_private (offer to add one with createRegistryCredential), registry_sign_in_rejected, registry_credential_rejected, and the refusals of a registry (registry_ecr_unsupported, registry_auth_unsupported, registry_host_not_allowed, registry_realm_not_allowed).

      at most 253 characters

    • registry_credential_idstring (uuid)

      . The credential the registry refused, on 422 registry_sign_in_rejected.

    • registry_credential_rentalsarray of RegistryCredentialRental

      . The rentals that still use a registry credential, on 409 registry_credential_in_use from deleteRegistryCredential and deleteRegistrySignIn. Oldest first.

      at most 100 items

      Child fields · 3
      • idstring (uuid)Required

      • namestringRequired

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

    • invited_emailstring

      . The address an invitation is for, masked (g•••y@example.com), on 403 invitation_for_another_account from getMyInvitation.

      at most 320 characters

  • 404The resource does not exist or belongs to another organization.

    The resource does not exist or belongs to another organization.

    • typestringRequired

      URI reference identifying the problem type: the code's entry in the public error reference, https://legion.ambient.xyz/docs/errors#<code>. Branch on code, never on type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

    • resource_idstring (uuid)

      The resource a conflict refers to, when there is one (egress_request_exists: the request already waiting; export_in_progress: the pending workspace export).

    • accessMeAccess

      Whether a signed-in person may use Legion during the closed beta, decided on their verified email (case-insensitive): approved (a member of an organization, holding a pending invitation, or Legion), waitlisted (on the waitlist, not approved yet) or not_requested (not on the waitlist). Carried by Me (always approved for a member) and by the problem of a 403 access_not_approved, and of getMe's 403 no_organization.

      Child fields · 2
      • statestringRequired

        one of: "approved", "waitlisted", "not_requested"

      • emailstring (email)Required

        The verified email the state was decided on.

    • legalMeLegal

      The caller's consent to Legion's legal documents. required lists every document the consent step shows and acceptLegalDocuments takes, at its current version. accepted is true when the caller accepted the current version of every agree document; while it is false, every operation except getMe, acceptLegalDocuments, joinMyWaitlist and the wind-down operations (listing, stopping and deleting rentals; listing hosts, stopping new rentals on them and removing them) answers 403 terms_not_accepted.

      Child fields · 2
      • requiredarray of LegalDocumentRequired

        Child fields · 6
        • keyLegalDocumentKeyRequired

          A legal document: terms (Terms of Use), acceptable_use (Acceptable Use Policy), privacy (Privacy Policy), data_handling (Data Handling).

          one of: "terms", "acceptable_use", "privacy", "data_handling"

        • versionstringRequired

          The current version. A new version of an agree document must be accepted again.

        • effectivestring (date)Required

          The date the current version took effect.

        • titlestringRequired

        • urlstring (uri)Required

          The document's public page.

        • acceptancestringRequired

          agree: the person agrees to it, and the API is refused until the current version is accepted. acknowledge: the person confirms having read it, in the same step.

          one of: "agree", "acknowledge"

      • acceptedbooleanRequired

    • blocking_rentalsarray of HostRemovalBlockingRental

      Sorted by ID.

      at most 1000 items

      Child fields · 6
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • endablebooleanRequired

        Removing the host anyway (removeHost with force true) would end it: it is host_offline on a host that is offline, and not on a preservation hold. A rental that runs, or that the host still has to act on, is never endable.

      • heldboolean

        On a preservation hold.

      • rented_by_youboolean

        The caller's own organization rented it, so the caller can open it (getRental). Only from removeHost; absent means false.

    • stored_data_rentalsarray of HostStoredDataRental

      . Sorted by ID.

      at most 1000 items

      Child fields · 8
      • idstring (uuid)Required

      • nameFriendlyName

        A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

        2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

      • estimated_size_bytesinteger (int64)Required

        The size of its files on the host; with estimate_basis disk_share an upper bound.

      • estimate_basisBackupEstimateBasisRequired

        . What a backup's quote was computed on. disk_used: the size the rental's host last reported its workspace uses (disk_used_gib). disk_share: the host does not report it (a host whose disk quota is not enforced, for example not on XFS), so the quote is the rental's whole disk share (resources.disk_gib): an upper bound, "up to" this price, trued down to the real size when the backup is ready. Either way the charge never exceeds the quote: a backup larger than its estimate (a stale disk_used_gib) is charged the quote, not more.

        one of: "disk_used", "disk_share"

      • delete_afterstring (date-time)

        When its files are deleted (its delete_after); absent while held.

      • backup_stateBackupState

        Its renter's newest backup, when it has one.

      • rented_by_youboolean

        The caller's own organization rented it. Only on the public listener; absent means false.

    • available_untilstring (date-time)

      . On 409 host_maintenance from createRental (whatever the window's state), when the host's window starts. Nothing more about the window: its end and reason are only for the renters of rentals on the host.

    • maintenanceMaintenanceSummary

      . On 409 host_maintenance from startRental of the renter's own rental, the window that keeps it stopped.

      Child fields · 4
      • startstring (date-time)Required

        When the window starts: the host's rentals stop then (after a 5-minute notice).

      • endstring (date-time)Required

        The planned end. The provider may end the window earlier.

      • reasonMaintenanceReasonRequired

        . Why a provider takes a host down, shown to the renters of rentals on it. The list grows: accept a value you do not know.

        one of: "hardware", "software", "network", "power", "facility", "other"

      • stateMaintenanceStateRequired

        . scheduled (announced, renters told), closing (the last 5 minutes before the start: the penalty-free outcome is decided, nothing can start, rentals in their notice), active (the host is in maintenance, its rentals stopped), overrun (the planned end passed and the host has not synced back), completed, cancelled. The list grows: accept a value you do not know.

        one of: "scheduled", "closing", "active", "overrun", "completed", "cancelled"

    • test_switchAdminOrgTestSwitch

      Child fields · 5
      • test_orgbooleanRequired

      • allowedbooleanRequired

      • blocking_rentalsarray of AdminOrgTestBlockingRentalRequired

        at most 100 items

        Child fields · 7
        • idstring (uuid)Required

        • nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

        • stateRentalStateRequired

          starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

          one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

        • renter_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • provider_orgOrgRequired

          Child fields · 2
          • idstring (uuid)Required

          • namestringRequired

        • host_idstring (uuid)Required

        • host_nameFriendlyName

          A host's or rental's friendly name: a lowercase DNS label that starts with a letter and does not end with a hyphen. Unique across all hosts and rentals and never reused. A host's is generated as adjective-noun (amber-falcon) and can be changed by its owner; a rental's is generated as adjective-noun plus four base36 characters (quiet-river-7k2f) and never changes.

          2–63 characters · pattern ^[a-z][a-z0-9-]{0,61}[a-z0-9]$

      • blocking_rental_countintegerRequired

        at least 0

      • unpaid_earningsMoneyRequired

        Child fields · 2
        • amount_minorinteger (int64)Required

          Amount in minor units (cents for USD).

          at least 0

        • currencyMoneyCurrencyRequired

          ISO 4217 currency code. Only USD is supported.

          one of: "USD"

    • current_price_per_gpu_hourMoney

      The host's price per GPU-hour now, on 409 price_changed from createRental, the price a bid would win now on 409 bid_too_low, or the floor on 409 bid_below_floor; all-in, as the renter sees prices.

      Child fields · 2
      • amount_minorinteger (int64)Required

        Amount in minor units (cents for USD).

        at least 0

      • currencyMoneyCurrencyRequired

        ISO 4217 currency code. Only USD is supported.

        one of: "USD"

    • next_available_atstring (date-time)

      When the action is allowed again, on 429 benchmark_request_limited from requestHostBenchmark.

    • reasonPromoIneligibleReason

      Why the organization may not redeem the promo code, on 403 promo_code_not_eligible.

    • registryRegistrySignInRegistry

      . The registry a sign-in would be for, on 422 image_private of an image on a registry Legion takes sign-ins for (offer to add one with putRegistrySignIn), and on 422 registry_sign_in_rejected (the sign-in the registry refused). Only ever one of these four; registry_host names any host.

    • registry_hoststring

      . The registry host a credential is or would be for: on 422 image_private (offer to add one with createRegistryCredential), registry_sign_in_rejected, registry_credential_rejected, and the refusals of a registry (registry_ecr_unsupported, registry_auth_unsupported, registry_host_not_allowed, registry_realm_not_allowed).

      at most 253 characters

    • registry_credential_idstring (uuid)

      . The credential the registry refused, on 422 registry_sign_in_rejected.

    • registry_credential_rentalsarray of RegistryCredentialRental

      . The rentals that still use a registry credential, on 409 registry_credential_in_use from deleteRegistryCredential and deleteRegistrySignIn. Oldest first.

      at most 100 items

      Child fields · 3
      • idstring (uuid)Required

      • namestringRequired

      • stateRentalStateRequired

        starting: GPUs allocated, waiting for the agent to start the container. Not billed. While the rental's image_phase is fetching the agent does not know it yet. running: the container runs. Billed per second. exited: the host reports the container is not running, for example after a crash; the host is restarting it. GPUs stay reserved. Not billed; returns to running when the host reports it running again. stopping: stop requested, waiting for the agent. Not billed. Becomes stopped without the agent once the host has been offline for 90 seconds. stopped: GPUs released, workspace kept on the host. GPU time is not billed. Storage is billed per GiB while the organization has credit, except for an interruption_behavior: delete rental, which never stops with data. host_offline: the host stopped syncing. Not billed; returns to running when the host syncs again, and becomes failed once the host has not synced for HOST_STALE_AFTER (24 hours;). deleting: delete requested, waiting for the agent. Not billed. Becomes deleted without the agent once the host has been offline for 90 seconds. deleted: container and workspace removed. Final. failed: the agent could not start or keep running the container. GPUs released. The rental can only be deleted.

        one of: "starting", "running", "exited", "stopping", "stopped", "host_offline", "deleting", "deleted", "failed"

    • invited_emailstring

      . The address an invitation is for, masked (g•••y@example.com), on 403 invitation_for_another_account from getMyInvitation.

      at most 320 characters

  • 500An unexpected server error. Safe to retry.

    An unexpected server error. Safe to retry.

    • typestringRequired

      URI reference identifying the problem type.

    • titlestringRequired

    • statusintegerRequired

    • codestringRequired

      Stable machine-readable error code.

    • detailstring

    • instancestring

      The request path that produced the problem.

Errors

StatusCode
403no_organization

Every operation can also answer the general codes on the errors page.