Skip to main content
GET
Returns generation counts and average duration for a single product. Useful for dashboards that surface “this product was tried on N times this month” or for spotting failure spikes per SKU.

Path Parameters

string
required
Your product identifier. Works for both catalog products (created via POST /products) and inline-created products (including _anon_* IDs).

Query Parameters

string
ISO 8601 timestamp. Only count generations created at or after this time. Omit for lifetime stats.
string
ISO 8601 timestamp. Only count generations created at or before this time. Omit for lifetime stats.

Response

integer
required
Total generations against this product in the window.
integer
required
Subset that reached COMPLETED.
integer
required
Subset that ended in FAILED.
integer
required
Average end-to-end duration of completed generations, in milliseconds. 0 if there are no completed generations in the window.

Notes

  • totalGenerations includes pending and processing generations as well as completed and failed ones, so the four numbers don’t always sum to the total.
  • Stats are eventually consistent; a generation that just finished may take a few seconds to appear.
  • For account-wide aggregates, sum the per-product stats yourself or use the Genlook dashboard.