Klaviyo · Schema

Teaser

MarketingEmailSMSCustomer DataEcommerceAutomation

Properties

Name Type Description
id string Not allowed on create.
content string
display_order string Teaser display order enumeration.
teaser_type string Teaser display order enumeration.
location string Display location enumeration.
size string Teaser size enumeration.
custom_size integer
styles object
close_button boolean
device_type string Enumeration for mobile and desktop.
View JSON Schema on GitHub

JSON Schema

klaviyo-teaser-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Teaser",
  "title": "Teaser",
  "type": "object",
  "properties": {
    "id": {
      "description": "Not allowed on create.",
      "type": "string",
      "nullable": true
    },
    "content": {
      "type": "string"
    },
    "display_order": {
      "description": "Teaser display order enumeration.",
      "type": "string",
      "example": "after",
      "default": "after",
      "enum": [
        "after",
        "before",
        "before_and_after"
      ]
    },
    "teaser_type": {
      "description": "Teaser display order enumeration.",
      "type": "string",
      "example": "rectangle",
      "default": "rectangle",
      "enum": [
        "circle",
        "corner",
        "rectangle"
      ]
    },
    "location": {
      "description": "Display location enumeration.",
      "type": "string",
      "example": "bottom_left",
      "default": "bottom_left",
      "enum": [
        "bottom_center",
        "bottom_left",
        "bottom_right",
        "center_left",
        "center_right",
        "top_center",
        "top_left",
        "top_right"
      ]
    },
    "size": {
      "description": "Teaser size enumeration.",
      "type": "string",
      "example": "small",
      "default": "small",
      "enum": [
        "custom",
        "large",
        "medium",
        "small"
      ]
    },
    "custom_size": {
      "type": "integer",
      "nullable": true
    },
    "styles": {
      "$ref": "#/components/schemas/TeaserStyles"
    },
    "close_button": {
      "type": "boolean",
      "example": true,
      "default": true
    },
    "device_type": {
      "description": "Enumeration for mobile and desktop.",
      "type": "string",
      "example": "both",
      "default": "both",
      "enum": [
        "both",
        "desktop",
        "mobile"
      ]
    }
  },
  "required": [
    "content"
  ]
}