← Back to product·Simulmedia VAMOS® Docs·API reference / Avails
API reference

Avails

Push availability

PUT/v1/me/availscatalog:write

Push availability with impression estimates per audience. Updates are batched and partial: only the products and weeks you include are updated, others are unchanged.

Request body

FieldTypeDescription
as_of requiredISO datetimeWhen this batch was true in your system. Applies to every entry; echoed to buyers on every read.
entries[] requiredarray of objectThe avail entries to write. Fields below.

entries[]

FieldTypeDescription
product_id requiredstringThe product the entry speaks for.
period requiredobjectThe period this entry speaks for: {grain, start}, e.g. {"grain": "week", "start": "2026-W41"}. Its grain has to be one the product's grains offers.
state requiredenumOne of the avail states.
basis requiredenummeasured or modelled: whether the figures come from live inventory data or a forward projection. state: "projected" is clearability, a different axis.
spots.available required on a product that sells spotsintegerSpots available for this period: what an order's units validates against. Required on every product except one that sells only audience_guaranteed, which states units.available instead and is refused if it states this.
units.available required on an audience-guaranteed productintegerBookable units of this product open in this period, on a product whose buy_types is ["audience_guaranteed"]. A unit is what an order books one of: priced at gross_rate_unit and delivering the guaranteed_impressions its rate line states. Required on such a product and refused on any other. Zero is valid and means the period is open for nothing. The block carries no total and no impressions figure; a week-level total is units.available times the guarantee on the rate line.
impressionsobjectsource (the measurement basis, e.g. nielsen, comscore, seller_model) and stream (the measurement stream the figures are read on: c3, c7, live_sd) declared once, alongside one key per audience code carrying per_spot, the gross estimated delivery per spot. An audience-guaranteed product publishes no impressions block: one sent on such an entry is not read back, and what a unit delivers is the guaranteed_impressions on its rate line.
sellout_levelnumber0.0 (empty) to 1.0 (sold out): your declared sell-through of your own sales plan for the product and period. It is not the complement of the entry's count and does not validate an order; see the avail object.

One count per entry; the product decides which. A product that sells spots states spots.available; a product whose buy_types is ["audience_guaranteed"] states units.available. An entry carrying the wrong one is an INVALID_ENTRY error naming the field, and the read publishes only the count the product sells in.

{
  "product_id": "acme-audience-a25-54",
  "period": { "grain": "week", "start": "2026-W40" },
  "state": "available",
  "basis": "measured",
  "units": { "available": 40 }
}

What one of those units delivers is on the entry's rate line, as guaranteed_impressions. The platform publishes no week-level impressions figure and accepts none: with one guaranteed line priced, 40 units against a guarantee of 3,980,100 is 159,204,000 in total, which is the reader's multiplication. Where a week prices more than one guaranteed line, each line states its own guarantee.

The write payload is a batch envelope: as_of is declared once per batch and source/stream once per entry. Reads return the same shape: as_of echoed on every entry, and source and stream once per entry's impressions block, as written. The model does not express per-audience measurement sources.

Example request

Timestamps in these examples are illustrative. The sandbox stamps every event, receipt, and as_of at the moment of the call, so a response carries today's instant rather than the one printed here. The examples fix the shape and the ordering: stamps on one order are strictly increasing, and two calls a minute apart are a minute apart in the log.

PUT /v1/me/avails

{
  "as_of": "2026-10-01T08:00:00Z",
  "entries": [
    {
      "product_id": "acme-prime",
      "period": { "grain": "week", "start": "2026-W41" },
      "state": "available",
      "basis": "measured",
      "sellout_level": 0.62,
      "spots": { "available": 42 },
      "impressions": {
        "source": "nielsen",
        "stream": "c3",
        "hh":     { "per_spot": 128000 },
        "p2plus": { "per_spot": 195000 },
        "a25_54": { "per_spot":  82000 }
      }
    }
  ]
}

Response

Entries succeed per entry, under the write model every publish surface shares. An entry that fails is reported in errors[] and skipped, the rest are written: UNKNOWN_PRODUCT_ID for a product not in your published catalog, INVALID_ENTRY for a bad state value, a malformed period, or a period whose grain the product does not offer. warnings[] holds non-fatal notes on entries still written, e.g. a period already in the past.

200 Response
{
  "entries_written": 1,
  "as_of": "2026-10-01T08:00:00Z",
  "errors": [
    {
      "code": "UNKNOWN_PRODUCT_ID",
      "product_id": "acme-primetime",
      "period": { "grain": "week", "start": "2026-W41" }
    }
  ],
  "warnings": []
}

Errors

Error bodies carry the structured shape described in Errors. Statuses here refuse the request; a single bad entry is instead an errors[] element on a 200, per the write model above.

StatusCodeWhen
422INVALID_INPUTA malformed batch envelope: a missing or non-datetime as_of, or no entries[] at all.
An audience-guaranteed product carries no spots block and no impressions block. It carries units.available and the guarantee its rate line states. Both omissions hold on the read whatever a write sent.
Impression figures are seller-declared estimates, not guarantees. The source field records the measurement basis so buyers can weight them. Audience-guaranteed orders settle on the agreed currency, not on these avail estimates.

To carry day-locked orders, publish at day grain. Direct response buys by the date, and a buyer pinning an air date sets period: {"grain": "day", "start": "2026-09-16"} on the line. Day-grain avails is the precondition for that, and it is softly enforced: a dated line whose date you have not covered still books, and the buyer's create response carries a DATE_GRAIN_AVAILS_MISSING warning naming your product and the dates. Nothing is rejected and no batch is lost. See the day-locked buys walkthrough.

Read availability

GET/v1/sellers/{seller}/availscatalog:read

Returns availability and impression estimates for requested products and weeks. Entries come back at whatever grain the seller published them at: a week-grain entry states availability for the whole week at the seller's own precision, a day-grain seller returns one entry per date, and a month-grain entry comes back when a requested week falls inside its month. An avail entry is not a guarantee of clearance; confirmed availability is established at order validation.

This endpoint answers inline only for products whose avails_policy is published (as resolved for you, after any agreement override). A product set to on_request returns 202 with a request resource to poll; one set to withheld returns 409 AVAILS_WITHHELD. The async contract is below.

Query parameters

FieldTypeDescription
product_id requiredstringRepeatable. One or more product ids: ?product_id=acme-prime&product_id=acme-news.
weeks requiredISO weekRepeatable. The air weeks to check: ?weeks=2026-W41&weeks=2026-W42. ISO weeks run Monday to Sunday; 2026 has a W53. Or send from and to instead.
from, toISO date or ISO weekIn place of weeks: every ISO week the range touches, inclusive, at most 53. ?from=2026-12-21&to=2027-01-10 reads 2026-W52, 2026-W53, and 2027-W01. Sending both weeks and a range, one end alone, or to before from is 422 INVALID_INPUT naming the parameter.
audiencesenumRepeatable. Request audience codes beyond the defaults. Default: hh, p2plus, and a25_54 are always returned.
market_classenumFilter the returned rate lines to one market class, e.g. ?market_class=discounted. ?rate_class= is accepted as a deprecated alias for the remainder of the preview period, with its values mapped: remnant and opportunistic read as discounted, and upfront reads as scatter.
spot_lengthintegerFilter the returned rate lines to a creative length in seconds, e.g. ?spot_length=30.
viewenumfull (the default) returns every period with its rate lines, as below. summary returns one product summary per product instead. matrix returns one price per cell per week, for many products and weeks at once. Any other value is 422 INVALID_INPUT with details.parameter view and the supported values.
buy_typeenumWith view=summary or matrix: prices of one buy type only.
advertiser_classstringWith view=summary or matrix: prices of one advertiser class only.
advertiser_idstringWith view=summary: one of your advertisers. Prices narrow to the class this seller's category pricing resolves for it. When no class resolves, every class is listed. An advertiser that is not yours is 404 NOT_FOUND; sending it with advertiser_class is 422 INVALID_INPUT.

Example request

GET /v1/sellers/acme/avails?product_id=acme-prime&weeks=2026-W41&spot_length=30

Response

Each entry is an avail: a state, its basis and sellout_level, one count in the denomination the product sells in (spots.available, or units.available on a product that sells nothing but audience_guaranteed), per-audience impression estimates where the product sells spots, and the rate lines that apply, each carrying the locked_rate_id your order references under the price-clearance invariant. The request above filters to one creative length; without spot_length you get every length the seller prices, ordered by length and then by buy type (see below). A state: "projected" entry is quotable but not firmly clearable: orders against it validate at submission, and INVENTORY_UNAVAILABLE is possible if actuals differ when they land. discounted rate lines add a window (a standing remnant cadence commonly closes Monday 9:00A ET of the air week) and an optional signal payload agents can trigger on.

200 Response
{
  "seller": "acme",
  "avails": [
    {
      "product_id": "acme-prime",
      "period": { "grain": "week", "start": "2026-W41" },
      "state": "available",
      "basis": "measured",
      "as_of": "2026-10-01T08:00:00Z",
      "sellout_level": 0.62,
      "spots": {
        "available": 42
      },
      "impressions": {
        "source": "nielsen",
        "stream": "c3",
        "hh":     { "per_spot": 128000 },
        "p2plus": { "per_spot": 195000 },
        "a25_54": { "per_spot":  82000 }
      },
      "rates": [
        {
          "market_class": "scatter",
          "advertiser_class": "general",
          "spot_length": 30,
          "buy_type": "preemptible",
          "clearance_tier": "P2",
          "rate_basis": "per_unit",
          "gross_rate_unit": 405.00,
          "locked_rate_id": "lr_88c1",
          "currency": "USD"
        },
        {
          "market_class": "discounted",
          "advertiser_class": "general",
          "spot_length": 30,
          "buy_type": "preemptible",
          "clearance_tier": "P3",
          "rate_basis": "per_unit",
          "gross_rate_unit": 260.00,
          "locked_rate_id": "lr_f2a9",
          "currency": "USD",
          "window": {
            "opens": "2026-09-22T00:00:00Z",
            "closes": "2026-09-28T13:00:00Z"
          },
          "signal": {
            "sellout_pressure": "low",
            "expected_volume_pct": -0.30
          }
        }
      ]
    }
  ]
}

The summary view

With view=summary the body is { seller, view: "summary", products }, one ProductSummary per product you can see, in the order you asked for them. A summary states what a quarter of avails says in a few entries:

  • prices[] holds one entry per distinct cell and price over the requested weeks. weeks is "all" when that is the cell's only price; when a cell's price changes, it appears once per price, the most common first, each listing its weeks. locked_rate_ids maps every week to the id an explicit order line locks.
  • availability has one key per grain the product sells. default is the most common state and count over the published periods, exceptions lists every period that differs, and missing lists every requested period with no published avail. An unpublished period is never folded into the default. For day grain, the requested periods are the dates in the requested weeks that fall on the product's window days.
  • impressions is the most common week's block and the weeks that differ. A guaranteed-only product has none.
  • No period carries rates[]. A day prices from its week, which prices already states.
GET /v1/sellers/acme/avails?product_id=acme-prime&weeks=2026-W41&weeks=2026-W42&spot_length=30&view=summary

200 Response
{
  "seller": "acme",
  "view": "summary",
  "products": [
    {
      "product_id": "acme-prime",
      "weeks": { "from": "2026-W41", "to": "2026-W42" },
      "prices": [
        {
          "advertiser_class": "general",
          "spot_length": 30,
          "buy_type": "preemptible",
          "market_class": "scatter",
          "clearance_tier": "P2",
          "rate_basis": "per_unit",
          "gross_rate_unit": 405.00,
          "currency": "USD",
          "weeks": "all",
          "locked_rate_ids": { "2026-W41": "lr_88c1", "2026-W42": "lr_91d4" }
        }
      ],
      "availability": {
        "week": {
          "default": { "state": "available", "spots": { "available": 42 } },
          "exceptions": [
            { "period": { "grain": "week", "start": "2026-W42" }, "state": "available", "spots": { "available": 18 } }
          ],
          "missing": []
        }
      },
      "impressions": {
        "default": { "source": "nielsen", "stream": "c3", "hh": { "per_spot": 128000 } },
        "exceptions": []
      }
    }
  ]
}

GET /v1/catalog/products/{product_id}?view=summary answers the same ProductSummary as summary, in place of avails, and takes the same narrowing parameters.

The matrix view

Use view=matrix to read many products over many weeks in one call. weeks appears once, and every list in the body lines up with it. A value that is the same every week is written once instead of as a list; null is a week with nothing published. Each cell is one priced combination of class, length, buy type, market class, tier, audience, currency, and rate basis. A week priced in another currency gets its own cell, with null in the weeks it does not price. prices is the per-unit price on a per-unit cell and the CPM on a CPM cell. Availability and impressions per spot come from the product's week-grain avails; a product sold only by the day or the month carries the summary's availability block instead.

200 Response
{
  "seller": "acme",
  "view": "matrix",
  "weeks": ["2026-W41", "2026-W42", "2026-W43"],
  "products": [
    {
      "product_id": "acme-prime",
      "cells": [
        {
          "advertiser_class": "general",
          "spot_length": 30,
          "buy_type": "preemptible",
          "market_class": "scatter",
          "clearance_tier": "P2",
          "rate_basis": "per_unit",
          "currency": "USD",
          "prices": [405.00, 405.00, 420.00]
        }
      ],
      "state": "available",
      "spots": [42, 40, null],
      "impressions_per_spot": { "hh": 128000, "a25_54": [82000, 81000, 79500] },
      "impressions_source": "nielsen",
      "impressions_stream": "live_sd"
    }
  ]
}

The matrix carries no locked_rate_id. Book from it with runs, which price each period from the card, and send expected_unit_cost to be told if a price moved. A line in line_items needs a lock id: read it with view=summary for the products you book that way.

Rate lines are per creative length

Creative length is a key of the rate card, so a week returns one rate line per (length, buy type) the seller prices, ordered by length and then by buy type. Each line carries its own gross_rate_unit and locked_rate_id; no length's price is derived from another's. Filter with ?spot_length= when you want one length, and expect several lines per buy type when you do not.

GET /v1/sellers/acme/avails?product_id=acme-prime&weeks=2026-W41

200 Response (rate lines only, abbreviated)
[
  { "spot_length": 15, "buy_type": "preemptible",        "gross_rate_unit": 315.00, "locked_rate_id": "lr_88c1l15" },
  { "spot_length": 15, "buy_type": "non_preemptible",    "gross_rate_unit": 410.00, "locked_rate_id": "lr_88c2l15" },
  { "spot_length": 30, "buy_type": "preemptible",        "gross_rate_unit": 405.00, "locked_rate_id": "lr_88c1" },
  { "spot_length": 30, "buy_type": "non_preemptible",    "gross_rate_unit": 520.00, "locked_rate_id": "lr_88c2" },
  { "spot_length": 60, "buy_type": "preemptible",        "gross_rate_unit": 750.00, "locked_rate_id": "lr_88c1l60" }
]

A length a seller does not price has no line and no locked_rate_id, so it cannot be ordered from the catalog even when the product declares it in spot_lengths. Ask for it through the proposal path.

Check availability twice. Plan against cached avails, then re-request the products and weeks you are about to order immediately before POST /orders; a narrow re-check catches inventory that moved since planning. Validation's INVENTORY_UNAVAILABLE remains the backstop for the race between the re-check and the order.

On-request and withheld avails

When a product's resolved avails_policy is not published, the read does not answer inline:

on_request. The call returns 202 Accepted with a Location header and a correlation id; the seller answers asynchronously, possibly coarsened. Discover the answer two ways: an avails.answered event carrying the same avails_request_id, or poll the request resource, which is authoritative. Auth is catalog:read, same as the feed.

202 Accepted
Location: /v1/sellers/acme/avails/requests/avr_6c1d90
{
  "avails_request_id": "avr_6c1d90",
  "status": "pending",
  "expires_at": "2026-10-01T20:00:00Z"
}

GET/v1/sellers/{seller}/avails/requests/{id}catalog:read

Poll the request. status is pending, answered, declined (the seller will not answer; next points to the proposal path), or expired (no answer by expires_at). When answered, avails[] is the same shape the published feed returns, at the seller's chosen precision.

200 Response : answered
{
  "avails_request_id": "avr_6c1d90",
  "status": "answered",
  "as_of": "2026-10-01T18:30:00Z",
  "avails": [
    { "product_id": "acme-prime", "period": { "grain": "week", "start": "2026-W41" },
      "state": "available", "basis": "measured", "sellout_level": 0.7,
      "spots": { "available": 20 } }
  ]
}

200 Response : declined
{
  "avails_request_id": "avr_6c1d90",
  "status": "declined",
  "next": { "path": "/v1/orders", "workflow": "proposal" }
}

withheld. The read returns 409 AVAILS_WITHHELD; the body's next points to the proposal path. Availability resolves inside the plan or at seller review.