{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sparkads-dev/json-schema/sparkads-dev-get-api-serve-response-schema.json",
  "title": "GetApiServeResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/sparkads-dev-openapi-generated.yml#/components/schemas/GetApiServeResponse",
  "type": "object",
  "properties": {
    "ads": {
      "type": "array",
      "description": "List of ad entries to display"
    },
    "ads[].id": {
      "type": "string",
      "description": "Stable key. A creative UUID, or a house entry slug."
    },
    "ads[].name": {
      "type": "string",
      "description": "App name, up to 40 characters."
    },
    "ads[].url": {
      "type": "string",
      "description": "Where the card links. Always https."
    },
    "ads[].domain": {
      "type": "string",
      "description": "Bare hostname. The logo and accent colour are resolved from it."
    },
    "ads[].tagline": {
      "type": "string",
      "description": "Four or five words, under the name."
    },
    "ads[].body": {
      "type": "string",
      "description": "One sentence, up to 160 characters."
    },
    "ads[].accent": {
      "type": "string",
      "description": "Tailwind text colour pair for the name, resting then hover. A fallback only."
    },
    "ads[].monogram": {
      "type": "string",
      "description": "One letter, for when no logo file resolves."
    },
    "ads[].appId": {
      "type": "string",
      "description": "The SparkPay app_id, present on house entries whose slug differs from it."
    },
    "ads[].paid": {
      "type": "boolean",
      "description": "True on the one paid card, when this hour is sold, approved and paying."
    },
    "ads[].discount": {
      "type": "object",
      "description": "A live public coupon (house entries only)."
    },
    "ads[].discount.percent": {
      "type": "number",
      "description": "Discount percent."
    },
    "ads[].discount.code": {
      "type": "string",
      "description": "Discount code."
    },
    "ads[].discount.expiresAt": {
      "type": "string",
      "description": "Expiration timestamp or null."
    },
    "slot": {
      "type": "object",
      "description": "Info about slot availability."
    },
    "slot.forSale": {
      "type": "boolean",
      "description": "True whenever this hour has no paid ad in it."
    },
    "slot.pricingUrl": {
      "type": "string",
      "description": "URL where to send whoever clicks."
    },
    "slot.from": {
      "type": "string",
      "description": "Pricing string, e.g., \"$9/month\"."
    },
    "layout": {
      "type": "object",
      "description": "Layout configuration for the carousel."
    },
    "layout.minCards": {
      "type": "number",
      "description": "Fewest cards to show, currently 2."
    },
    "layout.maxCards": {
      "type": "number",
      "description": "Most cards to show, currently 5."
    },
    "layout.minCardWidth": {
      "type": "number",
      "description": "Pixels a card needs before another column is worth adding."
    },
    "layout.gap": {
      "type": "number",
      "description": "Pixels between cards."
    }
  }
}