# List the caller's offer alerts

> GET /v1/offer-alerts. Lists the caller's own offer alerts, newest first: active, triggered and expired ones.

Source: https://legion.ambient.xyz/docs/api/offers/list-offer-alerts

`GET https://api.legion.ambient.xyz/v1/offer-alerts`

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

Lists the caller's own offer alerts, newest first: active, triggered and expired
ones. Triggered and expired alerts are deleted 30 days after they stop. Alerts belong to the
person who created them: nobody else in the organization sees them. Needs `rentals.manage`.

## Query parameters

- `cursor`, string: Opaque cursor from a previous page's `next_cursor`.
- `limit`, integer

## Responses

### 200

A page of alerts.

- `items`, array of OfferAlert, required
  - `id`, string (uuid), required
  - `organization_id`, string (uuid), required
  - `user_id`, string (uuid), required: The person who created the alert and is emailed.
  - `name`, string
  - `filters`, OfferAlertFilters, required: The `listOffers` filters, with the same meaning and validation. `sort`, `cursor`, `limit` and `catalog_id` are not filters of an alert. The alert matches when one machine passes all of them.
    - `tier`, RentalTier: The kind of rental. `on_demand`: the host's `price_per_gpu_hour`; never stopped for another rental. `interruptible`: a bid on the host's spot auction, above the host's floor `interruptible_price_per_gpu_hour`, on GPUs no on-demand rental needs: an on-demand rental on the same host that needs its GPUs stops it, with the stop of the container (after a 5-minute notice, `preempt_at`, on hosts whose agent supports it; the notice is also written to `/workspace/.legion/preemption.json`), and it ends `stopped` with `stop_reason` `preempted` and its workspace kept (billed as storage, and started again by itself with `auto_resume`), or deleted when it chose `interruption_behavior` `delete`. The on-demand price is fixed for the rental. An interruptible rental is a bid on the host's spot auction: it pays the clearing price, which moves every 2 minutes between the host's floor and the rental's `max_price_per_gpu_hour`, and a higher bid can also stop it (`stop_reason` `outbid`) with the same notice.
    - `gpu_model`, string
    - `min_gpus`, integer
    - `max_price_per_gpu_hour_cents`, integer (int64): All-in, as `listOffers` filters it, the price including the renter platform fee.
    - `gpu_class`, GpuClass: Legion's canonical class of a GPU model: one of `b300`, `b200`, `gh200`, `h200`, `h100-sxm`, `h100-pcie`, `h100-nvl`, `a100-80gb`, `a100-40gb`, `l40s`, `l40`, `l4`, `a10`, `a40`, `a6000`, `rtx-6000-ada`, `rtx-pro-6000`, `rtx-5090`, `rtx-4090`, `rtx-3090`, `v100`, `mi300x`, or `other-<slug of the model>` for a model that matches none of them. Derived from the model name and the GPU memory, so hosts of one class are comparable for pricing.
    - `gpu_models`, array of string
    - `min_gpu_memory_mib`, integer (int64)
    - `min_compute_capability`, ComputeCapability: 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.
    - `min_cuda_version`, CudaVersion: A CUDA version, `major.minor`. On a host or an offer it is the newest CUDA its NVIDIA driver runs, derived by Legion from `driver_version` and NVIDIA's published driver table. Absent when the driver is unknown or older than CUDA 11.8.
    - `min_driver_version`, string
    - `min_cpu_cores_per_gpu`, integer
    - `min_memory_mib_per_gpu`, integer (int64)
    - `min_disk_gib_per_gpu`, integer (int64)
    - `platform`, Platform: 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.
    - `min_score`, integer
    - `min_uptime_pct`, integer
    - `ports_exposable`, boolean
    - `restricted_network`, boolean
    - `min_download_mbps`, integer
    - `min_upload_mbps`, integer
    - `min_disk_read_mbps`, integer
    - `disk_types`, array of DiskType
      
    - `countries`, array of CountryCode
      
    - `latency_region`, LatencyRegion: The reference regions agents measure round trips to: TCP connects to each region's public EC2 API endpoint, the median of 5.
    - `max_latency_ms`, integer
    - `min_pcie_gen`, integer
    - `nvlink`, boolean
    - `min_tflops`, number (double)
  - `status`, OfferAlertStatus, required: `active`: being checked. `triggered`: a match was found and the email was sent; the alert stops checking. `expired`: reached `expires_at` without a match.
  - `created_at`, string (date-time), required
  - `expires_at`, string (date-time), required
  - `triggered_at`, string (date-time): When a match was found and the email was queued. Absent unless `status` is `triggered`.
  - `matched_price_per_gpu_hour`, Money: The cheapest matching price per GPU-hour when the alert triggered, in the alert's tier (the spot price for `interruptible`). Absent unless `status` is `triggered`.
- `next_cursor`, string

Example:

```json
{
  "items": [
    {
      "id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
      "organization_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
      "user_id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b",
      "name": "string",
      "filters": {
        "tier": "on_demand",
        "gpu_model": "string",
        "min_gpus": 1,
        "max_price_per_gpu_hour_cents": 0,
        "gpu_class": "h100-sxm",
        "gpu_models": [
          "string"
        ],
        "min_gpu_memory_mib": 0,
        "min_compute_capability": "9.0",
        "min_cuda_version": "12.8",
        "min_driver_version": "string",
        "min_cpu_cores_per_gpu": 0,
        "min_memory_mib_per_gpu": 0,
        "min_disk_gib_per_gpu": 0,
        "platform": "linux/amd64",
        "min_score": 0,
        "min_uptime_pct": 0,
        "ports_exposable": false,
        "restricted_network": false,
        "min_download_mbps": 0,
        "min_upload_mbps": 0,
        "min_disk_read_mbps": 0,
        "disk_types": [
          "nvme"
        ],
        "countries": [
          "DE"
        ],
        "latency_region": "us-west-2",
        "max_latency_ms": 1,
        "min_pcie_gen": 1,
        "nvlink": false,
        "min_tflops": 0
      },
      "status": "active",
      "created_at": "2026-10-15T12:00:00Z",
      "expires_at": "2026-10-15T12:00:00Z",
      "triggered_at": "2026-10-15T12:00:00Z",
      "matched_price_per_gpu_hour": {
        "amount_minor": 250,
        "currency": "USD"
      }
    }
  ],
  "next_cursor": "string"
}
```

### 400

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

### 401

Missing, unknown, expired or revoked credentials.

### 403

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

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

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

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

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

### 500

An unexpected server error. Safe to retry.

## Errors

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

## Example request

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