Live storefront banners (home hero, home promo, category header)
GET
/public/banners
The banners the storefront (web + mobile) shows. Only LIVE banners are served: active and inside their optional [startsAt, endsAt) window — the schedule itself is never on the wire. Sorted by the back office's order.
Images carry no baked-in text: title / subtitle / ctaLabel are drawn by the client. imageUrl is the wide image (≈ 21:9), mobileImageUrl the narrower one (≈ 3:2) — fall back to imageUrl when null.
The tenant is resolved like every storefront read. A malformed stored row reads as an empty list (never a 500).
Cache-Control: public, max-age=300, s-maxage=300; a back-office save also purges the storefront tag banners.
Auth: Public (no authentication).
Parameters
Query Parameters
placement
Type
string
Valid values
"home_hero""home_promo""category"categoryId
Only the banners of this category (placement category).
Type
string
Max Length
64Responses
Live banners.
application/json
JSON "ok": true, "data": [ { "id": "string", "placement": "home_hero", "categoryId": "string", "title": "string", "subtitle": "string", "ctaLabel": "string", "href": "string", "imageUrl": "string", "mobileImageUrl": "string", "alt": "string" } ]
{
}