{ "components": { "responses": { "ClientError": { "content": { "application/vnd.api+json": { "schema": { "properties": { "errors": { "items": { "properties": { "code": { "type": "string" }, "detail": { "type": "string" }, "id": { "type": "string" }, "source": { "properties": { "parameter": { "type": "string" }, "pointer": { "type": "string" } }, "type": "object" }, "title": { "type": "string" } }, "required": [ "id", "code", "title", "detail" ], "type": "object" }, "type": "array" } }, "required": [ "errors" ], "type": "object" } } }, "description": "Client Error" }, "ServerError": { "content": { "application/vnd.api+json": { "schema": { "properties": { "errors": { "items": { "properties": { "code": { "type": "string" }, "detail": { "type": "string" }, "id": { "type": "string" }, "source": { "properties": { "parameter": { "type": "string" }, "pointer": { "type": "string" } }, "type": "object" }, "title": { "type": "string" } }, "required": [ "id", "code", "title", "detail" ], "type": "object" }, "type": "array" } }, "required": [ "errors" ], "type": "object" } } }, "description": "Server Error" } }, "schemas": { "ABTestSendStrategy": { "properties": { "method": { "enum": [ "ab_test_campaign" ], "type": "string" } }, "required": [ "method" ], "type": "object" }, "APIJobErrorPayload": { "properties": { "code": { "description": "A code for classifying the error type.", "example": "invalid", "type": "string" }, "detail": { "description": "Specific details about the error.", "example": "The payload provided in the request is invalid.", "type": "string" }, "id": { "description": "Unique identifier for the error.", "example": "e4eebb08-b055-4a6f-bb13-c8cb69c9eb94", "type": "string" }, "source": { "$ref": "#/components/schemas/ErrorSource", "description": "Additional information on the source of the error." }, "title": { "description": "A high-level message about the error.", "example": "Invalid input", "type": "string" } }, "required": [ "id", "code", "title", "detail", "source" ], "type": "object" }, "APIMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/InStringArrayFilter", "description": "Optional filter on a specific list of API keys (using last 4 digits of the key)", "nullable": true }, "method": { "enum": [ "api" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "AbTestAction": { "properties": { "data": { "properties": { "current_experiment": { "nullable": true, "properties": { "allocations": { "nullable": true, "type": "object" }, "automatic_winner_selection_settings": { "$ref": "#/components/schemas/AutomaticWinnerSelectionSettings", "nullable": true }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "started": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "readOnly": true, "type": "string" }, "variations": { "items": { "oneOf": [ { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendSmsAction" } ] }, "type": "array" }, "winner_metric": { "description": "The metric to use to determine the winner of the A/B test action.\n\nNote that this is different from the metrics used as a flow trigger.", "enum": [ "submission", "unique-clicks", "unique-opens", "unique-placed-orders" ], "nullable": true, "type": "string" } }, "required": [ "variations" ], "type": "object" }, "experiment_status": { "default": "draft", "description": "Not allowed on create.", "enum": [ "completed", "draft", "live" ], "example": "draft", "type": "string" }, "main_action": { "oneOf": [ { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendSmsAction" } ] }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "main_action" ], "type": "object" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "ab-test" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "AccountEnum": { "enum": [ "account" ], "type": "string" }, "AccountResponseObjectResource": { "properties": { "attributes": { "properties": { "contact_information": { "$ref": "#/components/schemas/ContactInformation", "description": "Contact information for the account. This is used in email footers by default to comply with the CAN-SPAM act." }, "industry": { "description": "The kind of business and/or types of goods that the business sells. This is leveraged in Klaviyo analytics and guidance.", "example": "Software / SaaS", "nullable": true, "type": "string" }, "locale": { "description": "The account's locale is used to determine the region and language for the account.", "example": "en-US", "type": "string" }, "preferred_currency": { "description": "The preferred currency for the account. This is the currency used for currency-based metrics in dashboards, analytics, coupons, and templates.", "example": "USD", "type": "string" }, "public_api_key": { "description": "The Public API Key can be used for client-side API calls. [More info here](https://developers.klaviyo.com/en/docs/retrieve_api_credentials).", "example": "AbC123", "type": "string" }, "test_account": { "description": "Indicates if the account is a test account. Test accounts are not a separate testing engineering environment. Test accounts use the same production environment as normal Klaviyo accounts. This feature is primarily UI based to reduce human errors", "type": "boolean" }, "timezone": { "description": "The account's timezone is used when displaying dates and times. This is an IANA timezone. See [the full list here ](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).", "example": "US/Eastern", "type": "string" } }, "required": [ "test_account", "contact_information", "timezone", "preferred_currency", "public_api_key", "locale" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/AccountEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ActionOutputCondition": { "properties": { "field": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "output_config_id": { "type": "integer" }, "type": { "enum": [ "action-output" ], "type": "string" } }, "required": [ "type", "output_config_id", "field", "filter" ], "type": "object" }, "ActionOutputSplitAction": { "properties": { "data": { "$ref": "#/components/schemas/ActionOutputSplitActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/BooleanBranchLinks", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "action-output-split" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "ActionOutputSplitActionData": { "properties": { "action_output_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "$ref": "#/components/schemas/ActionOutputCondition" }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" } }, "required": [ "action_output_filter" ], "type": "object" }, "AdditionalField": { "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "required": [ "name", "value" ], "type": "object" }, "AfterCloseTimeout": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/AfterCloseTimeoutProperties" }, "type": { "enum": [ "after_close_or_submit_timeout" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "AfterCloseTimeoutProperties": { "properties": { "timeout_days": { "default": 5, "example": 5, "type": "integer" } }, "type": "object" }, "AgeGate": { "properties": { "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/AgeGateProperties" }, "styles": { "$ref": "#/components/schemas/AgeGateStyles" }, "type": { "enum": [ "age_gate" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "AgeGateProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "date_format": { "default": "MM/DD/YYYY", "example": "MM/DD/YYYY", "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "default": "$age_gated_date_of_birth", "enum": [ "$age_gated_date_of_birth" ], "example": "$age_gated_date_of_birth", "type": "string" }, "required": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" }, "sms_country_code": { "default": "US", "description": "SMS County Code Enum.", "enum": [ "AT", "AU", "CH", "DE", "ES", "FR", "GB", "IE", "IT", "PT", "US" ], "example": "US", "type": "string" } }, "type": "object" }, "AgeGateStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "AlltimeDateFilter": { "properties": { "operator": { "description": "Operators for alltime date filters.", "enum": [ "alltime" ], "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "operator" ], "type": "object" }, "AnniversaryDateFilter": { "properties": { "operator": { "description": "Operators for anniversary date filters.", "enum": [ "anniversary", "anniversary-month" ], "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "operator" ], "type": "object" }, "AttributionEnum": { "enum": [ "attribution" ], "type": "string" }, "AttributionResponseObjectResource": { "properties": { "id": { "description": "The ID of the attribution", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "attributed-event": { "properties": { "data": { "properties": { "id": { "description": "Attributed Event", "type": "string" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "campaign": { "properties": { "data": { "properties": { "id": { "description": "Attributed Campaign", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "campaign-message": { "properties": { "data": { "properties": { "id": { "description": "Attributed Campaign Message", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "event": { "properties": { "data": { "properties": { "id": { "description": "Event", "type": "string" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flow": { "properties": { "data": { "properties": { "id": { "description": "Attributed Flow", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flow-message": { "properties": { "data": { "properties": { "id": { "description": "Attributed Flow Message", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flow-message-variation": { "properties": { "data": { "properties": { "id": { "description": "Attributed Flow Message Variation", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/AttributionEnum" } }, "required": [ "type", "id", "links" ], "type": "object" }, "Audiences": { "properties": { "excluded": { "description": "An optional list of excluded audiences", "example": [ "UTd5ui" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "included": { "description": "A list of included audiences", "example": [ "Y6nRLr" ], "items": { "type": "string" }, "type": "array" } }, "required": [ "included" ], "type": "object" }, "AudiencesUpdate": { "properties": { "excluded": { "description": "An optional list of excluded audiences, will override exising excluded audiences", "example": [ "UTd5ui" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "included": { "description": "An optional list of included audiences, will override existing included audiences", "example": [ "Y6nRLr" ], "items": { "type": "string" }, "nullable": true, "type": "array" } }, "type": "object" }, "AutomaticWinnerSelectionSettings": { "properties": { "automatic_end_date": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "automatic_end_statistical_certainty": { "type": "boolean" }, "enabled": { "type": "boolean" } }, "required": [ "enabled", "automatic_end_statistical_certainty" ], "type": "object" }, "BackInStock": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/BackInStockProperties" }, "type": { "enum": [ "back_in_stock" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "BackInStockDelayAction": { "properties": { "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "back-in-stock-delay" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "BackInStockDynamicButtonBorderStyles": { "properties": { "color": { "default": "#000000", "example": "#000000", "type": "string" }, "enabled": { "default": false, "type": "boolean" }, "style": { "default": "solid", "description": "Border pattern enumeration.", "enum": [ "dashed", "dotted", "solid" ], "example": "solid", "nullable": true, "type": "string" }, "width": { "default": 1, "example": 1, "type": "integer" } }, "type": "object" }, "BackInStockDynamicButtonData": { "properties": { "button_styles": { "$ref": "#/components/schemas/BackInStockDynamicButtonStyles" }, "display": { "default": "REPLACE", "description": "Back In Stock Dynamic Button display type enumeration.", "enum": [ "NEXT_TO", "REPLACE" ], "example": "REPLACE", "type": "string" }, "label": { "default": "", "type": "string" }, "text_styles": { "$ref": "#/components/schemas/BackInStockDynamicButtonTextStyles" } }, "type": "object" }, "BackInStockDynamicButtonDropShadowStyles": { "properties": { "blur": { "default": 15, "example": 15, "type": "integer" }, "color": { "default": "#000000", "example": "#000000", "type": "string" }, "enabled": { "default": false, "type": "boolean" }, "x_offset": { "default": 0, "type": "integer" }, "y_offset": { "default": 0, "type": "integer" } }, "type": "object" }, "BackInStockDynamicButtonStyles": { "properties": { "alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "border": { "$ref": "#/components/schemas/BackInStockDynamicButtonBorderStyles" }, "border_radius": { "default": 0, "type": "integer" }, "color": { "default": "#000000", "example": "#000000", "type": "string" }, "drop_shadow": { "$ref": "#/components/schemas/BackInStockDynamicButtonDropShadowStyles" }, "height": { "default": 44, "example": 44, "type": "integer" }, "width": { "default": "fullWidth", "description": "Back In Stock Dynamic Button display type enumeration.", "enum": [ "fitToText", "fullWidth" ], "example": "fullWidth", "type": "string" } }, "type": "object" }, "BackInStockDynamicButtonTextStyles": { "properties": { "font_color": { "default": "#FFFFFF", "example": "#FFFFFF", "type": "string" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "oneOf": [ { "description": "Web safe font enumeration.", "enum": [ "Arial Black,Arial", "Arial, 'Helvetica Neue', Helvetica, sans-serif", "Century Gothic,AppleGothic,Arial", "Comic Sans MS,Comic Sans,cursive", "Courier", "Courier New", "Geneva,Arial", "Georgia", "Helvetica,Arial", "Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "MS Serif,Georgia", "New York,Georgia", "Palatino Linotype,Palatino,Georgia", "Palatino,Georgia", "Tahoma,sans-serif", "Times New Roman", "Trebuchet MS", "Verdana" ], "type": "string" }, { "type": "string" } ] }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_style": { "nullable": true, "type": "string" }, "font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "nullable": true, "type": "integer" }, "letter_spacing": { "default": 0, "type": "integer" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "BackInStockEmailConsentCheckbox": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/BackInStockEmailConsentCheckboxProperties" }, "styles": { "$ref": "#/components/schemas/BackInStockEmailConsentCheckboxStyles" }, "type": { "enum": [ "bis_promotional_email_checkbox" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "BackInStockEmailConsentCheckboxProperties": { "properties": { "checkbox_text": { "type": "string" }, "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "enum": [ null ] }, "property_name": { "default": "opt_in_promotional_email", "enum": [ "opt_in_promotional_email" ], "example": "opt_in_promotional_email", "type": "string" }, "required": { "default": false, "enum": [ false ], "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "checkbox_text" ], "type": "object" }, "BackInStockEmailConsentCheckboxStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "horizontal_alignment": { "default": "left", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "left", "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "BackInStockMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "back_in_stock" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "BackInStockProperties": { "properties": { "tag_allowlist": { "items": { "type": "string" }, "type": "array" }, "tag_blocklist": { "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "BackInStockSubscriptionEnum": { "enum": [ "back-in-stock-subscription" ], "type": "string" }, "BackgroundImage": { "properties": { "properties": { "$ref": "#/components/schemas/ImageAssetProperties" }, "styles": { "$ref": "#/components/schemas/BackgroundImageStyles" } }, "required": [ "properties" ], "type": "object" }, "BackgroundImageStyles": { "properties": { "custom_width": { "nullable": true, "type": "integer" }, "horizontal_alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "position": { "default": "contain", "description": "Image position enumeration.", "enum": [ "contain", "cover", "custom" ], "example": "contain", "type": "string" }, "vertical_alignment": { "default": "center", "description": "Vertical alignment enumeration.", "enum": [ "bottom", "center", "top" ], "example": "center", "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "type": "object" }, "BannerStyles": { "properties": { "desktop_position": { "default": "top", "description": "Positioning of banner forms.", "enum": [ "bottom", "top" ], "example": "top", "type": "string" }, "mobile_position": { "default": "top", "description": "Positioning of banner forms.", "enum": [ "bottom", "top" ], "example": "top", "type": "string" }, "scroll_with_page": { "default": true, "example": true, "type": "boolean" } }, "type": "object" }, "BaseEventCreateQueryBulkEntryResourceObject": { "properties": { "attributes": { "properties": { "backfill": { "default": false, "description": "When true, the event is recorded but does NOT trigger flows. Use this when backfilling\nhistorical events so existing flow definitions do not re-fire on events that already\nfired in the past.", "nullable": true, "type": "boolean" }, "metric": { "properties": { "data": { "$ref": "#/components/schemas/MetricCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "properties": { "description": "Properties of this event (must not exceed 400 properties). The size of the event payload must not exceed 5 MB,\nand each string cannot be larger than 100 KB. For a full list of data limits on event payloads,\nsee [Limitations](https://developers.klaviyo.com/en/reference/events_api_overview#limitations).\n\nNote any top-level property that is not an object can be\nused to create segments. The `$extra` property records any\nnon-segmentable values that can be referenced later, e.g., HTML templates are\nuseful on a segment but are not used to create a segment.", "example": { "Brand": "Kids Book", "ProductID": 1111, "ProductName": "Winnie the Pooh" }, "type": "object" }, "time": { "description": "When this event occurred. By default, the time the request was received will be used.\nThe time is truncated to the second. The time must be after the year 2000 and can only\nbe up to 1 year in the future.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "unique_id": { "description": "A unique identifier for an event. If a unique_id is repeated for the same profile and metric,\nthe request will fail and no events will be processed. If this field is not\npresent, this field will use the time to the second. Using the default, this limits only one\nevent per profile per second.", "nullable": true, "type": "string" }, "value": { "description": "A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase.", "example": 9.99, "nullable": true, "type": "number" }, "value_currency": { "description": "The ISO 4217 currency code of the value associated with the event.", "example": "USD", "nullable": true, "type": "string" } }, "required": [ "properties", "metric" ], "type": "object" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "BaseStyle": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/BaseStyleProperties" }, "style_type": { "enum": [ "base-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/BaseStyleStyles" } }, "required": [ "style_type", "properties", "styles" ], "type": "object" }, "BaseStyleProperties": { "properties": { "currency": { "nullable": true, "type": "string" }, "currency_set_on_template": { "nullable": true, "type": "boolean" }, "disable_websafe_fonts": { "nullable": true, "type": "boolean" }, "is_user_draggable": { "nullable": true, "type": "boolean" }, "mobile_optimizations": { "nullable": true, "type": "boolean" }, "tip_tap_enabled": { "nullable": true, "type": "boolean" } }, "type": "object" }, "BaseStyleStyles": { "properties": { "background_asset_id": { "nullable": true, "type": "string" }, "background_format": { "description": "Background format.", "enum": [ "auto", "contain", "cover", "initial", "repeat" ], "nullable": true, "type": "string" }, "background_position": { "description": "Background position.", "enum": [ "center-bottom", "center-center", "center-top", "left-bottom", "left-center", "left-top", "right-bottom", "right-center", "right-top" ], "nullable": true, "type": "string" }, "background_repeat": { "nullable": true, "type": "boolean" }, "background_url": { "nullable": true, "type": "string" }, "border_color": { "nullable": true, "type": "string" }, "border_radius": { "nullable": true, "type": "integer" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "content_background_color": { "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "margin_top": { "nullable": true, "type": "integer" } }, "type": "object" }, "BlockDisplayOptions": { "properties": { "content_repeat": { "$ref": "#/components/schemas/ContentRepeatV0", "nullable": true }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "visible_check": { "nullable": true, "type": "string" } }, "type": "object" }, "Body": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/BodyProperties" }, "sections": { "items": { "$ref": "#/components/schemas/SectionV1" }, "nullable": true, "type": "array" }, "styles": { "$ref": "#/components/schemas/BodyStyles" } }, "required": [ "properties", "styles" ], "type": "object" }, "BodyProperties": { "properties": { "css_class": { "nullable": true, "type": "string" }, "id": { "nullable": true, "type": "string" } }, "type": "object" }, "BodyStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "type": "object" }, "BooleanBranchLinks": { "properties": { "next_if_false": { "nullable": true, "type": "string" }, "next_if_true": { "nullable": true, "type": "string" } }, "required": [ "next_if_true", "next_if_false" ], "type": "object" }, "BooleanFilter": { "properties": { "operator": { "description": "Operators for boolean filters.", "enum": [ "equals" ], "type": "string" }, "type": { "enum": [ "boolean" ], "type": "string" }, "value": { "type": "boolean" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "BorderStyle": { "properties": { "color": { "nullable": true, "type": "string" }, "radius": { "default": 8, "example": 8, "type": "integer" }, "style": { "description": "Border pattern enumeration.", "enum": [ "dashed", "dotted", "solid" ], "nullable": true, "type": "string" }, "thickness": { "nullable": true, "type": "integer" } }, "type": "object" }, "BounceDateFilter": { "properties": { "field": { "enum": [ "bounce_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/IsSetExistenceFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "BulkProfileSuppressionsCreateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "skipped_count": { "default": 0, "description": "The total number of profiles that have been skipped as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this list", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this segment", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "BulkProfileSuppressionsRemoveJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "skipped_count": { "default": 0, "description": "The total number of profiles that have been skipped as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this list", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this segment", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "BulkRemoveMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "bulk_remove" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "Button": { "properties": { "action": { "oneOf": [ { "$ref": "#/components/schemas/Close" }, { "$ref": "#/components/schemas/NextStep" }, { "$ref": "#/components/schemas/OpenForm" }, { "$ref": "#/components/schemas/PromotionalSMSSubscription" }, { "$ref": "#/components/schemas/Redirect" }, { "$ref": "#/components/schemas/ResendOptInCode" }, { "$ref": "#/components/schemas/SubmitOptInCode" }, { "$ref": "#/components/schemas/SubscribeViaSMS" }, { "$ref": "#/components/schemas/SubscribeViaWhatsApp" }, { "$ref": "#/components/schemas/GoToInbox" }, { "$ref": "#/components/schemas/SubmitBackInStock" }, { "$ref": "#/components/schemas/SkipToSuccess" }, { "$ref": "#/components/schemas/IafDeeplinkToScreen" } ] }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ButtonProperties" }, "styles": { "$ref": "#/components/schemas/ButtonStyles" }, "type": { "enum": [ "button" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ButtonBlockData": { "properties": { "content": { "nullable": true, "type": "string" }, "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "$ref": "#/components/schemas/ButtonBlockProperties" }, "styles": { "$ref": "#/components/schemas/ButtonBlockStyles" } }, "required": [ "content", "properties", "display_options", "styles" ], "type": "object" }, "ButtonBlockProperties": { "properties": { "href": { "nullable": true, "type": "string" } }, "type": "object" }, "ButtonBlockStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_color": { "nullable": true, "type": "string" }, "border_radius": { "nullable": true, "type": "integer" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "color": { "nullable": true, "type": "string" }, "drop_shadow_color": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "letter_spacing": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "stretch": { "nullable": true, "type": "boolean" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "ButtonBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "button" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ButtonBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/ButtonBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "button" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ButtonDropShadowStyles": { "properties": { "blur": { "default": 15, "example": 15, "type": "integer" }, "color": { "default": "#000000", "example": "#000000", "type": "string" }, "enabled": { "default": false, "type": "boolean" }, "x_offset": { "default": 0, "type": "integer" }, "y_offset": { "default": 0, "type": "integer" } }, "type": "object" }, "ButtonProperties": { "properties": { "additional_fields": { "items": { "$ref": "#/components/schemas/AdditionalField" }, "nullable": true, "type": "array" }, "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "label": { "type": "string" } }, "required": [ "label" ], "type": "object" }, "ButtonStyles": { "properties": { "alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "border_styles": { "$ref": "#/components/schemas/BorderStyle" }, "color": { "nullable": true, "type": "string" }, "drop_shadow": { "$ref": "#/components/schemas/ButtonDropShadowStyles" }, "height": { "default": 50, "example": 50, "oneOf": [ { "type": "integer" }, { "enum": [ "auto" ], "type": "string" } ] }, "hover_background_color": { "nullable": true, "type": "string" }, "hover_text_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" }, "text_styles": { "$ref": "#/components/schemas/TextStyleV0" }, "width": { "default": "fill", "description": "Valid button block widths.", "enum": [ "fill", "fit" ], "example": "fill", "type": "string" } }, "type": "object" }, "CalendarDateFilter": { "properties": { "operator": { "description": "Operators for calendar date filters.", "enum": [ "calendar-month" ], "type": "string" }, "type": { "enum": [ "date" ], "type": "string" }, "value": { "type": "integer" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "CampaignCloneQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignCloneQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignCloneQueryResourceObject": { "properties": { "attributes": { "properties": { "new_name": { "description": "The name for the new cloned campaign", "example": "My cloned campaign's new name", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The campaign ID to be cloned", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CampaignCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "audiences": { "$ref": "#/components/schemas/Audiences", "description": "The audiences to be included and/or excluded from the campaign" }, "campaign-messages": { "description": "The message(s) associated with the campaign", "properties": { "data": { "items": { "$ref": "#/components/schemas/CampaignMessageCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "name": { "description": "The campaign name", "example": "My new campaign", "type": "string" }, "send_options": { "description": "Options to use when sending a campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EmailSendOptions" }, { "$ref": "#/components/schemas/SMSSendOptions" }, { "$ref": "#/components/schemas/PushSendOptions" } ] }, "send_strategy": { "description": "The send strategy the campaign will send with. Defaults to 'Immediate' send strategy.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/StaticSendStrategy" }, { "$ref": "#/components/schemas/ThrottledSendStrategy" }, { "$ref": "#/components/schemas/ImmediateSendStrategy" }, { "$ref": "#/components/schemas/SmartSendTimeStrategy" } ] }, "tracking_options": { "description": "The tracking options associated with the campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignsEmailTrackingOptions" }, { "$ref": "#/components/schemas/CampaignsSMSTrackingOptions" } ] } }, "required": [ "name", "audiences", "campaign-messages" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CampaignEnum": { "enum": [ "campaign" ], "type": "string" }, "CampaignMessageAssignTemplateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignMessageAssignTemplateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignMessageAssignTemplateQueryResourceObject": { "properties": { "id": { "description": "The message ID to be assigned to", "type": "string" }, "relationships": { "properties": { "template": { "properties": { "data": { "properties": { "id": { "description": "The template ID to assign", "example": "RipRmi", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "template" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id", "relationships" ], "type": "object" }, "CampaignMessageCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "oneOf": [ { "$ref": "#/components/schemas/EmailMessageDefinition" }, { "$ref": "#/components/schemas/SMSMessageDefinitionCreate" }, { "$ref": "#/components/schemas/MobilePushMessageStandardDefinitionCreate" }, { "$ref": "#/components/schemas/MobilePushMessageSilentDefinitionCreate" } ] } }, "required": [ "definition" ], "type": "object" }, "relationships": { "properties": { "image": { "properties": { "data": { "properties": { "id": { "description": "The associated image for mobile_push messages", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CampaignMessageEnum": { "enum": [ "campaign-message" ], "type": "string" }, "CampaignMessageImageUpdateQuery": { "properties": { "data": { "properties": { "id": { "description": "Campaign Message Image", "example": "14254", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "required": [ "data" ], "type": "object" }, "CampaignMessageIncrement": { "properties": { "badge_config": { "enum": [ "increment_one" ], "type": "string" } }, "required": [ "badge_config" ], "type": "object" }, "CampaignMessagePartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignMessagePartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignMessagePartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "description": "The contents and settings of the campaign message", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EmailMessageDefinition" }, { "$ref": "#/components/schemas/SMSMessageDefinitionCreate" }, { "$ref": "#/components/schemas/MobilePushMessageStandardDefinitionUpdate" }, { "$ref": "#/components/schemas/MobilePushMessageSilentDefinitionUpdate" } ] } }, "type": "object" }, "id": { "description": "The message ID to be retrieved", "type": "string" }, "relationships": { "properties": { "image": { "properties": { "data": { "properties": { "id": { "description": "The associated image for mobile_push messages", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CampaignMessageProperty": { "properties": { "badge_config": { "enum": [ "set_property" ], "type": "string" }, "set_from_property": { "type": "string" } }, "required": [ "badge_config", "set_from_property" ], "type": "object" }, "CampaignMessageResponseObjectResource": { "properties": { "attributes": { "properties": { "created_at": { "description": "The datetime when the message was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EmailMessageDefinition" }, { "$ref": "#/components/schemas/SMSMessageDefinition" }, { "$ref": "#/components/schemas/MobilePushMessageStandardDefinition" }, { "$ref": "#/components/schemas/MobilePushMessageSilentDefinition" } ] }, "send_times": { "description": "The list of appropriate Send Time Sub-objects associated with the message", "items": { "$ref": "#/components/schemas/SendTime" }, "nullable": true, "type": "array" }, "updated_at": { "description": "The datetime when the message was last updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The message ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign": { "properties": { "data": { "properties": { "id": { "description": "The parent campaign id", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "image": { "properties": { "data": { "properties": { "id": { "description": "The associated image id", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "template": { "properties": { "data": { "properties": { "id": { "description": "The associated template id", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CampaignMessageStaticCount": { "properties": { "badge_config": { "enum": [ "set_count" ], "type": "string" }, "value": { "type": "string" } }, "required": [ "badge_config", "value" ], "type": "object" }, "CampaignPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "audiences": { "$ref": "#/components/schemas/AudiencesUpdate", "description": "The audiences to be included and/or excluded from the campaign", "nullable": true }, "name": { "description": "The campaign name", "example": "My new campaign", "nullable": true, "type": "string" }, "send_options": { "description": "Options to use when sending a campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EmailSendOptions" }, { "$ref": "#/components/schemas/SMSSendOptions" }, { "$ref": "#/components/schemas/PushSendOptions" } ] }, "send_strategy": { "description": "The send strategy the campaign will send with", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/StaticSendStrategy" }, { "$ref": "#/components/schemas/ThrottledSendStrategy" }, { "$ref": "#/components/schemas/ImmediateSendStrategy" }, { "$ref": "#/components/schemas/SmartSendTimeStrategy" } ] }, "tracking_options": { "description": "The tracking options associated with the campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignsEmailTrackingOptions" }, { "$ref": "#/components/schemas/CampaignsSMSTrackingOptions" } ] } }, "type": "object" }, "id": { "description": "The campaign ID to be retrieved", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CampaignRecipientEstimationEnum": { "enum": [ "campaign-recipient-estimation" ], "type": "string" }, "CampaignRecipientEstimationJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignRecipientEstimationJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignRecipientEstimationJobCreateQueryResourceObject": { "properties": { "id": { "description": "The ID of the campaign to perform recipient estimation", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignRecipientEstimationJobEnum" } }, "required": [ "type", "id" ], "type": "object" }, "CampaignRecipientEstimationJobEnum": { "enum": [ "campaign-recipient-estimation-job" ], "type": "string" }, "CampaignRecipientEstimationJobResponseObjectResource": { "properties": { "attributes": { "properties": { "status": { "description": "The status of the recipient estimation job", "enum": [ "cancelled", "complete", "processing", "queued" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "id": { "description": "The ID of the campaign used for estimating recipients", "example": "01GMRWDSA0ARTAKE1SFX8JGXAY", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CampaignRecipientEstimationJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CampaignRecipientEstimationResponseObjectResource": { "properties": { "attributes": { "properties": { "estimated_recipient_count": { "description": "The estimated number of unique recipients the campaign will send to", "type": "integer" } }, "required": [ "estimated_recipient_count" ], "type": "object" }, "id": { "description": "The ID of the campaign for which to get the estimated number of recipients", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CampaignRecipientEstimationEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CampaignResponseObjectResource": { "properties": { "attributes": { "properties": { "archived": { "description": "Whether the campaign has been archived or not", "type": "boolean" }, "audiences": { "$ref": "#/components/schemas/Audiences", "description": "The audiences to be included and/or excluded from the campaign" }, "created_at": { "description": "The datetime when the campaign was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The campaign name", "type": "string" }, "scheduled_at": { "description": "The datetime when the campaign was scheduled for future sending", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "send_options": { "description": "Options to use when sending a campaign", "oneOf": [ { "$ref": "#/components/schemas/EmailSendOptions" }, { "$ref": "#/components/schemas/SMSSendOptions" }, { "$ref": "#/components/schemas/PushSendOptions" } ] }, "send_strategy": { "description": "The send strategy the campaign will send with", "oneOf": [ { "$ref": "#/components/schemas/StaticSendStrategy" }, { "$ref": "#/components/schemas/SmartSendTimeStrategy" }, { "$ref": "#/components/schemas/ThrottledSendStrategy" }, { "$ref": "#/components/schemas/ImmediateSendStrategy" }, { "$ref": "#/components/schemas/ABTestSendStrategy" }, { "$ref": "#/components/schemas/UnsupportedSendStrategy" } ] }, "send_time": { "description": "The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the campaign", "enum": [ "Adding Recipients", "Cancelled", "Cancelled: Account Disabled", "Cancelled: Billing Limit", "Cancelled: Internal Error", "Cancelled: Misconfigured", "Cancelled: No Recipients", "Cancelled: Smart Sending", "Draft", "Preparing to schedule", "Preparing to send", "Queued without Recipients", "Scheduled", "Sending", "Sending Segments", "Sent", "Unknown", "Variations Sent" ], "type": "string" }, "tracking_options": { "description": "The tracking options associated with the campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignsEmailTrackingOptions" }, { "$ref": "#/components/schemas/CampaignsSMSTrackingOptions" } ] }, "updated_at": { "description": "The datetime when the campaign was last updated by a user or the system", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "status", "archived", "audiences", "send_options", "send_strategy", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "The campaign ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign-messages": { "properties": { "data": { "items": { "properties": { "id": { "description": "The message(s) associated with the campaign", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CampaignSendJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignSendJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignSendJobCreateQueryResourceObject": { "properties": { "id": { "description": "The ID of the campaign to send", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignSendJobEnum" } }, "required": [ "type", "id" ], "type": "object" }, "CampaignSendJobEnum": { "enum": [ "campaign-send-job" ], "type": "string" }, "CampaignSendJobPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CampaignSendJobPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignSendJobPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "action": { "description": "The action you would like to take with this send job from among 'cancel' and 'revert'", "enum": [ "cancel", "revert" ], "example": "cancel", "type": "string" } }, "required": [ "action" ], "type": "object" }, "id": { "description": "The ID of the currently sending campaign to cancel or revert", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignSendJobEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CampaignSendJobResponseObjectResource": { "properties": { "attributes": { "properties": { "status": { "description": "The status of the send job", "enum": [ "cancelled", "complete", "processing", "queued" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "id": { "description": "The ID of the campaign to send", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CampaignSendJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CampaignTrackingSettingDynamicParam": { "properties": { "type": { "description": "The type of the tracking parameter", "enum": [ "dynamic" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "enum": [ "campaign_id", "campaign_name", "campaign_name_id", "campaign_name_send_day", "email_subject", "group_id", "group_name", "group_name_id", "link_alt_text", "message_type", "profile_external_id", "profile_id" ], "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "CampaignTrackingSettingStaticParam": { "properties": { "type": { "description": "The type of the tracking parameter", "enum": [ "static" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "CampaignValuesReportEnum": { "enum": [ "campaign-values-report" ], "type": "string" }, "CampaignValuesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/CampaignValuesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "CampaignValuesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "conversion_metric_id": { "description": "ID of the metric to be used for conversion statistics", "example": "RESQ6t", "type": "string" }, "filter": { "description": "API filter string used to filter the query.\nScalar attributes (send_channel, campaign_id, campaign_message_id, campaign_message_name, variation, variation_name, text_message_format): Supported operators: equals, contains-any.\nList attributes (tag_id, tag_name): Supported operators: contains-any, contains-all.\nOnly one filter can be used per attribute.\nOnly AND can be used as a combination operator.\nMax of 100 items per list filter.\nWhen filtering on send_channel, allowed values are email, sms, push-notification, whatsapp.", "example": "and(equals(campaign_id,\"abc123\"),contains-any(send_channel,[\"email\",\"sms\"]))", "nullable": true, "type": "string" }, "group_by": { "description": "List of attributes to group the data by.\nAllowed group-bys are campaign_id, campaign_message_id, campaign_message_name, group, group_name, send_channel, tag_id, tag_name, text_message_format, variation, variation_name.\nIf not passed in, the data will be grouped by campaign_id, campaign_message_id, send_channel.\nThe following group by attributes are required: campaign_id, campaign_message_id", "items": { "description": "Attributes to represent what is being grouped by / filtered on for Campaigns", "enum": [ "campaign_id", "campaign_message_id", "campaign_message_name", "group", "group_name", "send_channel", "tag_id", "tag_name", "text_message_format", "variation", "variation_name" ], "type": "string" }, "nullable": true, "type": "array" }, "statistics": { "description": "List of statistics to query for. All rate statistics will be returned in fractional form [0.0, 1.0]", "example": [ "opens", "open_rate" ], "items": { "description": "Defined reporting metric", "enum": [ "average_order_value", "bounce_rate", "bounced", "bounced_or_failed", "bounced_or_failed_rate", "click_rate", "click_to_open_rate", "clicks", "clicks_unique", "conversion_rate", "conversion_uniques", "conversion_value", "conversions", "delivered", "delivery_rate", "failed", "failed_rate", "message_segment_count_sum", "open_rate", "opens", "opens_unique", "recipients", "revenue_per_recipient", "spam_complaint_rate", "spam_complaints", "text_message_credit_usage_amount", "text_message_roi", "text_message_spend", "unsubscribe_rate", "unsubscribe_uniques", "unsubscribes" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe", "conversion_metric_id" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CampaignsEmailTrackingOptions": { "properties": { "add_tracking_params": { "description": "Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.", "nullable": true, "type": "boolean" }, "custom_tracking_params": { "description": "A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.", "items": { "oneOf": [ { "$ref": "#/components/schemas/DynamicTrackingParam" }, { "$ref": "#/components/schemas/StaticTrackingParam" } ] }, "nullable": true, "type": "array" }, "is_tracking_clicks": { "description": "Whether the campaign is tracking click events. If not specified, uses company defaults.", "nullable": true, "type": "boolean" }, "is_tracking_opens": { "description": "Whether the campaign is tracking open events. If not specified, uses company defaults.", "nullable": true, "type": "boolean" } }, "type": "object" }, "CampaignsSMSTrackingOptions": { "properties": { "add_tracking_params": { "description": "Whether the campaign needs custom tracking parameters. If set to False, tracking params will not be used.", "nullable": true, "type": "boolean" }, "custom_tracking_params": { "description": "A list of custom tracking parameters. If an empty list is given and add_tracking_params is True, uses company defaults.", "items": { "oneOf": [ { "$ref": "#/components/schemas/DynamicTrackingParam" }, { "$ref": "#/components/schemas/StaticTrackingParam" } ] }, "nullable": true, "type": "array" } }, "type": "object" }, "CarrierDeactivationMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "carrier_deactivation" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "CartContent": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CartContentProperties" }, "type": { "enum": [ "cart_content" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CartContentProperties": { "properties": { "items": { "$ref": "#/components/schemas/CartItemCountProperties", "nullable": true }, "product": { "$ref": "#/components/schemas/CartProductProperties", "nullable": true }, "value": { "$ref": "#/components/schemas/CartValueProperties", "nullable": true } }, "type": "object" }, "CartItemCount": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CartItemCountProperties" }, "type": { "enum": [ "cart_item_count" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CartItemCountProperties": { "properties": { "comparison": { "description": "Number comparison enumeration.", "enum": [ "equals", "greater_than", "less_than" ], "nullable": true, "type": "string" }, "value": { "nullable": true, "type": "integer" } }, "type": "object" }, "CartProduct": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CartProductProperties" }, "type": { "enum": [ "cart_product" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CartProductProperties": { "properties": { "type": { "description": "Product descriptor enumeration.", "enum": [ "brand", "categories", "id", "name" ], "nullable": true, "type": "string" }, "value": { "nullable": true, "type": "string" } }, "type": "object" }, "CartValue": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CartValueProperties" }, "type": { "enum": [ "cart_value" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CartValueProperties": { "properties": { "comparison": { "description": "Number comparison enumeration.", "enum": [ "equals", "greater_than", "less_than" ], "nullable": true, "type": "string" }, "value": { "nullable": true, "type": "number" } }, "type": "object" }, "CatalogCategoryBulkCreateJobEnum": { "enum": [ "catalog-category-bulk-create-job" ], "type": "string" }, "CatalogCategoryBulkDeleteJobEnum": { "enum": [ "catalog-category-bulk-delete-job" ], "type": "string" }, "CatalogCategoryBulkUpdateJobEnum": { "enum": [ "catalog-category-bulk-update-job" ], "type": "string" }, "CatalogCategoryCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "categories": { "description": "Array of catalog categories to create.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "categories" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogCategoryCreateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogCategoryCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "catalog_type": { "default": "$default", "description": "The type of catalog. Currently only \"$default\" is supported.", "example": "$default", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog category in an external system.", "example": "SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "integration_type": { "default": "$custom", "description": "The integration type. Currently only \"$custom\" is supported.", "enum": [ "$custom" ], "example": "$custom", "nullable": true, "type": "string" }, "name": { "description": "The name of the catalog category.", "example": "Sample Data Category Apparel", "type": "string" } }, "required": [ "external_id", "name" ], "type": "object" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog item IDs that are in the given category.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogCategoryDeleteJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryDeleteJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryDeleteJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "categories": { "description": "Array of catalog categories to delete.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryDeleteQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "categories" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkDeleteJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogCategoryDeleteJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogCategoryDeleteQueryResourceObject": { "properties": { "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "CatalogCategoryEnum": { "enum": [ "catalog-category" ], "type": "string" }, "CatalogCategoryItemOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog item IDs that are in the given category.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryResponseObjectResource": { "properties": { "attributes": { "properties": { "external_id": { "description": "The ID of the catalog category in an external system.", "example": "SAMPLE-DATA-CATEGORY-APPAREL", "nullable": true, "type": "string" }, "name": { "description": "The name of the catalog category.", "example": "Sample Data Category Apparel", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog category was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogCategoryUpdateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryUpdateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryUpdateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "categories": { "description": "Array of catalog categories to update.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryUpdateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "categories" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkUpdateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogCategoryUpdateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogCategoryUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogCategoryUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "The name of the catalog category.", "example": "Sample Data Category Apparel", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog item IDs that are in the given category.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CatalogItemBulkCreateJobEnum": { "enum": [ "catalog-item-bulk-create-job" ], "type": "string" }, "CatalogItemBulkDeleteJobEnum": { "enum": [ "catalog-item-bulk-delete-job" ], "type": "string" }, "CatalogItemBulkUpdateJobEnum": { "enum": [ "catalog-item-bulk-update-job" ], "type": "string" }, "CatalogItemCategoryOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog category IDs representing the categories the item is in", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "CatalogItemCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogItemCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "items": { "description": "Array of catalog items to create.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "items" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogItemCreateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogItemCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogItemCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "catalog_type": { "default": "$default", "description": "The type of catalog. Currently only \"$default\" is supported.", "example": "$default", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "type": "string" }, "external_id": { "description": "The ID of the catalog item in an external system.", "example": "SAMPLE-DATA-ITEM-1", "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "integration_type": { "default": "$custom", "description": "The integration type. Currently only \"$custom\" is supported.", "enum": [ "$custom" ], "example": "$custom", "nullable": true, "type": "string" }, "price": { "description": "This field can be used to set the price on the catalog item, which is what gets displayed for the item when included in emails. For most price-update use cases, you will also want to update the `price` on any child variants, using the [Update Catalog Variant Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_variant).", "example": 42, "nullable": true, "type": "number" }, "published": { "default": true, "description": "Boolean value indicating whether the catalog item is published.", "example": true, "nullable": true, "type": "boolean" }, "title": { "description": "The title of the catalog item.", "example": "Ocean Blue Shirt (Sample)", "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item on your website.", "example": "https://via.placeholder.com/150", "type": "string" } }, "required": [ "external_id", "title", "description", "url" ], "type": "object" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog category IDs representing the categories the item is in", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogItemDeleteJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemDeleteJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogItemDeleteJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "items": { "description": "Array of catalog items to delete.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemDeleteQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "items" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkDeleteJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogItemDeleteJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogItemDeleteQueryResourceObject": { "properties": { "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "CatalogItemEnum": { "enum": [ "catalog-item" ], "type": "string" }, "CatalogItemResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item in an external system.", "example": "SAMPLE-DATA-ITEM-1", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "price": { "description": "This field can be used to set the price on the catalog item, which is what gets displayed for the item when included in emails. For most price-update use cases, you will also want to update the `price` on any child variants, using the [Update Catalog Variant Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_variant).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item is published.", "example": true, "nullable": true, "type": "boolean" }, "title": { "description": "The title of the catalog item.", "example": "Ocean Blue Shirt (Sample)", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogItemUpdateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemUpdateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogItemUpdateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "items": { "description": "Array of catalog items to update.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemUpdateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "items" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkUpdateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogItemUpdateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogItemUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogItemUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item.", "example": "A description of the catalog item.", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "price": { "description": "This field can be used to set the price on the catalog item, which is what gets displayed for the item when included in emails. For most price-update use cases, you will also want to update the `price` on any child variants, using the [Update Catalog Variant Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_variant).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item is published.", "example": true, "nullable": true, "type": "boolean" }, "title": { "description": "The title of the catalog item.", "example": "Ocean Blue Shirt (Sample)", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of catalog category IDs representing the categories the item is in", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CatalogVariantBulkCreateJobEnum": { "enum": [ "catalog-variant-bulk-create-job" ], "type": "string" }, "CatalogVariantBulkDeleteJobEnum": { "enum": [ "catalog-variant-bulk-delete-job" ], "type": "string" }, "CatalogVariantBulkUpdateJobEnum": { "enum": [ "catalog-variant-bulk-update-job" ], "type": "string" }, "CatalogVariantCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogVariantCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "variants": { "description": "Array of catalog variants to create.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "variants" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogVariantCreateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogVariantCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogVariantCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "catalog_type": { "default": "$default", "description": "The type of catalog. Currently only \"$default\" is supported.", "example": "$default", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item variant.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "type": "string" }, "external_id": { "description": "The ID of the catalog item variant in an external system.", "example": "SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item variant.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item variant.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item variant.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "integration_type": { "default": "$custom", "description": "The integration type. Currently only \"$custom\" is supported.", "enum": [ "$custom" ], "example": "$custom", "nullable": true, "type": "string" }, "inventory_policy": { "default": 0, "description": "This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.", "enum": [ 0, 1, 2 ], "example": 2, "nullable": true, "type": "integer" }, "inventory_quantity": { "description": "The quantity of the catalog item variant currently in stock.", "example": 25, "type": "number" }, "price": { "description": "This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item).", "example": 42, "type": "number" }, "published": { "default": true, "description": "Boolean value indicating whether the catalog item variant is published.", "example": true, "nullable": true, "type": "boolean" }, "sku": { "description": "The SKU of the catalog item variant.", "example": "OBS-MD", "type": "string" }, "title": { "description": "The title of the catalog item variant.", "example": "Ocean Blue Shirt (Sample) Variant Medium", "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item variant on your website.", "example": "https://via.placeholder.com/150", "type": "string" } }, "required": [ "external_id", "title", "description", "sku", "inventory_quantity", "price", "url" ], "type": "object" }, "relationships": { "properties": { "item": { "properties": { "data": { "properties": { "id": { "description": "The original catalog item ID for which this is a variant.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "item" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "CatalogVariantDeleteJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantDeleteJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogVariantDeleteJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "variants": { "description": "Array of catalog variants to delete.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantDeleteQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "variants" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkDeleteJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogVariantDeleteJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogVariantDeleteQueryResourceObject": { "properties": { "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "CatalogVariantEnum": { "enum": [ "catalog-variant" ], "type": "string" }, "CatalogVariantResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item variant was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item variant.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item variant in an external system.", "example": "SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item variant.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item variant.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item variant.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "inventory_policy": { "description": "This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.", "enum": [ 0, 1, 2 ], "example": 2, "nullable": true, "type": "integer" }, "inventory_quantity": { "description": "The quantity of the catalog item variant currently in stock.", "example": 25, "nullable": true, "type": "number" }, "price": { "description": "This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item variant is published.", "example": true, "nullable": true, "type": "boolean" }, "sku": { "description": "The SKU of the catalog item variant.", "example": "OBS-MD", "nullable": true, "type": "string" }, "title": { "description": "The title of the catalog item variant.", "example": "Ocean Blue Shirt (Sample) Variant Medium", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item variant was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item variant on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "item": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogVariantUpdateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantUpdateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogVariantUpdateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "variants": { "description": "Array of catalog variants to update.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantUpdateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "variants" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkUpdateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CatalogVariantUpdateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CatalogVariantUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CatalogVariantUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item variant.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item variant.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item variant.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item variant.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "inventory_policy": { "description": "This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.", "enum": [ 0, 1, 2 ], "example": 2, "nullable": true, "type": "integer" }, "inventory_quantity": { "description": "The quantity of the catalog item variant currently in stock.", "example": 25, "nullable": true, "type": "number" }, "price": { "description": "This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item variant is published.", "example": true, "nullable": true, "type": "boolean" }, "sku": { "description": "The SKU of the catalog item variant.", "example": "OBS-MD", "nullable": true, "type": "string" }, "title": { "description": "The title of the catalog item variant.", "example": "Ocean Blue Shirt (Sample) Variant Medium", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item variant on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "Channel": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ChannelProperties" }, "type": { "enum": [ "channel" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ChannelProperties": { "properties": { "channel": { "description": "Channel type enumeration.", "enum": [ "email", "sms" ], "type": "string" } }, "required": [ "channel" ], "type": "object" }, "ChannelSettings": { "properties": { "sms": { "$ref": "#/components/schemas/PhoneNumberConsentChannelSettings" }, "whatsapp": { "$ref": "#/components/schemas/PhoneNumberConsentChannelSettings" } }, "type": "object" }, "Checkboxes": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CheckboxesProperties" }, "styles": { "$ref": "#/components/schemas/CheckboxesStyles" }, "type": { "enum": [ "checkboxes" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "CheckboxesProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "options": { "items": { "$ref": "#/components/schemas/PropertyOption" }, "type": "array" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "property_name", "options" ], "type": "object" }, "CheckboxesStyles": { "properties": { "alignment": { "default": "left", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "left", "type": "string" }, "arrangement": { "default": "vertical", "description": "Arrangement enumeration.", "enum": [ "horizontal", "vertical" ], "example": "vertical", "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "CheckoutMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "checkout" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ClientBISSubscriptionCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ClientBISSubscriptionCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ClientBISSubscriptionCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "channels": { "description": "The channel(s) through which the profile would like to receive the back in stock notification. This can be leveraged within a back in stock flow to notify the subscriber through their preferred channel(s).", "example": [ "EMAIL", "SMS" ], "items": { "description": "The different channel types that a profile could subscribe to BIS notifications for", "enum": [ "EMAIL", "PUSH", "SMS", "WHATSAPP" ], "type": "string" }, "type": "array" }, "profile": { "example": { "data": { "attributes": { "email": "sarah.mason@klaviyo-demo.com", "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe", "id": "01GDDKASAP8TKDDA2GRZDSVP4H", "phone_number": "+15005550006" }, "type": "profile" } }, "properties": { "data": { "$ref": "#/components/schemas/ProfileIdentifierDTOResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "channels", "profile" ], "type": "object" }, "relationships": { "properties": { "variant": { "properties": { "data": { "properties": { "id": { "description": "The catalog variant ID for which the profile is subscribing to back in stock notifications. This ID is made up of the integration type, catalog ID, and and the external ID of the variant like so: `integrationType:::catalogId:::externalId`. If the integration you are using is not set up for multi-catalog storage, the 'catalogId' will be `$default`. For Shopify `$shopify:::$default:::33001893429341`", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "variant" ], "type": "object" }, "type": { "$ref": "#/components/schemas/BackInStockSubscriptionEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "ClientReviewResponseDTOObjectResource": { "properties": { "attributes": { "properties": { "author": { "description": "The author of this review", "example": "John D", "nullable": true, "type": "string" }, "content": { "description": "The content of this review", "example": "Great product! I love the smell. I will be buying again.", "nullable": true, "type": "string" }, "created": { "description": "The datetime when this review was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "images": { "description": "The list of images submitted with this review (represented as a list of urls). If there are no images, this field will be an empty list.", "example": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "items": { "type": "string" }, "type": "array" }, "product": { "$ref": "#/components/schemas/ReviewProductDTO", "description": "The product associated with this review", "nullable": true }, "public_reply": { "$ref": "#/components/schemas/ReviewPublicReply", "description": "The public reply to this review (if one exists)", "nullable": true }, "rating": { "description": "The rating of this review on a scale from 1-5. If the review type is \"question\", this field will be null.", "example": 2, "nullable": true, "type": "integer" }, "review_type": { "description": "The type of this review \u2014 either a review, question, or rating", "enum": [ "question", "rating", "review", "store" ], "example": "review", "type": "string" }, "smart_quote": { "description": "A quote from this review that summarizes the content", "example": "I love the smell", "nullable": true, "type": "string" }, "status": { "description": "The status of this review", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ReviewStatusRejected" }, { "$ref": "#/components/schemas/ReviewStatusFeatured" }, { "$ref": "#/components/schemas/ReviewStatusPublished" }, { "$ref": "#/components/schemas/ReviewStatusUnpublished" }, { "$ref": "#/components/schemas/ReviewStatusPending" } ] }, "title": { "description": "The title of this review", "example": "Smells great, would recommend", "nullable": true, "type": "string" }, "updated": { "description": "The datetime when this review was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "verified": { "description": "The verification status of this review (aka whether or not we have confirmation that the customer bought the product)", "example": true, "type": "boolean" } }, "required": [ "verified", "review_type", "created", "updated", "images" ], "type": "object" }, "id": { "description": "The ID of the review", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ReviewEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "Close": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CloseProperties", "nullable": true }, "submit": { "type": "boolean" }, "type": { "enum": [ "close" ], "type": "string" } }, "required": [ "submit", "type" ], "type": "object" }, "CloseButtonStyle": { "properties": { "background_color": { "default": "rgba(180, 187, 195, 0.65)", "example": "rgba(180, 187, 195, 0.65)", "type": "string" }, "color": { "default": "#FFFFFF", "example": "#FFFFFF", "type": "string" }, "margin": { "$ref": "#/components/schemas/Margin" }, "outline_color": { "default": "#FFFFFF", "example": "#FFFFFF", "type": "string" }, "size": { "default": 20, "example": 20, "type": "integer" }, "stroke": { "default": 2, "example": 2, "type": "number" } }, "type": "object" }, "CloseProperties": { "properties": { "list_id": { "nullable": true, "type": "string" } }, "type": "object" }, "CodeAction": { "properties": { "data": { "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "code" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CollectionLinks": { "properties": { "next": { "format": "uri", "type": "string" }, "prev": { "format": "uri", "type": "string" }, "self": { "format": "uri", "type": "string" } }, "required": [ "self" ], "type": "object" }, "ColumnData": { "maxProperties": 0, "type": "object" }, "ColumnStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "background_image": { "$ref": "#/components/schemas/BackgroundImage", "nullable": true } }, "type": "object" }, "ColumnV0": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "rows": { "items": { "$ref": "#/components/schemas/RowV0" }, "type": "array" }, "styles": { "$ref": "#/components/schemas/ColumnStyles", "nullable": true } }, "type": "object" }, "ColumnV1": { "properties": { "blocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV1" }, { "$ref": "#/components/schemas/CouponBlockV1" }, { "$ref": "#/components/schemas/DropShadowBlockV1" }, { "$ref": "#/components/schemas/HeaderBlockV1" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV1" }, { "$ref": "#/components/schemas/HTMLBlockV1" }, { "$ref": "#/components/schemas/ImageBlockV1" }, { "$ref": "#/components/schemas/ProductBlockV1" }, { "$ref": "#/components/schemas/ReviewBlockV1" }, { "$ref": "#/components/schemas/SocialBlockV1" }, { "$ref": "#/components/schemas/SpacerBlockV1" }, { "$ref": "#/components/schemas/SplitBlockV1" }, { "$ref": "#/components/schemas/TableBlockV1" }, { "$ref": "#/components/schemas/TextBlockV1" }, { "$ref": "#/components/schemas/VideoBlockV1" } ] }, "nullable": true, "type": "array" }, "data": { "$ref": "#/components/schemas/ColumnData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" } }, "type": "object" }, "ConditionGroup": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/SegmentsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/SegmentsProfileMetricFunnelCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "ConditionalBranchAction": { "properties": { "data": { "$ref": "#/components/schemas/ConditionalBranchActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/BooleanBranchLinks", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "conditional-split" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "ConditionalBranchActionData": { "properties": { "profile_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" } }, "required": [ "profile_filter" ], "type": "object" }, "ConstantContactIntegrationFilter": { "properties": { "operator": { "enum": [ "in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "enum": [ "constant_contact" ], "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ConstantContactIntegrationMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/ConstantContactIntegrationFilter" }, "method": { "enum": [ "integration" ], "type": "string" } }, "required": [ "field", "method", "filter" ], "type": "object" }, "ContactInformation": { "properties": { "default_sender_email": { "description": "This field is used to auto-populate the default sender email address on flow and campaign emails.", "example": "contact@klaviyo-demo.com", "type": "string" }, "default_sender_name": { "description": "This field is used to auto-populate the default sender name on flow and campaign emails.", "example": "Klaviyo Demo", "type": "string" }, "organization_name": { "example": "Klaviyo Demo", "type": "string" }, "street_address": { "$ref": "#/components/schemas/StreetAddress", "description": "Street address for your organization." }, "website_url": { "example": "https://www.klaviyo.com", "nullable": true, "type": "string" } }, "required": [ "default_sender_name", "default_sender_email", "organization_name", "street_address" ], "type": "object" }, "ContentExperimentAction": { "properties": { "data": { "properties": { "current_experiment": { "nullable": true, "properties": { "allocations": { "nullable": true, "type": "object" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "started": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "readOnly": true, "type": "string" }, "variations": { "items": { "oneOf": [ { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" } ] }, "type": "array" }, "winner_metric": { "description": "The metric to use to determine the winner of the content experiment\n action.", "enum": [ "click-rate", "open-rate" ], "nullable": true, "type": "string" } }, "required": [ "variations" ], "type": "object" }, "experiment_status": { "description": "Not allowed on create.", "enum": [ "completed", "draft", "live" ], "nullable": true, "type": "string" }, "main_action": { "oneOf": [ { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" } ] }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "main_action" ], "type": "object" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "content-experiment" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "ContentRepeatV0": { "properties": { "item_alias": { "type": "string" }, "repeat_for": { "type": "string" } }, "required": [ "repeat_for", "item_alias" ], "type": "object" }, "ContentRepeatV1": { "properties": { "item_alias": { "type": "string" }, "repeat_for": { "type": "string" } }, "required": [ "repeat_for", "item_alias" ], "type": "object" }, "ConversationEnum": { "enum": [ "conversation" ], "type": "string" }, "ConversationMessageCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ConversationMessageCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ConversationMessageCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "body": { "type": "string" } }, "required": [ "body" ], "type": "object" }, "relationships": { "properties": { "conversation": { "properties": { "data": { "properties": { "id": { "description": "Related Conversation", "type": "string" }, "type": { "$ref": "#/components/schemas/ConversationEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "conversation" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ConversationMessageEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "ConversationMessageEnum": { "enum": [ "conversation-message" ], "type": "string" }, "ConversationResponseObjectResource": { "properties": { "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "profile": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ConversationEnum" } }, "required": [ "type", "id", "links" ], "type": "object" }, "CountdownDelayAction": { "properties": { "data": { "$ref": "#/components/schemas/CountdownDelayActionData" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "countdown-delay" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "CountdownDelayActionData": { "properties": { "delay_until_time": { "format": "time", "nullable": true, "type": "string" }, "delay_until_weekdays": { "items": { "description": "Days of the week.", "enum": [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], "type": "string" }, "nullable": true, "type": "array" }, "timezone": { "default": "profile", "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile" ], "example": "profile", "type": "string" }, "unit": { "default": "days", "description": "Defined as FlowDateTrigger attributes in app.", "enum": [ "days", "months", "weeks" ], "example": "days", "type": "string" }, "value": { "default": 0, "type": "integer" } }, "type": "object" }, "CountdownTimer": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CountdownTimerProperties" }, "styles": { "$ref": "#/components/schemas/CountdownTimerStyles" }, "type": { "enum": [ "countdown_timer" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "CountdownTimerProperties": { "properties": { "animation": { "default": "heartbeat", "description": "Options for timer completion animations.", "enum": [ "flash", "heartbeat", "pulse" ], "example": "heartbeat", "nullable": true, "type": "string" }, "classname": { "nullable": true, "type": "string" }, "clock_face": { "default": "simple", "description": "Options for displaying a timer.", "enum": [ "flip", "simple" ], "example": "simple", "type": "string" }, "configuration": { "oneOf": [ { "$ref": "#/components/schemas/FixedTimerConfiguration" }, { "$ref": "#/components/schemas/VariableTimerConfiguration" } ] }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" } }, "required": [ "configuration" ], "type": "object" }, "CountdownTimerStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "card_color": { "default": "rgba(100,100,100, 1.0)", "example": "rgba(100,100,100, 1.0)", "type": "string" }, "label_font_size": { "default": 12, "example": 12, "type": "integer" }, "label_font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "type": "integer" }, "padding": { "$ref": "#/components/schemas/Padding" }, "text_styles": { "$ref": "#/components/schemas/TextStyleV0" } }, "type": "object" }, "Coupon": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/CouponProperties" }, "styles": { "$ref": "#/components/schemas/CouponStyles" }, "type": { "enum": [ "coupon" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "CouponBlockData": { "properties": { "content": { "type": "string" }, "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "$ref": "#/components/schemas/CouponBlockProperties" }, "styles": { "$ref": "#/components/schemas/CouponBlockStyles" } }, "required": [ "content", "properties", "display_options", "styles" ], "type": "object" }, "CouponBlockProperties": { "properties": { "coupon": { "nullable": true, "type": "string" }, "coupon_id": { "nullable": true, "type": "string" }, "header_enabled": { "nullable": true, "type": "boolean" }, "href": { "nullable": true, "type": "string" } }, "type": "object" }, "CouponBlockStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_color": { "nullable": true, "type": "string" }, "border_radius": { "nullable": true, "type": "integer" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "color": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "header_font_family": { "nullable": true, "type": "string" }, "header_font_size": { "nullable": true, "type": "integer" }, "header_padding_bottom": { "nullable": true, "type": "integer" }, "header_padding_left": { "nullable": true, "type": "integer" }, "header_padding_right": { "nullable": true, "type": "integer" }, "header_padding_top": { "nullable": true, "type": "integer" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "letter_spacing": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "stretch": { "nullable": true, "type": "boolean" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "CouponBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "coupon" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "CouponBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/CouponBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "coupon" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "CouponCodeBulkCreateJobEnum": { "enum": [ "coupon-code-bulk-create-job" ], "type": "string" }, "CouponCodeCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CouponCodeCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CouponCodeCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "coupon-codes": { "description": "Array of coupon codes to create.", "properties": { "data": { "items": { "$ref": "#/components/schemas/CouponCodeCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "coupon-codes" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CouponCodeCreateJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "coupon-codes": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created coupon codes.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CouponCodeCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CouponCodeCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CouponCodeCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "expires_at": { "description": "The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "unique_code": { "description": "This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.", "example": "ASD325FHK324UJDOI2M3JNES99", "type": "string" } }, "required": [ "unique_code" ], "type": "object" }, "relationships": { "properties": { "coupon": { "properties": { "data": { "properties": { "id": { "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "coupon" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "CouponCodeEnum": { "enum": [ "coupon-code" ], "type": "string" }, "CouponCodeResponseObjectResource": { "properties": { "attributes": { "properties": { "expires_at": { "description": "The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the coupon code.", "enum": [ "ASSIGNED_TO_PROFILE", "DELETING", "PROCESSING", "UNASSIGNED", "USED", "VERSION_NOT_ACTIVE" ], "example": "UNASSIGNED", "nullable": true, "type": "string" }, "unique_code": { "description": "This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.", "example": "ASD325FHK324UJDOI2M3JNES99", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "coupon": { "properties": { "data": { "properties": { "id": { "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profile": { "properties": { "data": { "properties": { "id": { "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CouponCodeUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CouponCodeUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CouponCodeUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "expires_at": { "description": "The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The API status of our coupon codes.", "enum": [ "ASSIGNED_TO_PROFILE", "DELETING", "PROCESSING", "UNASSIGNED", "USED", "VERSION_NOT_ACTIVE" ], "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CouponCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CouponCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CouponCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "description": { "description": "A description of the coupon.", "example": "10% off for purchases over $50", "nullable": true, "type": "string" }, "external_id": { "description": "This is the id that is stored in an integration such as Shopify or Magento.", "example": "10OFF", "type": "string" }, "monitor_configuration": { "description": "The monitor configuration for the coupon.", "example": { "low_balance_threshold": 500 }, "nullable": true, "type": "object" } }, "required": [ "external_id" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CouponEnum": { "enum": [ "coupon" ], "type": "string" }, "CouponProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "coupon": { "oneOf": [ { "$ref": "#/components/schemas/UniqueCouponConfig" }, { "$ref": "#/components/schemas/StaticCouponConfig" } ] }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "success_message": { "nullable": true, "type": "string" } }, "required": [ "coupon" ], "type": "object" }, "CouponResponseObjectResource": { "properties": { "attributes": { "properties": { "description": { "description": "A description of the coupon.", "example": "10% off for purchases over $50", "nullable": true, "type": "string" }, "external_id": { "description": "This is the id that is stored in an integration such as Shopify or Magento.", "example": "10OFF", "type": "string" }, "monitor_configuration": { "description": "The monitor configuration for the coupon.", "example": { "low_balance_threshold": 500 }, "nullable": true, "type": "object" } }, "required": [ "external_id" ], "type": "object" }, "id": { "description": "The internal id of a Coupon is equivalent to its external id stored within an integration.", "example": "10OFF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CouponStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "border_styles": { "$ref": "#/components/schemas/BorderStyle", "nullable": true }, "coupon_background_color": { "default": "#EEEEEE", "example": "#EEEEEE", "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" }, "text_styles": { "$ref": "#/components/schemas/TextStyleV0" } }, "type": "object" }, "CouponUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CouponUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CouponUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "description": { "description": "A description of the coupon.", "example": "10% off for purchases over $50", "nullable": true, "type": "string" }, "monitor_configuration": { "description": "The monitor configuration for the coupon.", "example": { "low_balance_threshold": 500 }, "nullable": true, "type": "object" } }, "type": "object" }, "id": { "description": "The internal id of a Coupon is equivalent to its external id stored within an integration.", "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CustomCss": { "properties": { "css": { "default": "", "type": "string" }, "enabled": { "default": false, "type": "boolean" } }, "type": "object" }, "CustomJavascript": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TriggerBaseProperties" }, "type": { "enum": [ "custom_javascript" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "CustomMetricCondition": { "properties": { "filter": { "oneOf": [ { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/StringInArrayFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListRegexOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListSubstringFilter" } ] }, "property": { "type": "string" } }, "required": [ "property", "filter" ], "type": "object" }, "CustomMetricCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CustomMetricCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CustomMetricCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/CustomMetricDefinition", "description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.", "example": { "aggregation_method": "value", "metric_groups": [ { "metric_filters": [ { "filter": { "operator": "starts-with", "type": "string", "value": "some_substring" }, "property": "my_string_property" }, { "filter": { "operator": "greater-than-or-equal", "type": "numeric", "value": 999 }, "property": "my_numeric_property" } ], "metric_id": "AAAAAA", "value_property": "$value" }, { "metric_filters": [ { "filter": { "operator": "equals", "type": "boolean", "value": false }, "property": "my_boolean_property" }, { "filter": { "operator": "contains", "type": "list", "value": "some_value_in_a_list" }, "property": "my_list_property" } ], "metric_id": "BBBBBB", "value_property": "my_numeric_property" } ] } }, "name": { "description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.", "example": "My custom metric", "type": "string" } }, "required": [ "name", "definition" ], "type": "object" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "CustomMetricDefinition": { "properties": { "aggregation_method": { "description": "Method of aggregation for custom metric measurements. If a metric has a `value` aggregation method, it will be treated as a revenue metric, such as a Placed Order metric. If a metric has a `count` aggregation method, it will only be able to report on conversions like an Active on Site metric.\n", "enum": [ "count", "value" ], "type": "string" }, "metric_groups": { "items": { "$ref": "#/components/schemas/CustomMetricGroup" }, "type": "array" } }, "required": [ "aggregation_method", "metric_groups" ], "type": "object" }, "CustomMetricEnum": { "enum": [ "custom-metric" ], "type": "string" }, "CustomMetricGroup": { "properties": { "metric_filters": { "description": "An optional array of objects for filtering on properties of the metric.", "items": { "$ref": "#/components/schemas/CustomMetricCondition" }, "nullable": true, "type": "array" }, "metric_id": { "description": "The ID of the metric that composes the custom metric.", "type": "string" }, "value_property": { "description": "\nIf the custom metric has a `value` aggregation method, the `value_property` of each `metric_group` of the `definition` should specify the property to calculate the conversion value. If null, the default `$value` property will be used.\n", "nullable": true, "type": "string" } }, "required": [ "metric_id" ], "type": "object" }, "CustomMetricPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/CustomMetricPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "CustomMetricPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/CustomMetricDefinition", "description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.", "example": { "aggregation_method": "value", "metric_groups": [ { "metric_filters": [ { "filter": { "operator": "starts-with", "type": "string", "value": "some_substring" }, "property": "my_string_property" }, { "filter": { "operator": "greater-than-or-equal", "type": "numeric", "value": 999 }, "property": "my_numeric_property" } ], "metric_id": "AAAAAA", "value_property": "$value" }, { "metric_filters": [ { "filter": { "operator": "equals", "type": "boolean", "value": false }, "property": "my_boolean_property" }, { "filter": { "operator": "contains", "type": "list", "value": "some_value_in_a_list" }, "property": "my_list_property" } ], "metric_id": "BBBBBB", "value_property": "my_numeric_property" } ] }, "nullable": true }, "name": { "description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.", "example": "My custom metric", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of the custom metric", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "CustomMetricResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this custom metric was created.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" }, "definition": { "$ref": "#/components/schemas/CustomMetricDefinition", "description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.", "example": { "aggregation_method": "value", "metric_groups": [ { "metric_filters": [ { "filter": { "operator": "starts-with", "type": "string", "value": "some_substring" }, "property": "my_string_property" }, { "filter": { "operator": "greater-than-or-equal", "type": "numeric", "value": 999 }, "property": "my_numeric_property" } ], "metric_id": "AAAAAA", "value_property": "$value" }, { "metric_filters": [ { "filter": { "operator": "equals", "type": "boolean", "value": false }, "property": "my_boolean_property" }, { "filter": { "operator": "contains", "type": "list", "value": "some_value_in_a_list" }, "property": "my_list_property" } ], "metric_id": "BBBBBB", "value_property": "my_numeric_property" } ] } }, "name": { "description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.", "example": "My custom metric", "type": "string" }, "updated": { "description": "The datetime when this custom metric was updated.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "definition" ], "type": "object" }, "id": { "description": "The ID of the custom metric", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "metrics": { "properties": { "data": { "items": { "properties": { "id": { "description": "Related metrics", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "CustomObjectDateTrigger": { "properties": { "custom_object_label": { "type": "string" }, "custom_object_property_id": { "type": "integer" }, "date_field_type": { "enum": [ "custom-object" ], "type": "string" }, "object_type_id": { "type": "string" }, "object_type_relationship_id": { "type": "string" }, "recurrence_frequency": { "default": "monthly", "description": "aka RepeatTypes in app and RepeatType in fender.", "enum": [ "annually", "monthly", "never", "weekly" ], "example": "monthly", "type": "string" }, "timedelta_unit_before_date": { "default": "weeks", "description": "See FlowDateTrigger.UNIT_CHOICES in app and CountdownUnit in fender.", "enum": [ "days", "months", "weeks" ], "example": "weeks", "type": "string" }, "timedelta_value_before_date": { "type": "integer" }, "timezone": { "default": "profile", "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile" ], "example": "profile", "type": "string" }, "trigger_days": { "items": { "description": "Days of the week.", "enum": [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], "type": "string" }, "nullable": true, "type": "array" }, "trigger_time": { "format": "time", "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "date_field_type", "custom_object_label", "custom_object_property_id", "object_type_id", "object_type_relationship_id", "timedelta_value_before_date", "trigger_time" ], "type": "object" }, "CustomObjectPropertyCondition": { "properties": { "custom_object_label": { "type": "string" }, "field": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "type": { "enum": [ "custom-object-property" ], "type": "string" } }, "required": [ "type", "custom_object_label", "field", "filter" ], "type": "object" }, "CustomObjectTriggerCondition": { "properties": { "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "property_id": { "type": "integer" }, "type": { "enum": [ "custom-object-trigger-property" ], "type": "string" } }, "required": [ "type", "property_id", "filter" ], "type": "object" }, "CustomQuestionDTO": { "properties": { "answers": { "description": "The answers to the custom question", "example": [ "M", "L" ], "items": { "type": "string" }, "type": "array" }, "id": { "description": "The ID of the custom question", "example": "9ff0d32e-0edb-4513-a6a5-12814a6cb755", "type": "string" } }, "required": [ "id", "answers" ], "type": "object" }, "CustomSourceFilter": { "properties": { "field": { "enum": [ "custom_source" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/EqualsStringFilter" } }, "required": [ "field", "filter" ], "type": "object" }, "CustomTimeframe": { "properties": { "end": { "description": "A datetime that represents the end of a custom time frame. Offset is ignored and the company timezone is used.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "start": { "description": "A datetime that represents the start of a custom time frame. Offset is ignored and the company timezone is used.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "start", "end" ], "type": "object" }, "CustomTrackingParamDTO": { "properties": { "campaign": { "description": "The value of the tracking parameter when applied to a campaign.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignTrackingSettingDynamicParam" }, { "$ref": "#/components/schemas/CampaignTrackingSettingStaticParam" } ] }, "flow": { "description": "The value of the tracking parameter when applied to a flow.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/FlowTrackingSettingDynamicParam" }, { "$ref": "#/components/schemas/FlowTrackingSettingStaticParam" } ] }, "name": { "description": "The name of the custom tracking parameter", "type": "string" } }, "required": [ "name" ], "type": "object" }, "DataPrivacyCreateDeletionJobQuery": { "properties": { "data": { "$ref": "#/components/schemas/DataPrivacyCreateDeletionJobQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "DataPrivacyCreateDeletionJobQueryResourceObject": { "properties": { "attributes": { "properties": { "profile": { "properties": { "data": { "$ref": "#/components/schemas/DataPrivacyProfileQueryResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profile" ], "type": "object" }, "type": { "$ref": "#/components/schemas/DataPrivacyDeletionJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataPrivacyDeletionJobEnum": { "enum": [ "data-privacy-deletion-job" ], "type": "string" }, "DataPrivacyProfileQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataSourceCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/DataSourceCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "DataSourceCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "description": { "default": "", "nullable": true, "type": "string" }, "namespace": { "default": "custom-objects", "description": "The namespace of the data source.", "example": "custom-objects", "nullable": true, "type": "string" }, "title": { "description": "The title of the data source. Must be between 1 and 255 characters and unique within the namespace.", "type": "string" }, "visibility": { "default": "private", "description": "Visibility of data source.", "enum": [ "private", "shared" ], "example": "private", "nullable": true, "type": "string" } }, "required": [ "title" ], "type": "object" }, "type": { "$ref": "#/components/schemas/DataSourceEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataSourceEnum": { "enum": [ "data-source" ], "type": "string" }, "DataSourceRecordBulkCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/DataSourceRecordBulkCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "DataSourceRecordBulkCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "data-source-records": { "description": "The records to ingest.", "example": { "data": [ { "attributes": { "record": { "key1": "value1", "key2": "value2" } }, "type": "data-source-record" } ] }, "nullable": true, "properties": { "data": { "items": { "$ref": "#/components/schemas/DataSourceRecordResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "type": "object" }, "relationships": { "properties": { "data-source": { "properties": { "data": { "properties": { "id": { "description": "The data source to which the records belong.", "example": "01J7C23V8XWMRG13FMD7VZN6GW", "type": "string" }, "type": { "$ref": "#/components/schemas/DataSourceEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/DataSourceRecordBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataSourceRecordBulkCreateJobEnum": { "enum": [ "data-source-record-bulk-create-job" ], "type": "string" }, "DataSourceRecordCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/DataSourceRecordCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "DataSourceRecordCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "data-source-record": { "description": "The records to ingest.", "example": { "data": { "attributes": { "record": { "key1": "value1", "key2": "value2" } }, "type": "data-source-record" } }, "properties": { "data": { "$ref": "#/components/schemas/DataSourceRecordResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "data-source-record" ], "type": "object" }, "relationships": { "properties": { "data-source": { "properties": { "data": { "properties": { "id": { "description": "The data source to which the records belong.", "example": "01J7C23V8XWMRG13FMD7VZN6GW", "type": "string" }, "type": { "$ref": "#/components/schemas/DataSourceEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/DataSourceRecordCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataSourceRecordCreateJobEnum": { "enum": [ "data-source-record-create-job" ], "type": "string" }, "DataSourceRecordEnum": { "enum": [ "data-source-record" ], "type": "string" }, "DataSourceRecordResourceObject": { "properties": { "attributes": { "properties": { "record": { "type": "object" } }, "required": [ "record" ], "type": "object" }, "type": { "$ref": "#/components/schemas/DataSourceRecordEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "DataSourceResponseObjectResource": { "properties": { "attributes": { "properties": { "description": { "description": "The description of the data source", "example": "This is a data source", "type": "string" }, "namespace": { "description": "The namespace of the data source", "example": "custom-objects", "type": "string" }, "title": { "description": "The title of the data source", "example": "My Data Source", "type": "string" }, "visibility": { "description": "The status of the data source", "enum": [ "private", "shared" ], "type": "string" } }, "required": [ "title", "visibility", "description", "namespace" ], "type": "object" }, "id": { "description": "The ID of the data source", "example": "01KH1D6P9Y8TJ7Q6MHXWZMPDN3", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/DataSourceEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "DataWarehouseImportMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "data_warehouse_import" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "Date": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/DateProperties" }, "styles": { "$ref": "#/components/schemas/DateStyles" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "DateProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "date_format": { "default": "MM/DD", "example": "MM/DD", "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "property_name" ], "type": "object" }, "DateStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "Delay": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/DelayProperties" }, "type": { "enum": [ "delay" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "DelayProperties": { "properties": { "seconds": { "default": 5, "example": 5, "type": "integer" } }, "type": "object" }, "Device": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/DeviceProperties" }, "type": { "enum": [ "device" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "DeviceMetadata": { "properties": { "app_build": { "description": "The build of the app that created the push token", "example": "1", "nullable": true, "type": "string" }, "app_id": { "description": "The ID of the app that created the push token", "example": "com.klaviyo.app", "nullable": true, "type": "string" }, "app_name": { "description": "The name of the app that created the push token", "example": "Klaviyo", "nullable": true, "type": "string" }, "app_version": { "description": "The version of the app that created the push token", "example": "1.0.0", "nullable": true, "type": "string" }, "device_id": { "description": "Relatively stable ID for the device. Will update on app uninstall and reinstall", "example": "1234567890", "nullable": true, "type": "string" }, "device_model": { "description": "The model of the device", "example": "iPhone12,1", "nullable": true, "type": "string" }, "environment": { "description": "The environment in which the push token was created", "enum": [ "debug", "release" ], "example": "release", "nullable": true, "type": "string" }, "klaviyo_sdk": { "description": "The name of the SDK used to create the push token.", "enum": [ "android", "flutter", "flutter_community", "react_native", "swift" ], "example": "swift", "nullable": true, "type": "string" }, "manufacturer": { "description": "The manufacturer of the device", "example": "Apple", "nullable": true, "type": "string" }, "os_name": { "description": "The name of the operating system on the device.", "enum": [ "android", "ios", "ipados", "macos", "tvos" ], "example": "ios", "nullable": true, "type": "string" }, "os_version": { "description": "The version of the operating system on the device", "example": "14.0", "nullable": true, "type": "string" }, "sdk_version": { "description": "The version of the SDK used to create the push token", "example": "1.0.0", "nullable": true, "type": "string" } }, "type": "object" }, "DeviceProperties": { "properties": { "device": { "default": "desktop", "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "example": "desktop", "type": "string" } }, "type": "object" }, "DisplayOptions": { "properties": { "content_repeat": { "$ref": "#/components/schemas/ContentRepeatV1", "nullable": true }, "layout_config": { "nullable": true, "type": "object" }, "layout_type": { "nullable": true, "type": "string" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "visibility": { "$ref": "#/components/schemas/Visibility", "nullable": true } }, "type": "object" }, "DoubleOptinFilter": { "properties": { "field": { "enum": [ "is_double_opt_in" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/BooleanFilter" } }, "required": [ "field", "filter" ], "type": "object" }, "DropShadow": { "properties": { "blur": { "default": 30, "example": 30, "type": "integer" }, "color": { "default": "rgba(0,0,0,0.15)", "example": "rgba(0,0,0,0.15)", "nullable": true, "type": "string" }, "enabled": { "default": false, "type": "boolean" } }, "type": "object" }, "DropShadowBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/DropShadowBlockStyles" } }, "required": [ "display_options", "styles" ], "type": "object" }, "DropShadowBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "shadow_color": { "description": "Shadow color.", "enum": [ "dark", "light", "medium" ], "nullable": true, "type": "string" } }, "type": "object" }, "DropShadowBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "drop_shadow" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "DropShadowBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/DropShadowBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "drop_shadow" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "Dropdown": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/DropdownProperties" }, "styles": { "$ref": "#/components/schemas/DropdownStyles" }, "type": { "enum": [ "dropdown" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "DropdownProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "options": { "items": { "$ref": "#/components/schemas/PropertyOption" }, "type": "array" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "property_name", "options" ], "type": "object" }, "DropdownStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "DynamicButton": { "properties": { "data": { "$ref": "#/components/schemas/BackInStockDynamicButtonData" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "type": { "description": "Dynamic Button type enumeration.", "enum": [ "BACK_IN_STOCK_OPEN" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "DynamicImageBlockProperties": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "dynamic": { "enum": [ true ], "type": "boolean" }, "href": { "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "DynamicProductBlockProperties": { "properties": { "button_text": { "nullable": true, "type": "string" }, "dynamic": { "enum": [ true ], "type": "boolean" }, "feed": { "nullable": true, "type": "string" }, "feed_offset": { "nullable": true, "type": "integer" }, "is_ai_generated": { "nullable": true, "type": "boolean" }, "is_nbp": { "nullable": true, "type": "boolean" }, "is_prebuilt_content": { "nullable": true, "type": "boolean" }, "item_subtype_id": { "nullable": true, "type": "integer" }, "show_button": { "nullable": true, "type": "boolean" }, "show_original_price": { "nullable": true, "type": "boolean" }, "show_price": { "nullable": true, "type": "boolean" }, "show_rating": { "nullable": true, "type": "boolean" }, "show_rating_count": { "nullable": true, "type": "boolean" }, "show_title": { "nullable": true, "type": "boolean" }, "show_title_links": { "nullable": true, "type": "boolean" }, "title_placeholder": { "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "DynamicReviewBlockProperties": { "properties": { "author_placeholder": { "nullable": true, "type": "string" }, "dynamic": { "enum": [ true ], "type": "boolean" }, "fallback_content_type": { "description": "Review block fallback content type.", "enum": [ "full", "quote" ], "nullable": true, "type": "string" }, "fallback_options": { "description": "Review block fallback options for dynamic selection.", "enum": [ "high-quality-review", "high-quality-review-or-static", "no-review", "recent", "static-only" ], "nullable": true, "type": "string" }, "fallback_review_id": { "nullable": true, "type": "string" }, "product_event_variable": { "nullable": true, "type": "string" }, "product_id": { "nullable": true, "type": "string" }, "product_name_placeholder": { "nullable": true, "type": "string" }, "product_selection_mode": { "description": "Review block product selection mode.", "enum": [ "automatic", "manual" ], "nullable": true, "type": "string" }, "product_variant_name_placeholder": { "nullable": true, "type": "string" }, "quote_placeholder": { "nullable": true, "type": "string" }, "show_product_name": { "nullable": true, "type": "boolean" }, "show_rating": { "nullable": true, "type": "boolean" }, "show_reviewer_name": { "nullable": true, "type": "boolean" }, "show_variant_name": { "nullable": true, "type": "boolean" }, "show_verified_badge": { "nullable": true, "type": "boolean" }, "verified_badge_language": { "description": "Review block verified badge language.", "enum": [ "dutch", "english", "french", "german", "hungarian", "italian", "japanese", "korean", "portuguese", "spanish" ], "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "DynamicTableBlockProperties": { "properties": { "dynamic": { "enum": [ true ], "type": "boolean" }, "num_columns": { "nullable": true, "type": "integer" }, "row_content_repeat": { "$ref": "#/components/schemas/ContentRepeatV1", "nullable": true }, "show_fallback_content": { "nullable": true, "type": "boolean" }, "show_headers": { "nullable": true, "type": "boolean" }, "show_static_row": { "nullable": true, "type": "boolean" } }, "required": [ "dynamic" ], "type": "object" }, "DynamicTrackingParam": { "properties": { "name": { "description": "Name of the tracking param", "example": "utm_medium", "type": "string" }, "type": { "description": "The type of the tracking parameter", "enum": [ "dynamic" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "enum": [ "campaign_id", "campaign_name", "campaign_name_id", "campaign_name_send_day", "email_subject", "group_id", "group_name", "group_name_id", "link_alt_text", "message_type", "profile_external_id", "profile_id" ], "type": "string" } }, "required": [ "type", "value", "name" ], "type": "object" }, "EffectiveDateFilter": { "properties": { "field": { "enum": [ "effective_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "Email": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/EmailProperties" }, "styles": { "$ref": "#/components/schemas/EmailStyles" }, "type": { "enum": [ "email" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "EmailChannel": { "properties": { "marketing": { "$ref": "#/components/schemas/EmailMarketing", "description": "The email marketing subscription.", "nullable": true } }, "type": "object" }, "EmailContent": { "properties": { "bcc_email": { "description": "Optional BCC email address", "example": "bcc@my-company.com", "nullable": true, "type": "string" }, "cc_email": { "description": "Optional CC email address", "example": "cc@my-company.com", "nullable": true, "type": "string" }, "from_email": { "description": "The email the message should be sent from", "example": "store@my-company.com", "nullable": true, "type": "string" }, "from_label": { "description": "The label associated with the from_email", "example": "My Company", "nullable": true, "type": "string" }, "preview_text": { "description": "Preview text associated with the message", "example": "My preview text", "nullable": true, "type": "string" }, "reply_to_email": { "description": "Optional Reply-To email address", "example": "reply-to@my-company.com", "nullable": true, "type": "string" }, "subject": { "description": "The subject of the message", "example": "Buy our product!", "nullable": true, "type": "string" } }, "type": "object" }, "EmailContentSubObject": { "properties": { "bcc_email": { "description": "Optional BCC email address", "example": "bcc@my-company.com", "nullable": true, "type": "string" }, "cc_email": { "description": "Optional CC email address", "example": "cc@my-company.com", "nullable": true, "type": "string" }, "from_email": { "description": "The email the message should be sent from", "example": "store@my-company.com", "nullable": true, "type": "string" }, "from_label": { "description": "The label associated with the from_email", "example": "My Company", "nullable": true, "type": "string" }, "preview_text": { "description": "Preview text associated with the message", "example": "My preview text", "nullable": true, "type": "string" }, "reply_to_email": { "description": "Optional Reply-To email address", "example": "reply-to@my-company.com", "nullable": true, "type": "string" }, "subject": { "description": "The subject of the message", "example": "Buy our product!", "nullable": true, "type": "string" } }, "type": "object" }, "EmailMarketing": { "properties": { "can_receive_email_marketing": { "description": "Whether or not this profile has implicit consent to receive email marketing. True if it does profile does not have any global suppressions.", "type": "boolean" }, "consent": { "description": "The consent status for email marketing.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for email marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_method_detail": { "description": "Additional detail provided by the caller when the profile was subscribed. This may be empty if no details were provided.", "example": "marketing drive", "nullable": true, "type": "string" }, "double_optin": { "description": "Whether the profile was subscribed to email marketing using a double opt-in.", "example": true, "nullable": true, "type": "boolean" }, "last_updated": { "description": "The timestamp when a field on the email marketing object was last modified.", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "list_suppressions": { "description": "The list suppressions for this profile.", "items": { "$ref": "#/components/schemas/EmailMarketingListSuppression" }, "nullable": true, "type": "array" }, "method": { "description": "The method by which the profile was subscribed to email marketing.", "example": "PREFERENCE_PAGE", "nullable": true, "type": "string" }, "method_detail": { "default": "", "description": "Additional details about the method by which the profile was subscribed to email marketing. This may be empty if no details were provided.", "example": "mydomain.com/signup", "nullable": true, "type": "string" }, "suppression": { "description": "The global email marketing suppression for this profile.", "items": { "$ref": "#/components/schemas/EmailMarketingSuppression" }, "nullable": true, "type": "array" } }, "required": [ "can_receive_email_marketing", "consent" ], "type": "object" }, "EmailMarketingListSuppression": { "properties": { "list_id": { "description": "The ID of list to which the suppression applies.", "example": "Y6nRLr", "type": "string" }, "reason": { "description": "The reason the profile was suppressed from the list.", "example": "USER_SUPPRESSED", "type": "string" }, "timestamp": { "description": "The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "type": "string" } }, "required": [ "list_id", "reason", "timestamp" ], "type": "object" }, "EmailMarketingSuppression": { "properties": { "reason": { "description": "The reason the profile was suppressed.", "enum": [ "HARD_BOUNCE", "INVALID_EMAIL", "SPAM_COMPLAINT", "UNSUBSCRIBE", "USER_SUPPRESSED" ], "example": "HARD_BOUNCE", "type": "string" }, "timestamp": { "description": "The timestamp when the profile was suppressed, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "type": "string" } }, "required": [ "reason", "timestamp" ], "type": "object" }, "EmailMessageDefinition": { "properties": { "channel": { "enum": [ "email" ], "type": "string" }, "content": { "$ref": "#/components/schemas/EmailContent", "description": "Additional attributes relating to the content of the message", "nullable": true }, "label": { "description": "The label or name on the message", "example": "My message name", "nullable": true, "type": "string" } }, "required": [ "channel" ], "type": "object" }, "EmailProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "default": "$email", "enum": [ "$email" ], "example": "$email", "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "type": "object" }, "EmailSendOptions": { "properties": { "use_smart_sending": { "default": true, "description": "Use smart sending.", "example": true, "nullable": true, "type": "boolean" } }, "type": "object" }, "EmailStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "EmailSubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to on the \"EMAIL\" Channel. Currently supports \"MARKETING\"." } }, "required": [ "marketing" ], "type": "object" }, "EmailUnsubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from marketing on the \"EMAIL\" channel." } }, "required": [ "marketing" ], "type": "object" }, "EncodedFormResponseObjectResource": { "properties": { "attributes": { "properties": { "ab_test": { "description": "Whether the form has an A/B test configured.", "type": "boolean" }, "created_at": { "description": "The ISO8601 timestamp when the form was created.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" }, "definition": { "$ref": "#/components/schemas/FormDefinition", "description": "The encoded form definition." }, "name": { "description": "The name of the form.", "example": "Cyber Monday Deals", "type": "string" }, "status": { "description": "The status of the form.", "enum": [ "draft", "live" ], "example": "draft", "type": "string" }, "updated_at": { "description": "The ISO8601 timestamp when the form was last updated.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "status", "ab_test", "name", "definition", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "The ID of the form", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "EqualsStringFilter": { "properties": { "operator": { "enum": [ "equals" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "nullable": true, "type": "string" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ErrorMessages": { "properties": { "invalid": { "default": "This field is invalid", "example": "This field is invalid", "type": "string" }, "required": { "default": "This field is required", "example": "This field is required", "type": "string" } }, "type": "object" }, "ErrorSource": { "properties": { "pointer": { "default": "/data", "description": "A pointer to the source of the error in the request payload.", "example": "/data", "nullable": true, "type": "string" } }, "type": "object" }, "EventBulkCreateEnum": { "enum": [ "event-bulk-create" ], "type": "string" }, "EventBulkCreateJobEnum": { "enum": [ "event-bulk-create-job" ], "type": "string" }, "EventCreateQueryV2": { "properties": { "data": { "$ref": "#/components/schemas/EventCreateQueryV2ResourceObject" } }, "required": [ "data" ], "type": "object" }, "EventCreateQueryV2ResourceObject": { "properties": { "attributes": { "properties": { "backfill": { "default": false, "description": "When true, the event is recorded but does NOT trigger flows. Use this when backfilling\nhistorical events so existing flow definitions do not re-fire on events that already\nfired in the past.", "nullable": true, "type": "boolean" }, "metric": { "properties": { "data": { "$ref": "#/components/schemas/MetricCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "profile": { "properties": { "data": { "$ref": "#/components/schemas/EventProfileCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "properties": { "description": "Properties of this event (must not exceed 400 properties). The size of the event payload must not exceed 5 MB,\nand each string cannot be larger than 100 KB. For a full list of data limits on event payloads,\nsee [Limitations](https://developers.klaviyo.com/en/reference/events_api_overview#limitations).\n\nNote any top-level property that is not an object can be\nused to create segments. The `$extra` property records any\nnon-segmentable values that can be referenced later, e.g., HTML templates are\nuseful on a segment but are not used to create a segment.", "example": { "Brand": "Kids Book", "ProductID": 1111, "ProductName": "Winnie the Pooh" }, "type": "object" }, "time": { "description": "When this event occurred. By default, the time the request was received will be used.\nThe time is truncated to the second. The time must be after the year 2000 and can only\nbe up to 1 year in the future.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "unique_id": { "description": "A unique identifier for an event. If the unique_id is repeated for the same\nprofile and metric, only the first processed event will be recorded. If this is not\npresent, this will use the time to the second. Using the default, this limits only one\nevent per profile per second.", "nullable": true, "type": "string" }, "value": { "description": "A numeric, monetary value to associate with this event. For example, the dollar amount of a purchase.", "example": 9.99, "nullable": true, "type": "number" }, "value_currency": { "description": "The ISO 4217 currency code of the value associated with the event.", "example": "USD", "nullable": true, "type": "string" } }, "required": [ "properties", "metric", "profile" ], "type": "object" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "EventEnum": { "enum": [ "event" ], "type": "string" }, "EventProfileCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "_kx": { "description": "Also known as the `exchange_id`, this is an encrypted identifier used for identifying a\nprofile by Klaviyo's web tracking.\n\nYou can use this field as a filter when retrieving profiles via the Get Profiles endpoint.", "nullable": true, "type": "string" }, "anonymous_id": { "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "meta": { "$ref": "#/components/schemas/OnsiteProfileMeta", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "EventResponseObjectResource": { "properties": { "attributes": { "properties": { "datetime": { "description": "Event timestamp in ISO8601 format (YYYY-MM-DDTHH:MM:SS+hh:mm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" }, "event_properties": { "description": "Event properties, can include identifiers and extra properties", "nullable": true, "type": "object" }, "timestamp": { "description": "Event timestamp in seconds", "nullable": true, "type": "integer" }, "uuid": { "description": "A unique identifier for the event, this can be used as a cursor in pagination", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The Event ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "attributions": { "properties": { "data": { "items": { "properties": { "id": { "description": "Attributions for this event", "type": "string" }, "type": { "$ref": "#/components/schemas/AttributionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "metric": { "properties": { "data": { "properties": { "id": { "description": "The Metric ID", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profile": { "properties": { "data": { "properties": { "id": { "description": "Profile ID of the associated profile, if available", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "EventsBulkCreateJob": { "properties": { "data": { "$ref": "#/components/schemas/EventsBulkCreateJobResourceObject" } }, "required": [ "data" ], "type": "object" }, "EventsBulkCreateJobResourceObject": { "properties": { "attributes": { "properties": { "events-bulk-create": { "properties": { "data": { "items": { "$ref": "#/components/schemas/EventsBulkCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "events-bulk-create" ], "type": "object" }, "type": { "$ref": "#/components/schemas/EventBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "EventsBulkCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/EventsBulkCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "EventsBulkCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "backfill": { "default": false, "description": "When true, the event is recorded but does NOT trigger flows. Use this when backfilling\nhistorical events so existing flow definitions do not re-fire on events that already\nfired in the past.", "nullable": true, "type": "boolean" }, "events": { "properties": { "data": { "items": { "$ref": "#/components/schemas/BaseEventCreateQueryBulkEntryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "profile": { "properties": { "data": { "$ref": "#/components/schemas/OnsiteProfileCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profile", "events" ], "type": "object" }, "type": { "$ref": "#/components/schemas/EventBulkCreateEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ExistenceOperatorExistenceFilter": { "properties": { "operator": { "description": "Operators for existence filters.", "enum": [ "is-set", "not-set" ], "type": "string" }, "type": { "enum": [ "existence" ], "type": "string" } }, "required": [ "type", "operator" ], "type": "object" }, "ExitIntent": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TriggerBaseProperties" }, "type": { "enum": [ "exit_intent" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "ExplicitlyReachable": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/EffectiveDateFilter" }, { "$ref": "#/components/schemas/RecordedDateFilter" }, { "$ref": "#/components/schemas/MethodFilter" }, { "$ref": "#/components/schemas/FormSubscribeFilter" } ] }, "type": "array" }, "reachable_status": { "enum": [ "explicitly_reachable" ], "type": "string" } }, "required": [ "reachable_status", "filters" ], "type": "object" }, "ExplicitlyUnreachable": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/EffectiveDateFilter" }, { "$ref": "#/components/schemas/RecordedDateFilter" }, { "$ref": "#/components/schemas/MethodFilter" }, { "$ref": "#/components/schemas/FormSubscribeFilter" } ] }, "type": "array" }, "reachable_status": { "enum": [ "explicitly_unreachable" ], "type": "string" } }, "required": [ "reachable_status", "filters" ], "type": "object" }, "FailedAgeGateMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "failed_age_gate" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "FixedTimerConfiguration": { "properties": { "end_time": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "timezone": { "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Asmera", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Timbuktu", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/ComodRivadavia", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Atka", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Buenos_Aires", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Catamarca", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Coral_Harbour", "America/Cordoba", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Ensenada", "America/Fort_Nelson", "America/Fort_Wayne", "America/Fortaleza", "America/Glace_Bay", "America/Godthab", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Indianapolis", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Jujuy", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Knox_IN", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Louisville", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Mendoza", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montreal", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nipigon", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Pangnirtung", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Acre", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rainy_River", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Rosario", "America/Santa_Isabel", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Shiprock", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Thunder_Bay", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Virgin", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "America/Yellowknife", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/South_Pole", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Ashkhabad", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Calcutta", "Asia/Chita", "Asia/Choibalsan", "Asia/Chongqing", "Asia/Chungking", "Asia/Colombo", "Asia/Dacca", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Harbin", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Istanbul", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kashgar", "Asia/Kathmandu", "Asia/Katmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macao", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Rangoon", "Asia/Riyadh", "Asia/Saigon", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Tel_Aviv", "Asia/Thimbu", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ujung_Pandang", "Asia/Ulaanbaatar", "Asia/Ulan_Bator", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faeroe", "Atlantic/Faroe", "Atlantic/Jan_Mayen", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/ACT", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Canberra", "Australia/Currie", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/LHI", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/NSW", "Australia/North", "Australia/Perth", "Australia/Queensland", "Australia/South", "Australia/Sydney", "Australia/Tasmania", "Australia/Victoria", "Australia/West", "Australia/Yancowinna", "Brazil/Acre", "Brazil/DeNoronha", "Brazil/East", "Brazil/West", "CET", "CST6CDT", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Canada/Saskatchewan", "Canada/Yukon", "Chile/Continental", "Chile/EasterIsland", "Cuba", "EET", "EST", "EST5EDT", "Egypt", "Eire", "Etc/GMT", "Etc/GMT+0", "Etc/GMT+1", "Etc/GMT+10", "Etc/GMT+11", "Etc/GMT+12", "Etc/GMT+2", "Etc/GMT+3", "Etc/GMT+4", "Etc/GMT+5", "Etc/GMT+6", "Etc/GMT+7", "Etc/GMT+8", "Etc/GMT+9", "Etc/GMT-0", "Etc/GMT-1", "Etc/GMT-10", "Etc/GMT-11", "Etc/GMT-12", "Etc/GMT-13", "Etc/GMT-14", "Etc/GMT-2", "Etc/GMT-3", "Etc/GMT-4", "Etc/GMT-5", "Etc/GMT-6", "Etc/GMT-7", "Etc/GMT-8", "Etc/GMT-9", "Etc/GMT0", "Etc/Greenwich", "Etc/UCT", "Etc/UTC", "Etc/Universal", "Etc/Zulu", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belfast", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kiev", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Nicosia", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Tiraspol", "Europe/Ulyanovsk", "Europe/Uzhgorod", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zaporozhye", "Europe/Zurich", "GB", "GB-Eire", "GMT", "GMT+0", "GMT-0", "GMT0", "Greenwich", "HST", "Hongkong", "Iceland", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Iran", "Israel", "Jamaica", "Japan", "Kwajalein", "Libya", "MET", "MST", "MST7MDT", "Mexico/BajaNorte", "Mexico/BajaSur", "Mexico/General", "NZ", "NZ-CHAT", "Navajo", "PRC", "PST8PDT", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Enderbury", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Johnston", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Ponape", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Samoa", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Truk", "Pacific/Wake", "Pacific/Wallis", "Pacific/Yap", "Poland", "Portugal", "ROC", "ROK", "Singapore", "Turkey", "UCT", "US/Alaska", "US/Aleutian", "US/Arizona", "US/Central", "US/East-Indiana", "US/Eastern", "US/Hawaii", "US/Indiana-Starke", "US/Michigan", "US/Mountain", "US/Pacific", "US/Samoa", "UTC", "Universal", "W-SU", "WET", "Zulu" ], "type": "string" }, "type": { "enum": [ "fixed" ], "type": "string" } }, "required": [ "type", "timezone" ], "type": "object" }, "FlowActionEncodedResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "description": "The encoded flow action definition.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ActionOutputSplitAction" }, { "$ref": "#/components/schemas/BackInStockDelayAction" }, { "$ref": "#/components/schemas/ConditionalBranchAction" }, { "$ref": "#/components/schemas/ContentExperimentAction" }, { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendSmsAction" }, { "$ref": "#/components/schemas/SendWebhookAction" }, { "$ref": "#/components/schemas/SendInternalAlertAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" }, { "$ref": "#/components/schemas/TimeDelayAction" }, { "$ref": "#/components/schemas/TriggerBranchAction" }, { "$ref": "#/components/schemas/UpdateProfileAction" }, { "$ref": "#/components/schemas/TargetDateAction" }, { "$ref": "#/components/schemas/CountdownDelayAction" }, { "$ref": "#/components/schemas/AbTestAction" }, { "$ref": "#/components/schemas/InternalServiceAction" }, { "$ref": "#/components/schemas/CodeAction" }, { "$ref": "#/components/schemas/MultiBranchSplitAction" }, { "$ref": "#/components/schemas/ListUpdateAction" } ] }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flow-messages": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "FlowActionEnum": { "enum": [ "flow-action" ], "type": "string" }, "FlowActionUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/FlowActionUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "FlowActionUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "description": "The encoded flow action definition.", "oneOf": [ { "$ref": "#/components/schemas/ActionOutputSplitAction" }, { "$ref": "#/components/schemas/BackInStockDelayAction" }, { "$ref": "#/components/schemas/ConditionalBranchAction" }, { "$ref": "#/components/schemas/ContentExperimentAction" }, { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendSmsAction" }, { "$ref": "#/components/schemas/SendWebhookAction" }, { "$ref": "#/components/schemas/SendInternalAlertAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" }, { "$ref": "#/components/schemas/TimeDelayAction" }, { "$ref": "#/components/schemas/TriggerBranchAction" }, { "$ref": "#/components/schemas/UpdateProfileAction" }, { "$ref": "#/components/schemas/TargetDateAction" }, { "$ref": "#/components/schemas/CountdownDelayAction" }, { "$ref": "#/components/schemas/AbTestAction" }, { "$ref": "#/components/schemas/InternalServiceAction" }, { "$ref": "#/components/schemas/CodeAction" }, { "$ref": "#/components/schemas/MultiBranchSplitAction" }, { "$ref": "#/components/schemas/ListUpdateAction" } ] } }, "required": [ "definition" ], "type": "object" }, "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "FlowCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/FlowCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "FlowCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/FlowDefinition", "description": "The encoded flow definition. New objects that do not yet exist, such as actions, need to use a `temporary_id`, not an `id`." }, "name": { "description": "The name of the Flow", "example": "Welcome Flow", "type": "string" } }, "required": [ "name", "definition" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FlowDefinition": { "properties": { "actions": { "description": "A list of actions that make up the flow. Actions are linked to each other by their ids.", "items": { "oneOf": [ { "$ref": "#/components/schemas/ActionOutputSplitAction" }, { "$ref": "#/components/schemas/BackInStockDelayAction" }, { "$ref": "#/components/schemas/ConditionalBranchAction" }, { "$ref": "#/components/schemas/ContentExperimentAction" }, { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendSmsAction" }, { "$ref": "#/components/schemas/SendWebhookAction" }, { "$ref": "#/components/schemas/SendInternalAlertAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" }, { "$ref": "#/components/schemas/TimeDelayAction" }, { "$ref": "#/components/schemas/TriggerBranchAction" }, { "$ref": "#/components/schemas/UpdateProfileAction" }, { "$ref": "#/components/schemas/TargetDateAction" }, { "$ref": "#/components/schemas/CountdownDelayAction" }, { "$ref": "#/components/schemas/AbTestAction" }, { "$ref": "#/components/schemas/InternalServiceAction" }, { "$ref": "#/components/schemas/CodeAction" }, { "$ref": "#/components/schemas/MultiBranchSplitAction" }, { "$ref": "#/components/schemas/ListUpdateAction" } ] }, "type": "array" }, "entry_action_id": { "description": "The ID of the action that is the entry point of the flow.", "example": "123", "nullable": true, "type": "string" }, "profile_filter": { "description": "Filters for users entering the flow. These filters are used on every action in the flow.", "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/ProfileNotInFlowCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "reentry_criteria": { "$ref": "#/components/schemas/ReentryCriteria", "description": "Controls when a customer can re-enter the flow. If unit is 'alltime', a duration of 1 means no re-entry, while a duration of 0 means re-entry is allowed.", "nullable": true }, "triggers": { "description": "Corresponds to the object which triggers the flow. Only one trigger is supported.", "items": { "oneOf": [ { "$ref": "#/components/schemas/ListTrigger" }, { "$ref": "#/components/schemas/SegmentTrigger" }, { "$ref": "#/components/schemas/MetricTrigger" }, { "$ref": "#/components/schemas/ProfilePropertyDateTrigger" }, { "$ref": "#/components/schemas/CustomObjectDateTrigger" }, { "$ref": "#/components/schemas/PriceDropTrigger" }, { "$ref": "#/components/schemas/LowInventoryTrigger" } ] }, "type": "array" } }, "required": [ "triggers", "actions", "entry_action_id" ], "type": "object" }, "FlowEmail": { "properties": { "add_tracking_params": { "default": false, "type": "boolean" }, "additional_filters": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/ProfileHasNotReceivedEmailMessageCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "bcc_email": { "nullable": true, "type": "string" }, "cc_email": { "nullable": true, "type": "string" }, "custom_tracking_params": { "items": { "$ref": "#/components/schemas/UtmParam" }, "nullable": true, "type": "array" }, "from_email": { "nullable": true, "type": "string" }, "from_label": { "nullable": true, "type": "string" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "preview_text": { "nullable": true, "type": "string" }, "reply_to_email": { "nullable": true, "type": "string" }, "smart_sending_enabled": { "default": true, "example": true, "type": "boolean" }, "subject_line": { "nullable": true, "type": "string" }, "template_id": { "nullable": true, "type": "string" }, "transactional": { "default": false, "type": "boolean" } }, "type": "object" }, "FlowEnum": { "enum": [ "flow" ], "type": "string" }, "FlowInternalAlert": { "properties": { "from_email": { "nullable": true, "type": "string" }, "from_label": { "nullable": true, "type": "string" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "subject_line": { "nullable": true, "type": "string" }, "template_id": { "nullable": true, "type": "string" }, "to_emails": { "items": { "type": "string" }, "type": "array" } }, "required": [ "from_email", "from_label", "to_emails", "subject_line" ], "type": "object" }, "FlowMessageEncodedResponseObjectResource": { "properties": { "attributes": { "properties": { "channel": { "nullable": true, "type": "string" }, "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "description": "The encoded flow message definition.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/FlowEmail" }, { "$ref": "#/components/schemas/FlowInternalAlert" }, { "$ref": "#/components/schemas/FlowPushNotification" }, { "$ref": "#/components/schemas/FlowSms" }, { "$ref": "#/components/schemas/FlowWebhook" }, { "$ref": "#/components/schemas/FlowWhatsApp" } ] }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-action": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "template": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "FlowMessageEnum": { "enum": [ "flow-message" ], "type": "string" }, "FlowPushNotification": { "properties": { "action_buttons": { "items": { "$ref": "#/components/schemas/PushActionButton" }, "nullable": true, "type": "array" }, "additional_filters": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/ProfileHasNotReceivedPushMessageCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "android_link": { "nullable": true, "type": "string" }, "badge": { "default": false, "type": "boolean" }, "badge_options": { "oneOf": [ { "$ref": "#/components/schemas/Increment" }, { "$ref": "#/components/schemas/StaticCount" }, { "$ref": "#/components/schemas/Property" } ] }, "body": { "type": "string" }, "conversion_metric_id": { "nullable": true, "type": "string" }, "dynamic_image": { "description": "A dynamic image asset to include in the push notification.", "example": "{{ event.items.0.url }}", "nullable": true, "type": "string" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "image_id": { "description": "The id of an ImageAsset. If provided, this will take precedence over a dynamic_image.", "example": "123", "nullable": true, "type": "string" }, "ios_link": { "nullable": true, "type": "string" }, "kv_pairs": { "nullable": true, "type": "object" }, "name": { "nullable": true, "type": "string" }, "on_open": { "default": "home", "description": "See PushLinkAction in app.\n\nThis is not a flow action, but the literal action that should be\n taken when the push notification is tapped.", "enum": [ "home", "link", "open_url" ], "example": "home", "type": "string" }, "push_type": { "description": "The type of push notification to send.", "enum": [ "silent", "standard" ], "nullable": true, "type": "string" }, "smart_sending_enabled": { "default": true, "example": true, "type": "boolean" }, "sound": { "default": false, "type": "boolean" }, "title": { "nullable": true, "type": "string" }, "video_asset_id": { "description": "The ULID of a video asset. If provided, videos and images are mutually exclusive.", "example": "01ARZ3NDEKTSV4RRFFQ69G5FAV", "nullable": true, "type": "string" }, "web_url": { "nullable": true, "type": "string" } }, "required": [ "body" ], "type": "object" }, "FlowResponseObjectResource": { "properties": { "attributes": { "properties": { "archived": { "nullable": true, "type": "boolean" }, "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "status": { "nullable": true, "type": "string" }, "trigger_type": { "description": "Corresponds to the object which triggered the flow.", "enum": [ "Added to List", "Date Based", "Low Inventory", "Metric", "Price Drop", "Unconfigured" ], "nullable": true, "type": "string" }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-actions": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "FlowSeriesReportEnum": { "enum": [ "flow-series-report" ], "type": "string" }, "FlowSeriesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/FlowSeriesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "FlowSeriesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "conversion_metric_id": { "description": "ID of the metric to be used for conversion statistics", "example": "RESQ6t", "type": "string" }, "filter": { "description": "API filter string used to filter the query.\nScalar attributes (flow_id, flow_name, send_channel, flow_message_id, flow_message_name, text_message_format, variation, variation_name): Supported operators: equals, contains-any.\nList attributes (tag_id, tag_name): Supported operators: contains-any, contains-all.\nOnly one filter can be used per attribute.\nOnly AND can be used as a combination operator.\nMax of 100 items per list filter.\nWhen filtering on send_channel, allowed values are email, sms, push-notification, whatsapp.", "example": "and(equals(flow_id,\"abc123\"),contains-any(send_channel,[\"email\",\"sms\"]))", "nullable": true, "type": "string" }, "group_by": { "description": "List of attributes to group the data by.\nAllowed group-bys are flow_id, flow_message_id, flow_message_name, flow_name, send_channel, tag_id, tag_name, text_message_format, variation, variation_name.\nIf not passed in, the data will be grouped by flow_id, flow_message_id, send_channel.\nThe following group by attributes are required: flow_message_id, flow_id.", "items": { "description": "Attributes to represent what is being grouped by for Flows", "enum": [ "flow_id", "flow_message_id", "flow_message_name", "flow_name", "send_channel", "tag_id", "tag_name", "text_message_format", "variation", "variation_name" ], "type": "string" }, "nullable": true, "type": "array" }, "interval": { "description": "The interval used to aggregate data within the series request.\nIf hourly is used, the timeframe cannot be longer than 7 days.\nIf daily is used, the timeframe cannot be longer than 60 days.\nIf monthly is used, the timeframe cannot be longer than 52 weeks.", "enum": [ "daily", "hourly", "monthly", "weekly" ], "example": "weekly", "type": "string" }, "statistics": { "description": "List of statistics to query for. All rate statistics will be returned in fractional form [0.0, 1.0]", "example": [ "opens", "open_rate" ], "items": { "description": "Defined reporting metric", "enum": [ "average_order_value", "bounce_rate", "bounced", "bounced_or_failed", "bounced_or_failed_rate", "click_rate", "click_to_open_rate", "clicks", "clicks_unique", "conversion_rate", "conversion_uniques", "conversion_value", "conversions", "delivered", "delivery_rate", "failed", "failed_rate", "message_segment_count_sum", "open_rate", "opens", "opens_unique", "recipients", "revenue_per_recipient", "spam_complaint_rate", "spam_complaints", "text_message_credit_usage_amount", "text_message_roi", "text_message_spend", "unsubscribe_rate", "unsubscribe_uniques", "unsubscribes" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe", "interval", "conversion_metric_id" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FlowSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FlowSms": { "properties": { "add_info_link": { "default": true, "example": true, "type": "boolean" }, "add_opt_out_language": { "default": false, "type": "boolean" }, "add_org_prefix": { "default": true, "example": true, "type": "boolean" }, "add_tracking_params": { "default": false, "type": "boolean" }, "additional_filters": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/ProfileHasNotReceivedSmsMessageCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "body": { "type": "string" }, "custom_tracking_params": { "items": { "$ref": "#/components/schemas/UtmParam" }, "nullable": true, "type": "array" }, "dynamic_image": { "description": "A dynamic image asset to include in the SMS message.", "example": "{{ person|lookup:'image_url' }}", "nullable": true, "type": "string" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "image_id": { "description": "The id of an ImageAsset. If provided, this will take precedence over a dynamic_image.", "example": "123", "nullable": true, "type": "string" }, "include_contact_card": { "default": false, "type": "boolean" }, "name": { "nullable": true, "type": "string" }, "shorten_links": { "default": true, "example": true, "type": "boolean" }, "smart_sending_enabled": { "default": true, "example": true, "type": "boolean" }, "sms_quiet_hours_enabled": { "default": true, "example": true, "type": "boolean" }, "template_id": { "nullable": true, "type": "string" }, "transactional": { "default": false, "type": "boolean" } }, "required": [ "body" ], "type": "object" }, "FlowTrackingSettingDynamicParam": { "properties": { "type": { "description": "The type of the tracking parameter", "enum": [ "dynamic" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "enum": [ "email_subject", "flow_id", "flow_name", "link_alt_text", "message_name", "message_name_id", "message_type", "profile_external_id", "profile_id" ], "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "FlowTrackingSettingStaticParam": { "properties": { "type": { "description": "The type of the tracking parameter", "enum": [ "static" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "type": "string" } }, "required": [ "type", "value" ], "type": "object" }, "FlowUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/FlowUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "FlowUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "status": { "description": "Status you want to update the flow to. ['draft', 'manual', or 'live']", "type": "string" } }, "required": [ "status" ], "type": "object" }, "id": { "description": "ID of the Flow to update. Ex: XVTP5Q", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "FlowV2ResponseObjectResource": { "properties": { "attributes": { "properties": { "archived": { "nullable": true, "type": "boolean" }, "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "status": { "nullable": true, "type": "string" }, "trigger_type": { "description": "Corresponds to the object which triggered the flow.", "enum": [ "Added to List", "Date Based", "Low Inventory", "Metric", "Price Drop", "Unconfigured" ], "nullable": true, "type": "string" }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-actions": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "FlowValuesReportEnum": { "enum": [ "flow-values-report" ], "type": "string" }, "FlowValuesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/FlowValuesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "FlowValuesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "conversion_metric_id": { "description": "ID of the metric to be used for conversion statistics", "example": "RESQ6t", "type": "string" }, "filter": { "description": "API filter string used to filter the query.\nScalar attributes (flow_id, flow_name, send_channel, flow_message_id, flow_message_name, text_message_format, variation, variation_name): Supported operators: equals, contains-any.\nList attributes (tag_id, tag_name): Supported operators: contains-any, contains-all.\nOnly one filter can be used per attribute.\nOnly AND can be used as a combination operator.\nMax of 100 items per list filter.\nWhen filtering on send_channel, allowed values are email, sms, push-notification, whatsapp.", "example": "and(equals(flow_id,\"abc123\"),contains-any(send_channel,[\"email\",\"sms\"]))", "nullable": true, "type": "string" }, "group_by": { "description": "List of attributes to group the data by.\nAllowed group-bys are flow_id, flow_message_id, flow_message_name, flow_name, send_channel, tag_id, tag_name, text_message_format, variation, variation_name.\nIf not passed in, the data will be grouped by flow_id, flow_message_id, send_channel.\nThe following group by attributes are required: flow_message_id, flow_id.", "items": { "description": "Attributes to represent what is being grouped by for Flows", "enum": [ "flow_id", "flow_message_id", "flow_message_name", "flow_name", "send_channel", "tag_id", "tag_name", "text_message_format", "variation", "variation_name" ], "type": "string" }, "nullable": true, "type": "array" }, "statistics": { "description": "List of statistics to query for. All rate statistics will be returned in fractional form [0.0, 1.0]", "example": [ "opens", "open_rate" ], "items": { "description": "Defined reporting metric", "enum": [ "average_order_value", "bounce_rate", "bounced", "bounced_or_failed", "bounced_or_failed_rate", "click_rate", "click_to_open_rate", "clicks", "clicks_unique", "conversion_rate", "conversion_uniques", "conversion_value", "conversions", "delivered", "delivery_rate", "failed", "failed_rate", "message_segment_count_sum", "open_rate", "opens", "opens_unique", "recipients", "revenue_per_recipient", "spam_complaint_rate", "spam_complaints", "text_message_credit_usage_amount", "text_message_roi", "text_message_spend", "unsubscribe_rate", "unsubscribe_uniques", "unsubscribes" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe", "conversion_metric_id" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FlowValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FlowWebhook": { "properties": { "body": { "nullable": true, "type": "string" }, "headers": { "nullable": true, "type": "object" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "url": { "nullable": true, "type": "string" } }, "required": [ "url" ], "type": "object" }, "FlowWhatsApp": { "properties": { "add_tracking_params": { "default": false, "type": "boolean" }, "additional_filters": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "smart_sending_enabled": { "default": true, "example": true, "type": "boolean" }, "transactional": { "default": false, "type": "boolean" }, "vendor_id": { "nullable": true, "type": "string" } }, "type": "object" }, "FlowsProfileMetricCondition": { "properties": { "measurement": { "description": "Measurements for profile metrics.", "enum": [ "count", "sum" ], "type": "string" }, "measurement_filter": { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, "metric_filters": { "items": { "$ref": "#/components/schemas/ProfileMetricPropertyFilter" }, "nullable": true, "type": "array" }, "metric_id": { "type": "string" }, "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/AlltimeDateFilter" }, { "$ref": "#/components/schemas/SinceFlowStartDateFilter" } ] }, "type": { "enum": [ "profile-metric" ], "type": "string" } }, "required": [ "type", "metric_id", "measurement", "measurement_filter", "timeframe_filter" ], "type": "object" }, "FormCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/FormCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "FormCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "ab_test": { "description": "Whether the form has an A/B test configured.", "type": "boolean" }, "definition": { "$ref": "#/components/schemas/FormDefinition", "description": "The encoded form definition." }, "name": { "description": "The name of the form.", "example": "Cyber Monday Deals", "type": "string" }, "status": { "description": "The status of the form.", "enum": [ "draft" ], "example": "draft", "type": "string" } }, "required": [ "definition", "status", "ab_test", "name" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FormDefinition": { "properties": { "versions": { "items": { "$ref": "#/components/schemas/Version" }, "type": "array" } }, "required": [ "versions" ], "type": "object" }, "FormEnum": { "enum": [ "form" ], "type": "string" }, "FormMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/InStringArrayFilter", "description": "Optional filter on a specific list of form ids", "nullable": true }, "method": { "enum": [ "form" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "FormResponseObjectResource": { "properties": { "attributes": { "properties": { "ab_test": { "description": "Whether the form has an A/B test configured, regardless of its status.", "type": "boolean" }, "created_at": { "description": "ISO8601 timestamp when the form was created.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" }, "name": { "description": "Name of the form.", "example": "Cyber Monday Deals", "type": "string" }, "status": { "description": "Status of the form. A live form with an in-progress draft is considered \"live\".", "enum": [ "draft", "live" ], "type": "string" }, "updated_at": { "description": "ISO8601 timestamp when the form was last updated.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "name", "status", "ab_test", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "ID of the form. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "form-versions": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FormVersionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "FormSeriesReportEnum": { "enum": [ "form-series-report" ], "type": "string" }, "FormSeriesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/FormSeriesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "FormSeriesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "filter": { "description": "API filter string used to filter the query.\nAllowed filters are form_id, form_version_id.\nAllowed operators are equals, any.\nOnly one filter can be used per attribute, only AND can be used as a combination operator.\nMax of 100 messages per ANY filter.", "example": "and(equals(form_id,\"abc123\"),any(form_version_id,[\"xyz123\",\"ghi456\"]))", "nullable": true, "type": "string" }, "group_by": { "description": "List of attributes to group the data by.\nAllowed group-bys are form_id, form_version_id.\nIf not passed in, the data will be grouped by form_id.\nIf a group by has prerequisites, they must be passed in together. The prerequisites for form_version_id is form_id", "items": { "description": "Attributes to represent what is being grouped by for Forms", "enum": [ "form_id", "form_version_id" ], "type": "string" }, "nullable": true, "type": "array" }, "interval": { "description": "The interval used to aggregate data within the series request.\nIf hourly is used, the timeframe cannot be longer than 7 days.\nIf daily is used, the timeframe cannot be longer than 60 days.\nIf monthly is used, the timeframe cannot be longer than 52 weeks.", "enum": [ "daily", "hourly", "monthly", "weekly" ], "example": "weekly", "type": "string" }, "statistics": { "description": "List of statistics to query for. All rate statistics will be returned in fractional form [0.0, 1.0]", "example": [ "viewed_form", "submit_rate" ], "items": { "description": "Defined form reporting metric", "enum": [ "closed_form", "closed_form_uniques", "qualified_form", "qualified_form_uniques", "submit_rate", "submits", "submitted_form_step", "submitted_form_step_uniques", "viewed_form", "viewed_form_step", "viewed_form_step_uniques", "viewed_form_uniques" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe", "interval" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FormSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FormSubscribeFilter": { "properties": { "field": { "enum": [ "subscribe_method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/InStringArrayFilter", "description": "Optional filter on a specific list of form IDs", "nullable": true }, "method": { "enum": [ "form" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "FormValuesReportEnum": { "enum": [ "form-values-report" ], "type": "string" }, "FormValuesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/FormValuesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "FormValuesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "filter": { "description": "API filter string used to filter the query.\nAllowed filters are form_id, form_version_id.\nAllowed operators are equals, any.\nOnly one filter can be used per attribute, only AND can be used as a combination operator.\nMax of 100 messages per ANY filter.", "example": "and(equals(form_id,\"abc123\"),any(form_version_id,[\"xyz123\",\"ghi456\"]))", "nullable": true, "type": "string" }, "group_by": { "description": "List of attributes to group the data by.\nAllowed group-bys are form_id, form_version_id.\nIf not passed in, the data will be grouped by form_id.\nIf a group by has prerequisites, they must be passed in together. The prerequisites for form_version_id is form_id", "items": { "description": "Attributes to represent what is being grouped by for Forms", "enum": [ "form_id", "form_version_id" ], "type": "string" }, "nullable": true, "type": "array" }, "statistics": { "description": "List of statistics to query for. All rate statistics will be returned in fractional form [0.0, 1.0]", "example": [ "viewed_form", "submit_rate" ], "items": { "description": "Defined form reporting metric", "enum": [ "closed_form", "closed_form_uniques", "qualified_form", "qualified_form_uniques", "submit_rate", "submits", "submitted_form_step", "submitted_form_step_uniques", "viewed_form", "viewed_form_step", "viewed_form_step_uniques", "viewed_form_uniques" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FormValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "FormVersionABTest": { "properties": { "variation_name": { "description": "This is the name of the AB test variation.", "type": "string" } }, "required": [ "variation_name" ], "type": "object" }, "FormVersionEnum": { "enum": [ "form-version" ], "type": "string" }, "FormVersionResponseObjectResource": { "properties": { "attributes": { "properties": { "ab_test": { "$ref": "#/components/schemas/FormVersionABTest", "nullable": true }, "created_at": { "description": "ISO8601 timestamp when the form version was created.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" }, "form_type": { "description": "The type of form.", "enum": [ "banner", "embed", "flyout", "full_page", "popup" ], "type": "string" }, "status": { "description": "Status of the form version. \"live\" means it's live on site.", "enum": [ "draft", "live" ], "type": "string" }, "updated_at": { "description": "ISO8601 timestamp when the form version was last updated.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" }, "variation_name": { "description": "The name of the form version.", "type": "string" } }, "required": [ "form_type", "variation_name", "status", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "ID of the form version. Generated by Klaviyo.", "example": "1234567", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "form": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FormVersionEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "GeofenceEnum": { "enum": [ "geofence" ], "type": "string" }, "GeofenceResponseObjectResource": { "properties": { "attributes": { "properties": { "latitude": { "description": "Latitude coordinate of the geofence center point", "example": 40.7128, "type": "number" }, "longitude": { "description": "Longitude coordinate of the geofence center point", "example": -74.006, "type": "number" }, "radius": { "description": "Radius in meters from the center point", "example": 100, "type": "number" } }, "required": [ "latitude", "longitude", "radius" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this geofence. Generated by the system.", "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/GeofenceEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "GetAccountResponse": { "properties": { "data": { "$ref": "#/components/schemas/AccountResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetAccountResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/AccountResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetBulkProfileSuppressionsCreateJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/BulkProfileSuppressionsCreateJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetBulkProfileSuppressionsCreateJobResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/BulkProfileSuppressionsCreateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetBulkProfileSuppressionsRemoveJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/BulkProfileSuppressionsRemoveJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetBulkProfileSuppressionsRemoveJobResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/BulkProfileSuppressionsRemoveJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessageCampaignRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The campaign ID", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessageImageRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The ID of the image", "example": "7", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessageResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CampaignMessageResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TemplateResponseObjectResource" }, { "$ref": "#/components/schemas/CampaignResponseObjectResource" }, { "$ref": "#/components/schemas/ImageResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessageResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CampaignMessageResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TemplateResponseObjectResource" }, { "$ref": "#/components/schemas/CampaignResponseObjectResource" }, { "$ref": "#/components/schemas/ImageResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessageTemplateRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The ID of template", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignMessagesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The message ID", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignRecipientEstimationJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/CampaignRecipientEstimationJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignRecipientEstimationResponse": { "properties": { "data": { "$ref": "#/components/schemas/CampaignRecipientEstimationResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/CampaignResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CampaignResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/CampaignMessageResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CampaignResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/CampaignMessageResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignSendJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/CampaignSendJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCampaignTagsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryCreateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryCreateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryCreateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryCreateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogCategoryResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryDeleteJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryDeleteJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryDeleteJobResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryDeleteJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryItemsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryResponse": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryUpdateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogCategoryUpdateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogCategoryUpdateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogCategoryUpdateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogCategoryResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemCategoriesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemCreateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemCreateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemCreateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemCreateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogItemResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemDeleteJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemDeleteJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemDeleteJobResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemDeleteJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemUpdateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogItemUpdateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemUpdateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogItemUpdateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogItemResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogItemVariantsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantCreateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantCreateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantCreateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantCreateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantDeleteJobResponse": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantDeleteJobResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantDeleteJobResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantDeleteJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantResponse": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantUpdateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CatalogVariantUpdateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCatalogVariantUpdateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CatalogVariantUpdateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CatalogVariantResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetClientReviewResponseDTOCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ClientReviewResponseDTOObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetConversationResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/ConversationResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeCouponRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The internal id of a Coupon is equivalent to its external id stored within an integration.", "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeCreateJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CouponCodeCreateJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeCreateJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CouponCodeCreateJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CouponCodeResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CouponCodeResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CouponCodeResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/CouponResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodeResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CouponCodeResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/CouponResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponCodesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/CouponResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCouponResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CouponResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCustomMetricMetricsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Metric ID", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCustomMetricResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/CustomMetricResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetCustomMetricResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/CustomMetricResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetCustomMetricResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/CustomMetricResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetDataSourceResponse": { "properties": { "data": { "$ref": "#/components/schemas/DataSourceResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetDataSourceResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/DataSourceResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetEncodedFormResponse": { "properties": { "data": { "$ref": "#/components/schemas/EncodedFormResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetEventMetricRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The Metric ID", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetEventProfileRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetEventResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/EventResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/MetricResponseObjectResource" }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" }, { "$ref": "#/components/schemas/AttributionResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetEventResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/EventResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/MetricResponseObjectResource" }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" }, { "$ref": "#/components/schemas/AttributionResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowActionEncodedResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowActionEncodedResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowActionEncodedResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/FlowResponseObjectResource" }, { "$ref": "#/components/schemas/FlowMessageEncodedResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowActionFlowMessageRelationshipResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowActionFlowRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowFlowActionRelationshipListResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowMessageActionRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowMessageEncodedResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FlowMessageEncodedResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowMessageEncodedResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/FlowMessageEncodedResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" }, { "$ref": "#/components/schemas/TemplateResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowMessageTemplateRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The ID of template", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/FlowResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FlowResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FlowResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" }, { "$ref": "#/components/schemas/TagResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowTagsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFlowV2ResponseCompoundDocument": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/FlowDefinition", "description": "The encoded flow definition. Unsupported objects (triggers, actions, etc.) will be included but labeled as unsupported.", "nullable": true } } }, "type": { "$ref": "#/components/schemas/FlowEnum" } } }, { "$ref": "#/components/schemas/FlowV2ResponseObjectResource" } ] }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/FlowActionEncodedResponseObjectResource" }, { "$ref": "#/components/schemas/TagResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/FormResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FormResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormVersionFormRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "ID of the form. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormVersionResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/FormVersionResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormVersionResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/FormVersionResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/FormResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetFormVersionsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "ID of the form version. Generated by Klaviyo.", "example": "1234567", "type": "string" }, "type": { "$ref": "#/components/schemas/FormVersionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetGeofenceResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/GeofenceResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetImageResponse": { "properties": { "data": { "$ref": "#/components/schemas/ImageResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetImageResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ImageResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetImportErrorResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ImportErrorResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListFlowTriggersRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListListResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ListListResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/FlowResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListMemberResponseCollection": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/ListMemberResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListProfilesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ListResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetListRetrieveResponseCompoundDocument": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "profile_count": { "nullable": true, "type": "integer" } } }, "type": { "$ref": "#/components/schemas/ListEnum" } } }, { "$ref": "#/components/schemas/ListRetrieveResponseObjectResource" } ] }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/FlowResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetListTagsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMappedMetricCustomMetricRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The ID of the custom metric", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMappedMetricMetricRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The Metric ID", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMappedMetricResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/MappedMetricResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/MetricResponseObjectResource" }, { "$ref": "#/components/schemas/CustomMetricResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMappedMetricResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/MappedMetricResponseObjectResource" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/MetricResponseObjectResource" }, { "$ref": "#/components/schemas/CustomMetricResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricFlowTriggersRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricPropertiesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The ID of the metric property", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricPropertyEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricPropertyMetricRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The Metric ID", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricPropertyResponseCollection": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "sample_values": { "items": { "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "nullable": true, "type": "array" } } }, "type": { "$ref": "#/components/schemas/MetricPropertyEnum" } } }, { "$ref": "#/components/schemas/MetricPropertyResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricPropertyResponseCompoundDocument": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "sample_values": { "items": { "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "nullable": true, "type": "array" } } }, "type": { "$ref": "#/components/schemas/MetricPropertyEnum" } } }, { "$ref": "#/components/schemas/MetricPropertyResponseObjectResource" } ] }, "included": { "items": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/MetricResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/FlowResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetMetricResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/MetricResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/FlowResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileBulkImportJobListsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileBulkImportJobProfilesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileConversationRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ConversationEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileImportJobResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileImportJobResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileImportJobResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/ProfileImportJobResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/ListResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileListsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfilePushTokensRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "ID of push token", "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileResponse": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileResponseCollection": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" } ] }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ConversationResponseObjectResource" }, { "$ref": "#/components/schemas/PushTokenResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileResponseCompoundDocument": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/ProfileResponseObjectResource" } ] }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ListResponseObjectResource" }, { "$ref": "#/components/schemas/SegmentResponseObjectResource" }, { "$ref": "#/components/schemas/ConversationResponseObjectResource" }, { "$ref": "#/components/schemas/PushTokenResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetProfileSegmentsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetPushTokenProfileRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetPushTokenResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/PushTokenResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetPushTokenResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/PushTokenResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/ProfileResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetPushTokenResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/PushTokenResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/ProfileResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetReviewResponseDTOCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ReviewResponseDTOObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/EventResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetReviewResponseDTOCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/ReviewResponseDTOObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/EventResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetReviewValuesReportResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/ReviewValuesReportResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentFlowTriggersRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentListResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/SegmentListResponseObjectResource" }, "type": "array" }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/FlowResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentMemberResponseCollection": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true } } }, "type": { "$ref": "#/components/schemas/ProfileEnum" } } }, { "$ref": "#/components/schemas/SegmentMemberResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentProfilesRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/SegmentResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentRetrieveResponseCompoundDocument": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "profile_count": { "nullable": true, "type": "integer" } } }, "type": { "$ref": "#/components/schemas/SegmentEnum" } } }, { "$ref": "#/components/schemas/SegmentRetrieveResponseObjectResource" } ] }, "included": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TagResponseObjectResource" }, { "$ref": "#/components/schemas/FlowResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetSegmentTagsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagCampaignRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of all campaigns that are associated with the Tag", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagFlowRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of all flows that are associated with the Tag", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagGroupRelationshipResponse": { "properties": { "data": { "nullable": true, "properties": { "id": { "description": "The Tag Group ID", "example": "zyxw9876-vu54-ts32-rq10-zyxwvu654321", "type": "string" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagGroupResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/TagGroupResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagGroupResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/TagGroupResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagGroupTagsRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagListRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of all lists that are associated with the Tag", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/TagResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/TagResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/TagGroupResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/TagResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/TagGroupResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTagSegmentRelationshipsResponseCollection": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of all segments that are associated with the Tag", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTemplateDndResponse": { "properties": { "data": { "allOf": [ { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "Template definition for SYSTEM_DRAGGABLE templates. Omitted for CODE/USER_DRAGGABLE. Use additional-fields[template]=definition to include in list responses.", "nullable": true } } }, "type": { "$ref": "#/components/schemas/TemplateEnum" } } }, { "$ref": "#/components/schemas/TemplateDndResponseObjectResource" } ] }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTemplateDndResponseCollection": { "properties": { "data": { "items": { "allOf": [ { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "Template definition for SYSTEM_DRAGGABLE templates. Omitted for CODE/USER_DRAGGABLE. Use additional-fields[template]=definition to include in list responses.", "nullable": true } } }, "type": { "$ref": "#/components/schemas/TemplateEnum" } } }, { "$ref": "#/components/schemas/TemplateDndResponseObjectResource" } ] }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetTemplateResponse": { "properties": { "data": { "allOf": [ { "$ref": "#/components/schemas/TemplateResponseObjectResource" } ], "nullable": true }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTrackingSettingResponse": { "properties": { "data": { "$ref": "#/components/schemas/TrackingSettingResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetTrackingSettingResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/TrackingSettingResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetUniversalContentResponse": { "properties": { "data": { "$ref": "#/components/schemas/UniversalContentResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetUniversalContentResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/UniversalContentResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebFeedResponse": { "properties": { "data": { "$ref": "#/components/schemas/WebFeedResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebFeedResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/WebFeedResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebhookResponseCollectionCompoundDocument": { "properties": { "data": { "items": { "$ref": "#/components/schemas/WebhookResponseObjectResource" }, "type": "array" }, "included": { "items": { "$ref": "#/components/schemas/WebhookTopicResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebhookResponseCompoundDocument": { "properties": { "data": { "$ref": "#/components/schemas/WebhookResponseObjectResource" }, "included": { "items": { "$ref": "#/components/schemas/WebhookTopicResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebhookTopicResponse": { "properties": { "data": { "$ref": "#/components/schemas/WebhookTopicResponseObjectResource" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "GetWebhookTopicResponseCollection": { "properties": { "data": { "items": { "$ref": "#/components/schemas/WebhookTopicResponseObjectResource" }, "type": "array" }, "links": { "$ref": "#/components/schemas/CollectionLinks" } }, "required": [ "data" ], "type": "object" }, "GoToInbox": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "enum": [ null ] }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "go_to_inbox" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "GreaterThanPositiveNumericFilter": { "properties": { "operator": { "enum": [ "greater-than" ], "type": "string" }, "type": { "enum": [ "numeric" ], "type": "string" }, "value": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] } }, "required": [ "type", "operator", "value" ], "type": "object" }, "GroupingCompany": { "properties": { "company_id": { "description": "The ID of the company", "example": "67890", "type": "string" } }, "required": [ "company_id" ], "type": "object" }, "GroupingProduct": { "properties": { "product_id": { "description": "The ID of the product", "example": "12345", "type": "string" } }, "required": [ "product_id" ], "type": "object" }, "HTMLBlockDataV0": { "properties": { "content": { "type": "string" }, "display_options": { "$ref": "#/components/schemas/BlockDisplayOptions" } }, "required": [ "content", "display_options" ], "type": "object" }, "HTMLBlockDataV1": { "properties": { "content": { "type": "string" }, "display_options": { "$ref": "#/components/schemas/DisplayOptions" } }, "required": [ "content", "display_options" ], "type": "object" }, "HTMLBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/HTMLBlockDataV0" }, "type": { "enum": [ "html" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "HTMLBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/HTMLBlockDataV1" }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "html" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "HTMLText": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/HTMLTextProperties" }, "styles": { "$ref": "#/components/schemas/HTMLTextStyles" }, "type": { "enum": [ "html_text" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "HTMLTextProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "content": { "default": "", "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" } }, "type": "object" }, "HTMLTextStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "HasEmailMarketing": { "properties": { "filters": { "nullable": true }, "subscription": { "enum": [ "any" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "HasEmailMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ true ], "type": "boolean" }, "channel": { "enum": [ "email" ], "type": "string" }, "consent_status": { "oneOf": [ { "$ref": "#/components/schemas/HasEmailMarketing" }, { "$ref": "#/components/schemas/HasEmailMarketingSubscribed" }, { "$ref": "#/components/schemas/HasEmailMarketingNeverSubscribed" } ] } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "HasEmailMarketingNeverSubscribed": { "properties": { "filters": { "nullable": true }, "subscription": { "enum": [ "never_subscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "HasEmailMarketingSubscribed": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/DoubleOptinFilter" }, { "$ref": "#/components/schemas/StatusDateFilter" }, { "$ref": "#/components/schemas/CustomSourceFilter" }, { "$ref": "#/components/schemas/FormMethodFilter" }, { "$ref": "#/components/schemas/PreferencePageFilter" }, { "$ref": "#/components/schemas/APIMethodFilter" }, { "$ref": "#/components/schemas/InboundMessageMethodFilter" }, { "$ref": "#/components/schemas/BackInStockMethodFilter" }, { "$ref": "#/components/schemas/SftpMethodFilter" }, { "$ref": "#/components/schemas/ManualImportManualMethodFilter" }, { "$ref": "#/components/schemas/ManualAddManualMethodFilter" }, { "$ref": "#/components/schemas/ShopifyIntegrationMethodFilter" } ] }, "nullable": true, "type": "array" }, "subscription": { "enum": [ "subscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "HasPushMarketing": { "properties": { "filters": { "items": { "$ref": "#/components/schemas/StatusDateFilter" }, "nullable": true, "type": "array" }, "subscription": { "enum": [ "any" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "HasPushMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ true ], "type": "boolean" }, "channel": { "enum": [ "push" ], "type": "string" }, "consent_status": { "$ref": "#/components/schemas/HasPushMarketing" } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "HasSMSMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ true ], "type": "boolean" }, "channel": { "enum": [ "sms" ], "type": "string" }, "consent_status": { "$ref": "#/components/schemas/HasSMSMarketingSubscribed" } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "HasSMSMarketingSubscribed": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/StatusDateFilter" }, { "$ref": "#/components/schemas/FormMethodFilter" }, { "$ref": "#/components/schemas/ManualImportManualMethodFilter" }, { "$ref": "#/components/schemas/ManualAddManualMethodFilter" }, { "$ref": "#/components/schemas/CheckoutMethodFilter" }, { "$ref": "#/components/schemas/InboundMessageMethodFilter" }, { "$ref": "#/components/schemas/PreferencePageMethodFilter" }, { "$ref": "#/components/schemas/SftpMethodFilter" }, { "$ref": "#/components/schemas/ShopifyIntegrationMethodFilter" }, { "$ref": "#/components/schemas/SubscribedSMSIsRcsCapableFilter" } ] }, "nullable": true, "type": "array" }, "subscription": { "enum": [ "subscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "HeaderBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/HeaderBlockStyles" } }, "required": [ "display_options", "styles" ], "type": "object" }, "HeaderBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_color": { "nullable": true, "type": "string" }, "border_radius": { "nullable": true, "type": "integer" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "color": { "nullable": true, "type": "string" }, "desktop_layout": { "description": "Header block desktop layout.", "enum": [ "centered", "inline", "links", "stacked" ], "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "item_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "item_spacing": { "nullable": true, "type": "integer" }, "item_spacing_type": { "description": "Header block item spacing type.", "enum": [ "auto", "manual" ], "nullable": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "logo_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "logo_link_spacing": { "nullable": true, "type": "integer" }, "mobile_layout": { "description": "Header block mobile layout.", "enum": [ "inline", "links", "links-stacked", "logo-stacked", "stacked" ], "nullable": true, "type": "string" }, "mobile_spacing": { "nullable": true, "type": "integer" }, "mobile_wrap": { "nullable": true, "type": "boolean" }, "text_decoration": { "nullable": true, "type": "string" }, "vertical_align": { "description": "Vertical alignment.", "enum": [ "baseline", "bottom", "middle", "top" ], "nullable": true, "type": "string" } }, "type": "object" }, "HeaderBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "header" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "HeaderBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/HeaderBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "subblocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/HeaderLinkSubBlock" }, { "$ref": "#/components/schemas/HeaderImageSubBlock" }, { "$ref": "#/components/schemas/HeaderLogoSubBlock" } ] }, "nullable": true, "type": "array" }, "type": { "enum": [ "header" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "HeaderImageSubBlock": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "height": { "nullable": true, "type": "integer" }, "href": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "max_width": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" }, "type": { "enum": [ "header_link_bar_image" ], "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "required": [ "type" ], "type": "object" }, "HeaderLinkSubBlock": { "properties": { "background_color": { "nullable": true, "type": "string" }, "content": { "nullable": true, "type": "string" }, "drop_shadow_color": { "nullable": true, "type": "string" }, "href": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "type": { "enum": [ "header_link_bar_button" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "HeaderLogoSubBlock": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "height": { "nullable": true, "type": "integer" }, "href": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "max_width": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" }, "type": { "enum": [ "header_link_bar_logo" ], "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "required": [ "type" ], "type": "object" }, "Heading1Style": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "heading-1-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/HeadingStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "Heading2Style": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "heading-2-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/HeadingStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "Heading3Style": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "heading-3-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/HeadingStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "Heading4Style": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "heading-4-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/HeadingStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "HeadingStyleStyles": { "properties": { "color": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "line_height": { "nullable": true, "type": "number" }, "margin_bottom": { "nullable": true, "type": "integer" }, "mobile_font_size": { "nullable": true, "type": "integer" }, "mobile_line_height": { "nullable": true, "type": "number" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "HorizontalRuleBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/HorizontalRuleBlockStyles" } }, "required": [ "display_options", "styles" ], "type": "object" }, "HorizontalRuleBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_color": { "nullable": true, "type": "string" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" } }, "type": "object" }, "HorizontalRuleBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "horizontal_rule" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "HorizontalRuleBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/HorizontalRuleBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "horizontal_rule" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "IafDeeplinkToScreen": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/IafDeeplinkToScreenProperties" }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "iaf_deeplink_to_screen" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "IafDeeplinkToScreenProperties": { "properties": { "deep_link_url": { "default": "", "type": "string" } }, "type": "object" }, "IdentifiedProfiles": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TriggerBaseProperties" }, "type": { "enum": [ "identified_profiles" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "Image": { "properties": { "action": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Close" }, { "$ref": "#/components/schemas/NextStep" }, { "$ref": "#/components/schemas/OpenForm" }, { "$ref": "#/components/schemas/PromotionalSMSSubscription" }, { "$ref": "#/components/schemas/Redirect" }, { "$ref": "#/components/schemas/ResendOptInCode" }, { "$ref": "#/components/schemas/SubmitOptInCode" }, { "$ref": "#/components/schemas/SubscribeViaSMS" }, { "$ref": "#/components/schemas/SubscribeViaWhatsApp" }, { "$ref": "#/components/schemas/GoToInbox" }, { "$ref": "#/components/schemas/SubmitBackInStock" }, { "$ref": "#/components/schemas/SkipToSuccess" }, { "$ref": "#/components/schemas/IafDeeplinkToScreen" } ] }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ImageProperties" }, "styles": { "$ref": "#/components/schemas/ImageStyles" }, "type": { "enum": [ "image" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ImageAssetProperties": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "integer" }, "id": { "nullable": true, "type": "integer" }, "original_image_url": { "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" } }, "type": "object" }, "ImageBlockCroppingProperties": { "properties": { "aspect_ratio": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "height": { "nullable": true, "type": "integer" }, "src": { "nullable": true, "type": "string" }, "width": { "nullable": true, "type": "integer" }, "x": { "nullable": true, "type": "integer" }, "y": { "nullable": true, "type": "integer" } }, "type": "object" }, "ImageBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "oneOf": [ { "$ref": "#/components/schemas/StaticImageBlockProperties" }, { "$ref": "#/components/schemas/DynamicImageBlockProperties" } ] }, "styles": { "$ref": "#/components/schemas/ImageBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "ImageBlockStyles": { "properties": { "align": { "description": "Image Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_border_color": { "nullable": true, "type": "string" }, "block_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "block_border_width": { "nullable": true, "type": "integer" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "full_width_mobile": { "nullable": true, "type": "boolean" }, "height": { "nullable": true, "type": "integer" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "max_width": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "width": { "nullable": true, "type": "integer" } }, "type": "object" }, "ImageBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "image" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ImageBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/ImageBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "image" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ImageCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ImageCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ImageCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "hidden": { "default": false, "description": "If true, this image is not shown in the asset library.", "nullable": true, "type": "boolean" }, "import_from_url": { "description": "An existing image url to import the image from. Alternatively, you may specify a base-64 encoded data-uri (`data:image/...`). Supported image formats: jpeg,png,gif. Maximum image size: 5MB.", "example": "https://www.example.com/example.jpg", "type": "string" }, "name": { "description": "A name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added.", "nullable": true, "type": "string" } }, "required": [ "import_from_url" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ImageDropShadowStyles": { "properties": { "blur": { "default": 15, "example": 15, "type": "integer" }, "color": { "default": "#000000", "example": "#000000", "type": "string" }, "enabled": { "default": false, "type": "boolean" }, "x_offset": { "default": 0, "type": "integer" }, "y_offset": { "default": 0, "type": "integer" } }, "type": "object" }, "ImageEnum": { "enum": [ "image" ], "type": "string" }, "ImagePartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ImagePartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ImagePartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "hidden": { "description": "If true, this image is not shown in the asset library.", "nullable": true, "type": "boolean" }, "name": { "description": "A name for the image.", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of the image", "example": "7", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "ImageProperties": { "properties": { "additional_fields": { "items": { "$ref": "#/components/schemas/AdditionalField" }, "nullable": true, "type": "array" }, "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "image": { "$ref": "#/components/schemas/ImageAssetProperties", "nullable": true } }, "required": [ "image" ], "type": "object" }, "ImageResponseObjectResource": { "properties": { "attributes": { "properties": { "format": { "type": "string" }, "hidden": { "type": "boolean" }, "image_url": { "type": "string" }, "name": { "type": "string" }, "size": { "type": "integer" }, "updated_at": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "image_url", "format", "size", "hidden", "updated_at" ], "type": "object" }, "id": { "description": "The ID of the image", "example": "7", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ImageStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "drop_shadow": { "$ref": "#/components/schemas/ImageDropShadowStyles" }, "horizontal_alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" }, "width": { "nullable": true, "type": "integer" } }, "type": "object" }, "ImageUploadQuery": { "properties": { "file": { "description": "The image file to upload. Supported image formats: jpeg,png,gif. Maximum image size: 5MB.", "format": "binary", "type": "string" }, "hidden": { "default": false, "description": "If true, this image is not shown in the asset library.", "type": "boolean" }, "name": { "description": "A name for the image. Defaults to the filename if not provided. If the name matches an existing image, a suffix will be added.", "type": "string" } }, "required": [ "file" ], "type": "object" }, "ImmediateSendStrategy": { "properties": { "method": { "enum": [ "immediate" ], "type": "string" } }, "required": [ "method" ], "type": "object" }, "ImplicitlyOrExplicitlyReachable": { "properties": { "reachable_status": { "enum": [ "implicitly_or_explicitly_reachable" ], "type": "string" } }, "required": [ "reachable_status" ], "type": "object" }, "ImplicitlyOrExplicitlyUnreachable": { "properties": { "reachable_status": { "enum": [ "implicitly_or_explicitly_unreachable" ], "type": "string" } }, "required": [ "reachable_status" ], "type": "object" }, "ImplicitlyReachable": { "properties": { "reachable_status": { "enum": [ "implicitly_reachable" ], "type": "string" } }, "required": [ "reachable_status" ], "type": "object" }, "ImplicitlyUnreachable": { "properties": { "reachable_status": { "enum": [ "implicitly_unreachable" ], "type": "string" } }, "required": [ "reachable_status" ], "type": "object" }, "ImportErrorEnum": { "enum": [ "import-error" ], "type": "string" }, "ImportErrorResponseObjectResource": { "properties": { "attributes": { "properties": { "code": { "description": "A code for classifying the error type.", "example": "invalid", "type": "string" }, "detail": { "description": "Specific details about the error.", "example": "The payload provided in the request is invalid.", "type": "string" }, "original_payload": { "nullable": true, "type": "object" }, "source": { "$ref": "#/components/schemas/ErrorSource", "description": "Additional information on the source of the error." }, "title": { "description": "A high-level message about the error.", "example": "Invalid input", "type": "string" } }, "required": [ "code", "title", "detail", "source" ], "type": "object" }, "id": { "description": "Unique identifier for the error.", "example": "e4eebb08-b055-4a6f-bb13-c8cb69c9eb94", "type": "string" }, "type": { "$ref": "#/components/schemas/ImportErrorEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "InStringArrayFilter": { "properties": { "operator": { "enum": [ "in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "InTheLastBaseRelativeDateFilter": { "properties": { "operator": { "enum": [ "in-the-last" ], "type": "string" }, "quantity": { "type": "integer" }, "type": { "enum": [ "date" ], "type": "string" }, "unit": { "description": "Units for relative date filters.", "enum": [ "day", "hour", "week" ], "type": "string" } }, "required": [ "type", "operator", "unit", "quantity" ], "type": "object" }, "InboundMessageMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "inbound_message" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "Increment": { "properties": { "badge_config": { "enum": [ "increment_one" ], "type": "string" } }, "required": [ "badge_config" ], "type": "object" }, "InputStyles": { "properties": { "background_color": { "default": "#FFFFFF", "example": "#FFFFFF", "type": "string" }, "border_color": { "default": "#949596", "example": "#949596", "type": "string" }, "border_focus_color": { "default": "#000000", "example": "#000000", "type": "string" }, "corner_radius": { "default": 2, "example": 2, "type": "integer" }, "field_height": { "default": 38, "example": 38, "type": "integer" }, "focus_outline_color": { "default": "#1C65AD", "example": "#1C65AD", "type": "string" }, "label_color": { "default": "#303B43", "example": "#303B43", "type": "string" }, "placeholder_color": { "default": "#949596", "example": "#949596", "type": "string" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" }, "text_styles": { "$ref": "#/components/schemas/TextStyleV0" } }, "type": "object" }, "IntegerFilter": { "properties": { "operator": { "description": "Operators for numeric filters.", "enum": [ "equals", "greater-than", "greater-than-or-equal", "less-than", "less-than-or-equal", "not-equals" ], "type": "string" }, "type": { "enum": [ "numeric" ], "type": "string" }, "value": { "type": "integer" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "InternalScheduledReportBuilderReportData": { "properties": { "report_id": { "type": "string" }, "service_method_type": { "enum": [ "schedule-report-builder-report" ], "type": "string" } }, "required": [ "service_method_type", "report_id" ], "type": "object" }, "InternalScheduledReportData": { "properties": { "report_id": { "type": "string" }, "service_method_type": { "enum": [ "schedule-report" ], "type": "string" } }, "required": [ "service_method_type", "report_id" ], "type": "object" }, "InternalServiceAction": { "properties": { "data": { "$ref": "#/components/schemas/InternalServiceActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "internal-service" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "InternalServiceActionData": { "properties": { "service_configuration": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/InternalScheduledReportData" }, { "$ref": "#/components/schemas/InternalTrackEventData" }, { "$ref": "#/components/schemas/InternalScheduledReportBuilderReportData" }, { "$ref": "#/components/schemas/InternalUnknownServiceData" } ] }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "type": "object" }, "InternalTrackEventData": { "properties": { "event_key": { "nullable": true, "type": "string" }, "event_payload": { "nullable": true, "type": "object" }, "service_method_type": { "enum": [ "track-event" ], "type": "string" }, "tracking_company_id": { "nullable": true, "type": "string" } }, "required": [ "service_method_type" ], "type": "object" }, "InternalUnknownServiceData": { "properties": { "service_method_type": { "enum": [ "unknown" ], "type": "string" } }, "required": [ "service_method_type" ], "type": "object" }, "InvalidEmailDateFilter": { "properties": { "field": { "enum": [ "invalid_email_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/IsSetExistenceFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "IsSetExistenceFilter": { "properties": { "operator": { "enum": [ "is-set" ], "type": "string" }, "type": { "enum": [ "existence" ], "type": "string" } }, "required": [ "type", "operator" ], "type": "object" }, "LessThanPositiveNumericFilter": { "properties": { "operator": { "enum": [ "less-than" ], "type": "string" }, "type": { "enum": [ "numeric" ], "type": "string" }, "value": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] } }, "required": [ "type", "operator", "value" ], "type": "object" }, "Link": { "properties": { "next": { "nullable": true, "type": "string" } }, "type": "object" }, "LinkStyle": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "link-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/LinkStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "LinkStyleStyles": { "properties": { "color": { "nullable": true, "type": "string" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "LinkStyles": { "properties": { "color": { "default": "#0066cc", "example": "#0066cc", "type": "string" }, "decoration": { "default": "underline", "enum": [ "underline" ], "example": "underline", "type": "string" } }, "type": "object" }, "ListContainsOperatorListContainsFilter": { "properties": { "operator": { "description": "Operators for list contains filters.", "enum": [ "contains", "not-contains" ], "type": "string" }, "type": { "enum": [ "list" ], "type": "string" }, "value": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ListCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ListCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ListCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "A helpful name to label the list", "example": "Newsletter", "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'. If not provided, uses account default.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" } }, "required": [ "name" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ListEnum": { "enum": [ "list" ], "type": "string" }, "ListLengthFilter": { "properties": { "operator": { "description": "Operators for list length filters.", "enum": [ "length-equals", "length-greater-than", "length-greater-than-or-equal", "length-less-than", "length-less-than-or-equal" ], "type": "string" }, "type": { "enum": [ "list" ], "type": "string" }, "value": { "type": "integer" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ListListResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ListMemberResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "joined_group_at": { "description": "The datetime when this profile most recently joined the list.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "last_event_date": { "description": "Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "joined_group_at" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "push-tokens": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes", "links" ], "type": "object" }, "ListMembersAddQuery": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "ListMembersDeleteQuery": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "ListPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ListPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ListPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "ListRegexOperatorListContainsFilter": { "properties": { "operator": { "description": "Operators for list regex filters.", "enum": [ "contains-ends-with", "contains-starts-with", "not-contains-ends-with", "not-contains-starts-with" ], "type": "string" }, "type": { "enum": [ "list" ], "type": "string" }, "value": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "string" } ] } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ListResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ListRetrieveResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ListSetFilter": { "properties": { "operator": { "description": "Operators for list contains set filters.", "enum": [ "contains-all", "contains-any", "not-contains-all", "not-contains-any" ], "type": "string" }, "type": { "enum": [ "list" ], "type": "string" }, "value": { "items": { "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ListSubstringFilter": { "properties": { "operator": { "description": "Operators for list substring filters.", "enum": [ "contains-substring", "not-contains-substring" ], "type": "string" }, "type": { "enum": [ "list" ], "type": "string" }, "value": { "nullable": true, "type": "string" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ListTrigger": { "properties": { "id": { "nullable": true, "type": "string" }, "type": { "enum": [ "list" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "ListUpdateAction": { "properties": { "data": { "$ref": "#/components/schemas/ListUpdateActionData" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "list-update" ], "type": "string" } }, "required": [ "data", "type" ], "type": "object" }, "ListUpdateActionData": { "properties": { "list_id": { "nullable": true, "type": "string" }, "name": { "type": "string" }, "on_execution": { "description": "The enum for whether the action will add/remove from the list in the\n List Update Action.", "enum": [ false, true ], "nullable": true, "type": "boolean" }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "name", "on_execution", "list_id" ], "type": "object" }, "ListsAndSegments": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ListsAndSegmentsProperties" }, "type": { "enum": [ "lists_and_segments" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ListsAndSegmentsProperties": { "properties": { "allow_list": { "items": { "type": "string" }, "nullable": true, "type": "array" }, "deny_list": { "items": { "type": "string" }, "nullable": true, "type": "array" } }, "type": "object" }, "LocalStaticSend": { "properties": { "is_local": { "description": "Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.", "enum": [ true ], "type": "boolean" }, "send_past_recipients_immediately": { "default": false, "description": "Determines if we should send to local recipient timezone if the given time has passed. Only applicable to local sends.", "type": "boolean" } }, "required": [ "is_local" ], "type": "object" }, "Location": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/LocationProperties" }, "type": { "enum": [ "location" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "LocationProperties": { "properties": { "allow_list": { "items": { "oneOf": [ { "description": "Geographic Regions.", "enum": [ "con_AF", "con_AS", "con_EU", "con_EUP", "con_NA", "con_OC", "con_SA" ], "type": "string" }, { "description": "Geographic Country - ISO 3166-1 alpha-2 country codes.", "enum": [ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "ST", "SV", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ], "type": "string" } ] }, "nullable": true, "type": "array" }, "deny_list": { "items": { "oneOf": [ { "description": "Geographic Regions.", "enum": [ "con_AF", "con_AS", "con_EU", "con_EUP", "con_NA", "con_OC", "con_SA" ], "type": "string" }, { "description": "Geographic Country - ISO 3166-1 alpha-2 country codes.", "enum": [ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AN", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "ST", "SV", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ], "type": "string" } ] }, "nullable": true, "type": "array" } }, "type": "object" }, "LowInventoryCondition": { "properties": { "field": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "metric_id": { "nullable": true, "type": "string" }, "type": { "enum": [ "low-inventory-property" ], "type": "string" } }, "required": [ "type", "metric_id", "field", "filter" ], "type": "object" }, "LowInventoryTrigger": { "properties": { "audience": { "items": { "description": "The profiles which the low inventory trigger applies to.\n\nWe check profiles to see if they have these kinds of events. If they\n do have them, then they are considered for the audience.", "enum": [ "added-to-cart", "checkout-started", "viewed" ], "type": "string" }, "type": "array" }, "inventory_count": { "type": "integer" }, "product_level": { "description": "Low inventory product level.", "enum": [ "product", "variant" ], "type": "string" }, "timeframe_days": { "default": 30, "example": 30, "type": "integer" }, "trigger_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "$ref": "#/components/schemas/LowInventoryCondition" }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "type": { "enum": [ "low-inventory" ], "type": "string" } }, "required": [ "type", "product_level", "trigger_filter", "inventory_count", "audience" ], "type": "object" }, "MailboxProviderMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "mailbox_provider" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ManualAddManualMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/InStringArrayFilter", "description": "Optional filter on a specific list of user email addresses who initiated the manual action", "nullable": true }, "method": { "enum": [ "manual_add" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ManualImportManualMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/InStringArrayFilter", "description": "Optional filter on a specific list of user email addresses who initiated the manual action", "nullable": true }, "method": { "enum": [ "manual_import" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ManualImportMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "manual_import" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ManualRemoveMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "manual_remove" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ManualSuppressionDateFilter": { "properties": { "field": { "enum": [ "manual_suppression_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/IsSetExistenceFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "MappedMetricEnum": { "enum": [ "mapped-metric" ], "type": "string" }, "MappedMetricPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/MappedMetricPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "MappedMetricPartialUpdateQueryResourceObject": { "properties": { "id": { "description": "The type of mapping.", "enum": [ "added_to_cart", "cancelled_sales", "ordered_product", "refunded_sales", "revenue", "started_checkout", "viewed_product" ], "example": "revenue", "type": "string" }, "relationships": { "properties": { "custom-metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the custom metric for this mapping. A null value will unset the mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" }, "metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the metric for this mapping. A null value will unset the mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/MappedMetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "MappedMetricResponseObjectResource": { "properties": { "attributes": { "properties": { "updated": { "description": "The datetime when this mapping was last updated.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "updated" ], "type": "object" }, "id": { "description": "The type of mapping.", "enum": [ "added_to_cart", "cancelled_sales", "ordered_product", "refunded_sales", "revenue", "started_checkout", "viewed_product" ], "example": "revenue", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "custom-metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the custom metric for this mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the metric for this mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/MappedMetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "Margin": { "properties": { "bottom": { "default": 0, "type": "integer" }, "left": { "default": 0, "type": "integer" }, "right": { "default": 0, "type": "integer" }, "top": { "default": 0, "type": "integer" } }, "type": "object" }, "MessageBlockedMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "message_blocked" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "MethodFilter": { "properties": { "field": { "enum": [ "subscribe_method" ], "type": "string" }, "method": { "description": "Method for subscribing / unsubscribing.", "enum": [ "api", "back_in_stock", "bigcommerce", "bulk_remove", "campaign_monitor", "carrier_deactivation", "checkout", "constant_contact", "exact_target", "facebook", "failed_age_gate", "inbound_message", "integration", "mad_mimi", "magento_two", "mailbox_provider", "manual_add", "manual_import", "manual_remove", "message_blocked", "netsuite", "preference_page", "provided_landline", "provided_no_age", "sftp", "shopify", "social_instagram_message", "spam_complaint", "square", "wix", "woocommerce" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "MetricAggregateEnum": { "enum": [ "metric-aggregate" ], "type": "string" }, "MetricAggregateQuery": { "properties": { "data": { "$ref": "#/components/schemas/MetricAggregateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "MetricAggregateQueryResourceObject": { "properties": { "attributes": { "properties": { "by": { "description": "Optional attribute(s) used for partitioning by the aggregation function", "example": [ "$message" ], "items": { "description": "Supported dimensions for grouping and filtering.\n\nIf adding a new dimension, the following will also need to be updated:\n - adding the key in keys.py\n - adding an AppMetricDimension to library.py\n - adding a new entry to the dict in the __init__ method of StaticSchema using the key from keys.py and the\n AppMetricDimension from library.py", "enum": [ "$attributed_channel", "$attributed_flow", "$attributed_message", "$attributed_variation", "$campaign_channel", "$flow", "$flow_channel", "$message", "$message_send_cohort", "$usage_amount", "$value_currency", "$variation", "$variation_send_cohort", "Bot Click", "Bounce Type", "Campaign Name", "Client Canonical", "Client Name", "Client Type", "Email Domain", "Failure Source", "Failure Type", "From Number", "From Phone Region", "Inbox Provider", "List", "Message Format", "Message Name", "Message Type", "Method", "Segment Count", "Subject", "To Number", "To Phone Region", "URL", "form_id" ], "type": "string" }, "nullable": true, "type": "array" }, "filter": { "description": "List of filters, must include time range using ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).\n These filters follow a similar format to those in `GET` requests, the primary difference is that this endpoint asks for a list.\n The time range can be filtered by providing a `greater-or-equal` and a `less-than` filter on the `datetime` field.", "example": [ "greater-or-equal(datetime,2022-12-01T00:00:00)", "less-than(datetime,2022-12-08T00:00:00" ], "items": { "type": "string" }, "type": "array" }, "interval": { "default": "day", "description": "Aggregation interval, e.g. \"hour\", \"day\", \"week\", \"month\"", "enum": [ "day", "hour", "month", "week" ], "example": "day", "nullable": true, "type": "string" }, "measurements": { "description": "Measurement key, e.g. `unique`, `sum_value`, `count`", "example": [ "count" ], "items": { "description": "Supported measurements for aggregation", "enum": [ "count", "sum_value", "unique" ], "type": "string" }, "type": "array" }, "metric_id": { "description": "The metric ID used in the aggregation.", "example": "0rG4eQ", "type": "string" }, "page_cursor": { "description": "Optional pagination cursor to iterate over large result sets", "type": "string" }, "page_size": { "default": 500, "description": "Alter the maximum number of returned rows in a single page of aggregation results", "example": 500, "nullable": true, "type": "integer" }, "return_fields": { "description": "Provide fields to limit the returned data", "items": { "type": "string" }, "nullable": true, "type": "array" }, "sort": { "description": "Provide a sort key (e.g. -$message)", "enum": [ "$attributed_channel", "-$attributed_channel", "$attributed_flow", "-$attributed_flow", "$attributed_message", "-$attributed_message", "$attributed_variation", "-$attributed_variation", "$campaign_channel", "-$campaign_channel", "$flow", "-$flow", "$flow_channel", "-$flow_channel", "$message", "-$message", "$message_send_cohort", "-$message_send_cohort", "$usage_amount", "-$usage_amount", "$value_currency", "-$value_currency", "$variation", "-$variation", "$variation_send_cohort", "-$variation_send_cohort", "Bot Click", "-Bot Click", "Bounce Type", "-Bounce Type", "Campaign Name", "-Campaign Name", "Client Canonical", "-Client Canonical", "Client Name", "-Client Name", "Client Type", "-Client Type", "Email Domain", "-Email Domain", "Failure Source", "-Failure Source", "Failure Type", "-Failure Type", "From Number", "-From Number", "From Phone Region", "-From Phone Region", "Inbox Provider", "-Inbox Provider", "List", "-List", "Message Format", "-Message Format", "Message Name", "-Message Name", "Message Type", "-Message Type", "Method", "-Method", "Segment Count", "-Segment Count", "Subject", "-Subject", "To Number", "-To Number", "To Phone Region", "-To Phone Region", "URL", "-URL", "count", "-count", "form_id", "-form_id", "sum_value", "-sum_value", "unique", "-unique" ], "type": "string" }, "timezone": { "default": "UTC", "description": "The timezone used for processing the query, e.g. `'America/New_York'`.\n This field is validated against a list of common timezones from the [IANA Time Zone Database](https://www.iana.org/time-zones).\n While most are supported, a few notable exceptions are `Factory`, `Europe/Kyiv` and `Pacific/Kanton`. This field is case-sensitive.", "example": "America/New_York", "nullable": true, "type": "string" } }, "required": [ "metric_id", "measurements", "filter" ], "type": "object" }, "type": { "$ref": "#/components/schemas/MetricAggregateEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "MetricAggregateRowDTO": { "properties": { "dimensions": { "description": "List of dimensions associated with this set of measurements", "items": { "type": "string" }, "type": "array" }, "measurements": { "description": "Dictionary of measurement_key, values", "type": "object" } }, "required": [ "dimensions", "measurements" ], "type": "object" }, "MetricCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "Name of the event. Must be less than 128 characters.", "example": "Viewed Product", "type": "string" }, "service": { "description": "This is for advanced usage. For api requests, this should use the default, which is set to api.", "nullable": true, "type": "string" } }, "required": [ "name" ], "type": "object" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "MetricEnum": { "enum": [ "metric" ], "type": "string" }, "MetricPropertyCondition": { "properties": { "field": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "metric_id": { "type": "string" }, "type": { "enum": [ "metric-property" ], "type": "string" } }, "required": [ "type", "metric_id", "field", "filter" ], "type": "object" }, "MetricPropertyEnum": { "enum": [ "metric-property" ], "type": "string" }, "MetricPropertyResponseObjectResource": { "properties": { "attributes": { "properties": { "inferred_type": { "description": "Inferred type for this metric property", "example": "List", "type": "string" }, "label": { "description": "The label for this metric property", "example": "Categories", "type": "string" }, "property": { "description": "The property for this metric property", "example": "Categories", "type": "string" } }, "required": [ "label", "property", "inferred_type" ], "type": "object" }, "id": { "description": "The ID of the metric property", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "metric": { "properties": { "data": { "properties": { "id": { "description": "Related Metric", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/MetricPropertyEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "MetricResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Creation time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "nullable": true, "type": "string" }, "integration": { "description": "The integration associated with the event", "nullable": true, "type": "object" }, "name": { "description": "The name of the metric", "nullable": true, "type": "string" }, "updated": { "description": "Last updated time in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The Metric ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "MetricTrigger": { "properties": { "id": { "nullable": true, "type": "string" }, "trigger_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "$ref": "#/components/schemas/MetricPropertyCondition" }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "type": { "enum": [ "metric" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "MobileOverlay": { "properties": { "color": { "default": "rgba(20, 20, 20, 0.5)", "example": "rgba(20, 20, 20, 0.5)", "nullable": true, "type": "string" }, "enabled": { "default": false, "enum": [ false ], "type": "boolean" } }, "type": "object" }, "MobilePushBadge": { "properties": { "badge_options": { "description": "Badge options", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignMessageIncrement" }, { "$ref": "#/components/schemas/CampaignMessageStaticCount" }, { "$ref": "#/components/schemas/CampaignMessageProperty" } ] }, "display": { "description": "Whether to display a badge on the app icon", "enum": [ true ], "type": "boolean" } }, "required": [ "display" ], "type": "object" }, "MobilePushContent": { "properties": { "action_buttons": { "description": "Action buttons for the push notification", "items": { "$ref": "#/components/schemas/PushActionButtonDefinition" }, "nullable": true, "type": "array" }, "body": { "description": "The message body", "example": "My preview push notification", "nullable": true, "type": "string" }, "dynamic_image": { "description": "The dynamic image to be used in the push notification", "nullable": true, "type": "string" }, "title": { "description": "The title of the message", "nullable": true, "type": "string" } }, "type": "object" }, "MobilePushContentCreate": { "properties": { "action_buttons": { "description": "Action buttons for the push notification (max 3, positions 0-indexed with no gaps)", "items": { "$ref": "#/components/schemas/PushActionButtonDefinition" }, "nullable": true, "type": "array" }, "body": { "description": "The message body", "example": "My preview push notification", "type": "string" }, "dynamic_image": { "description": "The dynamic image to be used in the push notification", "nullable": true, "type": "string" }, "title": { "description": "The title of the message", "nullable": true, "type": "string" } }, "required": [ "body" ], "type": "object" }, "MobilePushContentUpdate": { "properties": { "action_buttons": { "description": "Action buttons for the push notification (max 3, positions 0-indexed with no gaps)", "items": { "$ref": "#/components/schemas/PushActionButtonDefinition" }, "nullable": true, "type": "array" }, "body": { "description": "The message body", "example": "My preview push notification", "nullable": true, "type": "string" }, "dynamic_image": { "description": "The dynamic image to be used in the push notification", "nullable": true, "type": "string" }, "title": { "description": "The title of the message", "nullable": true, "type": "string" } }, "type": "object" }, "MobilePushMessageSilentDefinition": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "nullable": true, "type": "object" }, "notification_type": { "description": "The type of notification to send", "enum": [ "silent" ], "type": "string" } }, "required": [ "channel", "notification_type" ], "type": "object" }, "MobilePushMessageSilentDefinitionCreate": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "nullable": true, "type": "object" }, "notification_type": { "default": "silent", "description": "The type of notification to send", "enum": [ "silent" ], "example": "silent", "type": "string" } }, "required": [ "channel" ], "type": "object" }, "MobilePushMessageSilentDefinitionUpdate": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "type": "object" }, "notification_type": { "default": "silent", "description": "The type of notification to send", "enum": [ "silent" ], "example": "silent", "type": "string" } }, "required": [ "channel" ], "type": "object" }, "MobilePushMessageStandardDefinition": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "content": { "$ref": "#/components/schemas/MobilePushContent", "description": "Additional attributes relating to the content of the message" }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "nullable": true, "type": "object" }, "notification_type": { "description": "The type of notification to send", "enum": [ "standard" ], "type": "string" }, "options": { "$ref": "#/components/schemas/MobilePushOptions", "nullable": true } }, "required": [ "channel", "notification_type", "content" ], "type": "object" }, "MobilePushMessageStandardDefinitionCreate": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "content": { "$ref": "#/components/schemas/MobilePushContentCreate", "description": "Additional attributes relating to the content of the message" }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "nullable": true, "type": "object" }, "notification_type": { "default": "standard", "description": "The type of notification to send", "enum": [ "standard" ], "example": "standard", "type": "string" }, "options": { "$ref": "#/components/schemas/MobilePushOptions", "nullable": true } }, "required": [ "channel", "content" ], "type": "object" }, "MobilePushMessageStandardDefinitionUpdate": { "properties": { "channel": { "enum": [ "mobile_push" ], "type": "string" }, "content": { "$ref": "#/components/schemas/MobilePushContentUpdate", "description": "Additional attributes relating to the content of the message", "nullable": true }, "kv_pairs": { "description": "The key-value pairs to be sent with the push notification", "nullable": true, "type": "object" }, "notification_type": { "default": "standard", "description": "The type of notification to send", "enum": [ "standard" ], "example": "standard", "type": "string" }, "options": { "$ref": "#/components/schemas/MobilePushOptions", "description": "Additional device specific options for the push notification", "nullable": true } }, "required": [ "channel" ], "type": "object" }, "MobilePushNoBadge": { "properties": { "display": { "description": "Whether to display a badge on the app icon", "enum": [ false ], "type": "boolean" } }, "required": [ "display" ], "type": "object" }, "MobilePushOptions": { "properties": { "badge": { "description": "Only supported on iOS.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/MobilePushBadge" }, { "$ref": "#/components/schemas/MobilePushNoBadge" } ] }, "on_open": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/PushOnOpenApp" }, { "$ref": "#/components/schemas/PushOnOpenDeepLink" }, { "$ref": "#/components/schemas/PushOnOpenWebUrl" } ] }, "play_sound": { "default": false, "description": "Only supported on iOS.", "nullable": true, "type": "boolean" } }, "type": "object" }, "MobileStyle": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/MobileStyleProperties" }, "style_type": { "enum": [ "mobile-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/MobileStyleStyles" } }, "required": [ "style_type", "properties", "styles" ], "type": "object" }, "MobileStyleProperties": { "properties": { "mobile_padding_override": { "nullable": true, "type": "boolean" } }, "type": "object" }, "MobileStyleStyles": { "properties": { "mobile_block_padding_left": { "nullable": true, "type": "integer" }, "mobile_block_padding_right": { "nullable": true, "type": "integer" }, "mobile_margin": { "nullable": true, "type": "integer" }, "mobile_padding_bottom": { "nullable": true, "type": "integer" }, "mobile_padding_left": { "nullable": true, "type": "integer" }, "mobile_padding_right": { "nullable": true, "type": "integer" }, "mobile_padding_top": { "nullable": true, "type": "integer" } }, "type": "object" }, "MultiBranchSplitAction": { "properties": { "data": { "$ref": "#/components/schemas/MultiBranchSplitActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "multi-branch-split" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "MultiBranchSplitActionData": { "properties": { "branches": { "items": { "$ref": "#/components/schemas/MultiBranchSplitBranch" }, "type": "array" }, "name": { "type": "string" } }, "required": [ "branches", "name" ], "type": "object" }, "MultiBranchSplitBranch": { "properties": { "branch_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfilePropertyCondition" }, { "$ref": "#/components/schemas/ProfileHasGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileNoGroupMembershipCondition" }, { "$ref": "#/components/schemas/ProfileRegionCondition" }, { "$ref": "#/components/schemas/ProfilePostalCodeDistanceCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsDateCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsNumericCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityCondition" }, { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankCondition" }, { "$ref": "#/components/schemas/ProfileMarketingConsentCondition" }, { "$ref": "#/components/schemas/FlowsProfileMetricCondition" }, { "$ref": "#/components/schemas/ProfileRandomSampleCondition" }, { "$ref": "#/components/schemas/ProfileHasCustomObjectCondition" }, { "$ref": "#/components/schemas/ProfilePermissionsCondition" }, { "$ref": "#/components/schemas/MetricPropertyCondition" }, { "$ref": "#/components/schemas/CustomObjectTriggerCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "branch_id": { "type": "string" }, "is_else": { "default": false, "type": "boolean" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "name": { "nullable": true, "type": "string" }, "order": { "nullable": true, "type": "integer" } }, "required": [ "branch_id" ], "type": "object" }, "NextStep": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/NextStepProperties", "nullable": true }, "submit": { "type": "boolean" }, "type": { "enum": [ "next_step" ], "type": "string" } }, "required": [ "submit", "type" ], "type": "object" }, "NextStepProperties": { "properties": { "list_id": { "nullable": true, "type": "string" } }, "type": "object" }, "NoEmailMarketing": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/BounceDateFilter" }, { "$ref": "#/components/schemas/ManualSuppressionDateFilter" }, { "$ref": "#/components/schemas/InvalidEmailDateFilter" } ] }, "nullable": true, "type": "array" }, "subscription": { "enum": [ "any" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NoEmailMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ false ], "type": "boolean" }, "channel": { "enum": [ "email" ], "type": "string" }, "consent_status": { "oneOf": [ { "$ref": "#/components/schemas/NoEmailMarketing" }, { "$ref": "#/components/schemas/NoEmailMarketingUnsubscribed" }, { "$ref": "#/components/schemas/NoEmailMarketingNeverSubscribed" }, { "$ref": "#/components/schemas/NoEmailMarketingSubscribed" } ] } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "NoEmailMarketingNeverSubscribed": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/BounceDateFilter" }, { "$ref": "#/components/schemas/ManualSuppressionDateFilter" }, { "$ref": "#/components/schemas/InvalidEmailDateFilter" } ] }, "type": "array" }, "subscription": { "enum": [ "never_subscribed" ], "type": "string" } }, "required": [ "subscription", "filters" ], "type": "object" }, "NoEmailMarketingSubscribed": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/BounceDateFilter" }, { "$ref": "#/components/schemas/ManualSuppressionDateFilter" }, { "$ref": "#/components/schemas/InvalidEmailDateFilter" } ] }, "type": "array" }, "subscription": { "enum": [ "subscribed" ], "type": "string" } }, "required": [ "subscription", "filters" ], "type": "object" }, "NoEmailMarketingUnsubscribed": { "properties": { "filters": { "nullable": true, "oneOf": [ { "items": { "oneOf": [ { "$ref": "#/components/schemas/StatusDateFilter" }, { "$ref": "#/components/schemas/APIMethodFilter" }, { "$ref": "#/components/schemas/InboundMessageMethodFilter" }, { "$ref": "#/components/schemas/PreferencePageMethodFilter" }, { "$ref": "#/components/schemas/ManualRemoveMethodFilter" }, { "$ref": "#/components/schemas/SpamComplaintMethodFilter" }, { "$ref": "#/components/schemas/MailboxProviderMethodFilter" }, { "$ref": "#/components/schemas/OneClickUnsubscribeMethodFilter" }, { "$ref": "#/components/schemas/ManualImportMethodFilter" }, { "$ref": "#/components/schemas/SftpMethodFilter" }, { "$ref": "#/components/schemas/DataWarehouseImportMethodFilter" }, { "$ref": "#/components/schemas/ProfileModificationMethodFilter" }, { "$ref": "#/components/schemas/ConstantContactIntegrationMethodFilter" } ] }, "type": "array" }, { "items": { "oneOf": [ { "$ref": "#/components/schemas/BounceDateFilter" }, { "$ref": "#/components/schemas/ManualSuppressionDateFilter" }, { "$ref": "#/components/schemas/InvalidEmailDateFilter" } ] }, "type": "array" } ] }, "subscription": { "enum": [ "unsubscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NoPushMarketing": { "properties": { "subscription": { "enum": [ "any" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NoPushMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ false ], "type": "boolean" }, "channel": { "enum": [ "push" ], "type": "string" }, "consent_status": { "$ref": "#/components/schemas/NoPushMarketing" } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "NoSMSMarketing": { "properties": { "subscription": { "enum": [ "any" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NoSMSMarketingConsent": { "properties": { "can_receive_marketing": { "enum": [ false ], "type": "boolean" }, "channel": { "enum": [ "sms" ], "type": "string" }, "consent_status": { "oneOf": [ { "$ref": "#/components/schemas/NoSMSMarketing" }, { "$ref": "#/components/schemas/NoSMSMarketingUnsubscribed" }, { "$ref": "#/components/schemas/NoSMSMarketingNeverSubscribed" } ] } }, "required": [ "channel", "can_receive_marketing", "consent_status" ], "type": "object" }, "NoSMSMarketingNeverSubscribed": { "properties": { "subscription": { "enum": [ "never_subscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NoSMSMarketingUnsubscribed": { "properties": { "filters": { "items": { "oneOf": [ { "$ref": "#/components/schemas/StatusDateFilter" }, { "$ref": "#/components/schemas/FormMethodFilter" }, { "$ref": "#/components/schemas/ManualImportManualMethodFilter" }, { "$ref": "#/components/schemas/ManualAddManualMethodFilter" }, { "$ref": "#/components/schemas/ManualRemoveMethodFilter" }, { "$ref": "#/components/schemas/BulkRemoveMethodFilter" }, { "$ref": "#/components/schemas/CheckoutMethodFilter" }, { "$ref": "#/components/schemas/InboundMessageMethodFilter" }, { "$ref": "#/components/schemas/PreferencePageMethodFilter" }, { "$ref": "#/components/schemas/SftpMethodFilter" }, { "$ref": "#/components/schemas/CarrierDeactivationMethodFilter" }, { "$ref": "#/components/schemas/ProvidedLandlineMethodFilter" }, { "$ref": "#/components/schemas/MessageBlockedMethodFilter" }, { "$ref": "#/components/schemas/ProvidedNoAgeMethodFilter" }, { "$ref": "#/components/schemas/FailedAgeGateMethodFilter" }, { "$ref": "#/components/schemas/ShopifyIntegrationMethodFilter" } ] }, "nullable": true, "type": "array" }, "subscription": { "enum": [ "unsubscribed" ], "type": "string" } }, "required": [ "subscription" ], "type": "object" }, "NonLocalStaticSend": { "properties": { "is_local": { "description": "Whether the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.", "enum": [ false ], "type": "boolean" } }, "required": [ "is_local" ], "type": "object" }, "NumericOperatorNumericFilter": { "properties": { "operator": { "description": "Operators for numeric filters.", "enum": [ "equals", "greater-than", "greater-than-or-equal", "less-than", "less-than-or-equal", "not-equals" ], "type": "string" }, "type": { "enum": [ "numeric" ], "type": "string" }, "value": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] } }, "required": [ "type", "operator", "value" ], "type": "object" }, "NumericRangeFilter": { "properties": { "end": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] }, "operator": { "description": "Operators for numeric range filters.", "enum": [ "between" ], "type": "string" }, "start": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] }, "type": { "enum": [ "numeric" ], "type": "string" } }, "required": [ "type", "operator", "start", "end" ], "type": "object" }, "ObjectLinks": { "properties": { "self": { "format": "uri", "type": "string" } }, "required": [ "self" ], "type": "object" }, "OneClickUnsubscribeMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "one_click_unsubscribe" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "OnlyRelatedLinks": { "properties": { "related": { "format": "uri", "type": "string" } }, "required": [ "related" ], "type": "object" }, "OnsiteProfileCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/OnsiteProfileCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "OnsiteProfileCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "_kx": { "description": "Also known as the `exchange_id`, this is an encrypted identifier used for identifying a\nprofile by Klaviyo's web tracking.\n\nYou can use this field as a filter when retrieving profiles via the Get Profiles endpoint.", "nullable": true, "type": "string" }, "anonymous_id": { "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "nullable": true, "type": "string" }, "meta": { "$ref": "#/components/schemas/OnsiteProfileMeta", "nullable": true }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "OnsiteProfileMeta": { "properties": { "patch_identifiers": { "$ref": "#/components/schemas/PatchIdentifiers", "description": "Specify one or more patch operations to apply to existing identifier data. Currently only `email` is supported, and it is used to add or remove secondary email addresses on a profile.", "example": { "append": { "email": [ "example@test.com", "another@example.com" ] } }, "nullable": true }, "patch_properties": { "$ref": "#/components/schemas/ProfileMetaPatchProperties", "description": "Specify one or more patch operations to apply to existing property data", "example": { "append": { "skus": "92538" } }, "nullable": true } }, "type": "object" }, "OnsiteSubscriptionCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/OnsiteSubscriptionCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "OnsiteSubscriptionCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "custom_source": { "description": "A custom method detail or source to store on the consent records for this subscription.", "example": "Homepage footer signup form", "nullable": true, "type": "string" }, "profile": { "properties": { "data": { "$ref": "#/components/schemas/ProfileUpsertQueryWithSubscriptionsResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profile" ], "type": "object" }, "relationships": { "properties": { "list": { "properties": { "data": { "properties": { "id": { "description": "The list ID to add the newly subscribed profile to.", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "list" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SubscriptionEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "OpenForm": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/OpenFormProperties" }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "open_form" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "OpenFormProperties": { "properties": { "close_form": { "default": true, "example": true, "type": "boolean" }, "form_id_to_open": { "type": "string" } }, "required": [ "form_id_to_open" ], "type": "object" }, "OptInCode": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/OptInCodeProperties" }, "styles": { "$ref": "#/components/schemas/OptInCodeStyles" }, "type": { "enum": [ "opt_in_code" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "OptInCodeProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "default": "opt_in_code", "enum": [ "opt_in_code" ], "example": "opt_in_code", "type": "string" }, "required": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "type": "object" }, "OptInCodeStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "OrderEnum": { "enum": [ "order" ], "type": "string" }, "Padding": { "properties": { "bottom": { "default": 0, "type": "integer" }, "left": { "default": 0, "type": "integer" }, "right": { "default": 0, "type": "integer" }, "top": { "default": 0, "type": "integer" } }, "type": "object" }, "PageVisits": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/PageVisitsProperties" }, "type": { "enum": [ "page_visits" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "PageVisitsProperties": { "properties": { "pages": { "default": 3, "example": 3, "type": "integer" } }, "type": "object" }, "PatchCampaignMessageResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created_at": { "description": "The datetime when the message was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/EmailMessageDefinition" }, { "$ref": "#/components/schemas/SMSMessageDefinition" }, { "$ref": "#/components/schemas/MobilePushMessageStandardDefinition" }, { "$ref": "#/components/schemas/MobilePushMessageSilentDefinition" } ] }, "send_times": { "description": "The list of appropriate Send Time Sub-objects associated with the message", "items": { "$ref": "#/components/schemas/SendTime" }, "nullable": true, "type": "array" }, "updated_at": { "description": "The datetime when the message was last updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The message ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign": { "properties": { "data": { "properties": { "id": { "description": "The parent campaign id", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "image": { "properties": { "data": { "properties": { "id": { "description": "The associated image id", "type": "string" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "template": { "properties": { "data": { "properties": { "id": { "description": "The associated template id", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCampaignResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "archived": { "description": "Whether the campaign has been archived or not", "type": "boolean" }, "audiences": { "$ref": "#/components/schemas/Audiences", "description": "The audiences to be included and/or excluded from the campaign" }, "created_at": { "description": "The datetime when the campaign was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The campaign name", "type": "string" }, "scheduled_at": { "description": "The datetime when the campaign was scheduled for future sending", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "send_options": { "description": "Options to use when sending a campaign", "oneOf": [ { "$ref": "#/components/schemas/EmailSendOptions" }, { "$ref": "#/components/schemas/SMSSendOptions" }, { "$ref": "#/components/schemas/PushSendOptions" } ] }, "send_strategy": { "description": "The send strategy the campaign will send with", "oneOf": [ { "$ref": "#/components/schemas/StaticSendStrategy" }, { "$ref": "#/components/schemas/SmartSendTimeStrategy" }, { "$ref": "#/components/schemas/ThrottledSendStrategy" }, { "$ref": "#/components/schemas/ImmediateSendStrategy" }, { "$ref": "#/components/schemas/ABTestSendStrategy" }, { "$ref": "#/components/schemas/UnsupportedSendStrategy" } ] }, "send_time": { "description": "The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the campaign", "enum": [ "Adding Recipients", "Cancelled", "Cancelled: Account Disabled", "Cancelled: Billing Limit", "Cancelled: Internal Error", "Cancelled: Misconfigured", "Cancelled: No Recipients", "Cancelled: Smart Sending", "Draft", "Preparing to schedule", "Preparing to send", "Queued without Recipients", "Scheduled", "Sending", "Sending Segments", "Sent", "Unknown", "Variations Sent" ], "type": "string" }, "tracking_options": { "description": "The tracking options associated with the campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignsEmailTrackingOptions" }, { "$ref": "#/components/schemas/CampaignsSMSTrackingOptions" } ] }, "updated_at": { "description": "The datetime when the campaign was last updated by a user or the system", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "status", "archived", "audiences", "send_options", "send_strategy", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "The campaign ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign-messages": { "properties": { "data": { "items": { "properties": { "id": { "description": "The message(s) associated with the campaign", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCatalogCategoryResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "external_id": { "description": "The ID of the catalog category in an external system.", "example": "SAMPLE-DATA-CATEGORY-APPAREL", "nullable": true, "type": "string" }, "name": { "description": "The name of the catalog category.", "example": "Sample Data Category Apparel", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog category was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCatalogItemResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item in an external system.", "example": "SAMPLE-DATA-ITEM-1", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "price": { "description": "This field can be used to set the price on the catalog item, which is what gets displayed for the item when included in emails. For most price-update use cases, you will also want to update the `price` on any child variants, using the [Update Catalog Variant Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_variant).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item is published.", "example": true, "nullable": true, "type": "boolean" }, "title": { "description": "The title of the catalog item.", "example": "Ocean Blue Shirt (Sample)", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCatalogVariantResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item variant was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item variant.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item variant in an external system.", "example": "SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item variant.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item variant.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item variant.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "inventory_policy": { "description": "This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.", "enum": [ 0, 1, 2 ], "example": 2, "nullable": true, "type": "integer" }, "inventory_quantity": { "description": "The quantity of the catalog item variant currently in stock.", "example": 25, "nullable": true, "type": "number" }, "price": { "description": "This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item variant is published.", "example": true, "nullable": true, "type": "boolean" }, "sku": { "description": "The SKU of the catalog item variant.", "example": "OBS-MD", "nullable": true, "type": "string" }, "title": { "description": "The title of the catalog item variant.", "example": "Ocean Blue Shirt (Sample) Variant Medium", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item variant was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item variant on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "item": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCouponCodeResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "expires_at": { "description": "The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the coupon code.", "enum": [ "ASSIGNED_TO_PROFILE", "DELETING", "PROCESSING", "UNASSIGNED", "USED", "VERSION_NOT_ACTIVE" ], "example": "UNASSIGNED", "nullable": true, "type": "string" }, "unique_code": { "description": "This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.", "example": "ASD325FHK324UJDOI2M3JNES99", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "coupon": { "properties": { "data": { "properties": { "id": { "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profile": { "properties": { "data": { "properties": { "id": { "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCouponResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "description": { "description": "A description of the coupon.", "example": "10% off for purchases over $50", "nullable": true, "type": "string" }, "external_id": { "description": "This is the id that is stored in an integration such as Shopify or Magento.", "example": "10OFF", "type": "string" }, "monitor_configuration": { "description": "The monitor configuration for the coupon.", "example": { "low_balance_threshold": 500 }, "nullable": true, "type": "object" } }, "required": [ "external_id" ], "type": "object" }, "id": { "description": "The internal id of a Coupon is equivalent to its external id stored within an integration.", "example": "10OFF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchCustomMetricResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this custom metric was created.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" }, "definition": { "$ref": "#/components/schemas/CustomMetricDefinition", "description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.", "example": { "aggregation_method": "value", "metric_groups": [ { "metric_filters": [ { "filter": { "operator": "starts-with", "type": "string", "value": "some_substring" }, "property": "my_string_property" }, { "filter": { "operator": "greater-than-or-equal", "type": "numeric", "value": 999 }, "property": "my_numeric_property" } ], "metric_id": "AAAAAA", "value_property": "$value" }, { "metric_filters": [ { "filter": { "operator": "equals", "type": "boolean", "value": false }, "property": "my_boolean_property" }, { "filter": { "operator": "contains", "type": "list", "value": "some_value_in_a_list" }, "property": "my_list_property" } ], "metric_id": "BBBBBB", "value_property": "my_numeric_property" } ] } }, "name": { "description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.", "example": "My custom metric", "type": "string" }, "updated": { "description": "The datetime when this custom metric was updated.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "definition" ], "type": "object" }, "id": { "description": "The ID of the custom metric", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "metrics": { "properties": { "data": { "items": { "properties": { "id": { "description": "Related metrics", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchFlowActionEncodedResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "description": "The encoded flow action definition.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ActionOutputSplitAction" }, { "$ref": "#/components/schemas/BackInStockDelayAction" }, { "$ref": "#/components/schemas/ConditionalBranchAction" }, { "$ref": "#/components/schemas/ContentExperimentAction" }, { "$ref": "#/components/schemas/SendEmailAction" }, { "$ref": "#/components/schemas/SendPushNotificationAction" }, { "$ref": "#/components/schemas/SendSmsAction" }, { "$ref": "#/components/schemas/SendWebhookAction" }, { "$ref": "#/components/schemas/SendInternalAlertAction" }, { "$ref": "#/components/schemas/SendWhatsAppAction" }, { "$ref": "#/components/schemas/TimeDelayAction" }, { "$ref": "#/components/schemas/TriggerBranchAction" }, { "$ref": "#/components/schemas/UpdateProfileAction" }, { "$ref": "#/components/schemas/TargetDateAction" }, { "$ref": "#/components/schemas/CountdownDelayAction" }, { "$ref": "#/components/schemas/AbTestAction" }, { "$ref": "#/components/schemas/InternalServiceAction" }, { "$ref": "#/components/schemas/CodeAction" }, { "$ref": "#/components/schemas/MultiBranchSplitAction" }, { "$ref": "#/components/schemas/ListUpdateAction" } ] }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flow-messages": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchFlowResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "archived": { "nullable": true, "type": "boolean" }, "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "status": { "nullable": true, "type": "string" }, "trigger_type": { "description": "Corresponds to the object which triggered the flow.", "enum": [ "Added to List", "Date Based", "Low Inventory", "Metric", "Price Drop", "Unconfigured" ], "nullable": true, "type": "string" }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-actions": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchIdentifiers": { "properties": { "append": { "type": "object" }, "unappend": { "type": "object" } }, "type": "object" }, "PatchImageResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "format": { "type": "string" }, "hidden": { "type": "boolean" }, "image_url": { "type": "string" }, "name": { "type": "string" }, "size": { "type": "integer" }, "updated_at": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "image_url", "format", "size", "hidden", "updated_at" ], "type": "object" }, "id": { "description": "The ID of the image", "example": "7", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchListPartialUpdateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchMappedMetricResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "updated": { "description": "The datetime when this mapping was last updated.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "updated" ], "type": "object" }, "id": { "description": "The type of mapping.", "enum": [ "added_to_cart", "cancelled_sales", "ordered_product", "refunded_sales", "revenue", "started_checkout", "viewed_product" ], "example": "revenue", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "custom-metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the custom metric for this mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "metric": { "properties": { "data": { "properties": { "id": { "description": "The ID of the metric for this mapping.", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/MappedMetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchProfileResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_event_date": { "description": "Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "push-tokens": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchReviewResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "author": { "description": "The author of this review", "example": "John D", "nullable": true, "type": "string" }, "content": { "description": "The content of this review", "example": "Great product! I love the smell. I will be buying again.", "nullable": true, "type": "string" }, "created": { "description": "The datetime when this review was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "email": { "description": "The email of the author of this review", "example": "john@doe.com", "nullable": true, "type": "string" }, "images": { "description": "The list of images submitted with this review (represented as a list of urls). If there are no images, this field will be an empty list.", "example": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "items": { "type": "string" }, "type": "array" }, "product": { "$ref": "#/components/schemas/ReviewProductDTO", "description": "The product associated with this review", "nullable": true }, "public_reply": { "$ref": "#/components/schemas/ReviewPublicReply", "description": "The public reply to this review (if one exists)", "nullable": true }, "rating": { "description": "The rating of this review on a scale from 1-5. If the review type is \"question\", this field will be null.", "example": 2, "nullable": true, "type": "integer" }, "review_type": { "description": "The type of this review \u2014 either a review, question, or rating", "enum": [ "question", "rating", "review", "store" ], "example": "review", "type": "string" }, "smart_quote": { "description": "A quote from this review that summarizes the content", "example": "I love the smell", "nullable": true, "type": "string" }, "status": { "description": "The status of this review", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ReviewStatusRejected" }, { "$ref": "#/components/schemas/ReviewStatusFeatured" }, { "$ref": "#/components/schemas/ReviewStatusPublished" }, { "$ref": "#/components/schemas/ReviewStatusUnpublished" }, { "$ref": "#/components/schemas/ReviewStatusPending" } ] }, "title": { "description": "The title of this review", "example": "Smells great, would recommend", "nullable": true, "type": "string" }, "updated": { "description": "The datetime when this review was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "verified": { "description": "The verification status of this review (aka whether or not we have confirmation that the customer bought the product)", "example": true, "type": "boolean" } }, "required": [ "verified", "review_type", "created", "updated", "images" ], "type": "object" }, "id": { "description": "The ID of the review", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "events": { "properties": { "data": { "items": { "properties": { "id": { "description": "Related Events", "type": "string" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "item": { "properties": { "data": { "properties": { "id": { "description": "Related Catalog Item", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ReviewEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchSegmentPartialUpdateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Whether the segment is active. Inactive segments are not processed and their membership does not update.", "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_starred": { "type": "boolean" }, "name": { "description": "A helpful name to label the segment", "example": "Repeat Purchasers", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "is_active", "is_processing", "is_starred" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchTemplateDndResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo", "nullable": true, "type": "string" }, "created": { "description": "The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "Template definition for SYSTEM_DRAGGABLE templates. Omitted for CODE/USER_DRAGGABLE. Use additional-fields[template]=definition to include in list responses.", "nullable": true }, "editor_type": { "description": "`editor_type` has a fixed set of values:\n* SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template\n* SIMPLE: A rich text editor template\n* CODE: A custom HTML template\n* USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor", "type": "string" }, "html": { "description": "The rendered HTML of the template", "type": "string" }, "name": { "description": "The name of the template", "type": "string" }, "text": { "description": "The template plain_text", "nullable": true, "type": "string" }, "updated": { "description": "The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type", "html" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchTrackingSettingResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "auto_add_parameters": { "description": "Whether tracking parameters are automatically added to campaigns and flows.", "type": "boolean" }, "custom_parameters": { "description": "Additional custom tracking parameters.", "items": { "$ref": "#/components/schemas/CustomTrackingParamDTO" }, "nullable": true, "type": "array" }, "utm_campaign": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_campaign tracking parameter.", "nullable": true }, "utm_id": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_id tracking parameter.", "nullable": true }, "utm_medium": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_medium tracking parameter." }, "utm_source": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_source tracking parameter." }, "utm_term": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_term tracking parameter.", "nullable": true } }, "required": [ "auto_add_parameters", "utm_source", "utm_medium" ], "type": "object" }, "id": { "description": "The id of the tracking setting (account ID).", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TrackingSettingEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchUniversalContentResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this universal content was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV0" }, { "$ref": "#/components/schemas/CouponBlockV0" }, { "$ref": "#/components/schemas/DropShadowBlockV0" }, { "$ref": "#/components/schemas/HeaderBlockV0" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV0" }, { "$ref": "#/components/schemas/HTMLBlockV0" }, { "$ref": "#/components/schemas/ImageBlockV0" }, { "$ref": "#/components/schemas/ProductBlockV0" }, { "$ref": "#/components/schemas/ReviewBlockV0" }, { "$ref": "#/components/schemas/SocialBlockV0" }, { "$ref": "#/components/schemas/SpacerBlockV0" }, { "$ref": "#/components/schemas/SplitBlockV0" }, { "$ref": "#/components/schemas/TableBlockV0" }, { "$ref": "#/components/schemas/TextBlockV0" }, { "$ref": "#/components/schemas/UnsupportedBlock" }, { "$ref": "#/components/schemas/VideoBlockV0" }, { "$ref": "#/components/schemas/SectionV0" } ] }, "name": { "description": "The name for this universal content", "type": "string" }, "screenshot_status": { "description": "The status of a universal content screenshot.", "enum": [ "completed", "failed", "generating", "never_generated", "not_renderable", "stale" ], "type": "string" }, "screenshot_url": { "type": "string" }, "updated": { "description": "The datetime when this universal content was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "screenshot_status", "screenshot_url" ], "type": "object" }, "id": { "description": "The ID of the universal content", "example": "01HWWWKAW4RHXQJCMW4R2KRYR4", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateUniversalContentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchWebFeedResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "content_type": { "description": "The content-type of the web feed", "enum": [ "json", "xml" ], "example": "json", "type": "string" }, "created": { "description": "Date and time when the web feed was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The name of this web feed", "example": "Blog_posts", "type": "string" }, "request_method": { "description": "The HTTP method for requesting the web feed", "enum": [ "get", "post" ], "example": "get", "type": "string" }, "status": { "description": "The cache status of this web feed if it exists", "enum": [ "critical_nightly_refresh_timeout", "disabled", "ok", "refreshing", "warning_nightly_refresh_timeout", "warning_periodic_refresh_timeout" ], "example": "ok", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the web feed was updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "url": { "description": "The URL of the web feed", "example": "https://help.klaviyo.com/api/v2/help_center/en-us/articles.json", "type": "string" } }, "required": [ "name", "url", "request_method", "content_type", "created", "updated" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this web feed. Generated by Klaviyo", "example": "925e385b52fb", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/WebFeedEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PatchWebhookResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created_at": { "description": "Date and time when the webhook was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" }, "description": { "description": "A description for the webhook.", "example": "A webhook for sms events", "nullable": true, "type": "string" }, "enabled": { "description": "Is the webhook enabled.", "type": "boolean" }, "endpoint_url": { "description": "The url to send webhook requests to, truncated for security.", "example": "https://www.example.com", "type": "string" }, "name": { "description": "A name for the webhook.", "example": "My Webhook", "type": "string" }, "updated_at": { "description": "Date and time when the webhook was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "endpoint_url", "enabled" ], "type": "object" }, "id": { "description": "The ID of the webhook.", "example": "01HF7AYTK76RHR4F17G6DGTRGF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "webhook-topics": { "properties": { "data": { "items": { "properties": { "id": { "description": "A topic the webhook is subscribed to.", "example": "event:klaviyo.sent_sms", "type": "string" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/WebhookEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PhoneNumber": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/PhoneNumberProperties" }, "styles": { "$ref": "#/components/schemas/PhoneNumberStyles" }, "type": { "enum": [ "phone_number" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "PhoneNumberConsentChannelSettings": { "properties": { "consent_type": { "description": "Consent Type Enum.", "enum": [ "phone_number_only", "promotional", "transactional" ], "nullable": true, "type": "string" } }, "type": "object" }, "PhoneNumberProperties": { "properties": { "channel_settings": { "$ref": "#/components/schemas/ChannelSettings", "nullable": true }, "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "default": "$phone_number", "example": "$phone_number", "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" }, "sms_consent_type": { "items": { "description": "Consent Type Enum.", "enum": [ "phone_number_only", "promotional", "transactional" ], "type": "string" }, "nullable": true, "type": "array" } }, "type": "object" }, "PhoneNumberStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "PostBulkProfileSuppressionsCreateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "skipped_count": { "default": 0, "description": "The total number of profiles that have been skipped as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this list", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this segment", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostBulkProfileSuppressionsRemoveJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "skipped_count": { "default": 0, "description": "The total number of profiles that have been skipped as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this list", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "description": "Suppress/Unsuppress all profiles in this segment", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCampaignMessageResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "channel": { "description": "The channel the message is to be sent on", "type": "string" }, "content": { "description": "Additional attributes relating to the content of the message", "oneOf": [ { "$ref": "#/components/schemas/EmailContentSubObject" }, { "$ref": "#/components/schemas/SMSContentSubObject" } ] }, "created_at": { "description": "The datetime when the message was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "label": { "description": "The label or name on the message", "type": "string" }, "render_options": { "$ref": "#/components/schemas/RenderOptionsSubObject", "description": "Additional options for rendering the message", "nullable": true }, "send_times": { "description": "The list of appropriate Send Time Sub-objects associated with the message", "items": { "$ref": "#/components/schemas/SendTimeSubObject" }, "nullable": true, "type": "array" }, "updated_at": { "description": "The datetime when the message was last updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "label", "channel", "content" ], "type": "object" }, "id": { "description": "The message ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign": { "properties": { "data": { "properties": { "id": { "description": "The parent campaign id", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "template": { "properties": { "data": { "properties": { "id": { "description": "The associated template id", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCampaignRecipientEstimationJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "status": { "description": "The status of the recipient estimation job", "enum": [ "cancelled", "complete", "processing", "queued" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "id": { "description": "The ID of the campaign used for estimating recipients", "example": "01GMRWDSA0ARTAKE1SFX8JGXAY", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CampaignRecipientEstimationJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCampaignResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "archived": { "description": "Whether the campaign has been archived or not", "type": "boolean" }, "audiences": { "$ref": "#/components/schemas/Audiences", "description": "The audiences to be included and/or excluded from the campaign" }, "created_at": { "description": "The datetime when the campaign was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The campaign name", "type": "string" }, "scheduled_at": { "description": "The datetime when the campaign was scheduled for future sending", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "send_options": { "description": "Options to use when sending a campaign", "oneOf": [ { "$ref": "#/components/schemas/EmailSendOptions" }, { "$ref": "#/components/schemas/SMSSendOptions" }, { "$ref": "#/components/schemas/PushSendOptions" } ] }, "send_strategy": { "description": "The send strategy the campaign will send with", "oneOf": [ { "$ref": "#/components/schemas/StaticSendStrategy" }, { "$ref": "#/components/schemas/SmartSendTimeStrategy" }, { "$ref": "#/components/schemas/ThrottledSendStrategy" }, { "$ref": "#/components/schemas/ImmediateSendStrategy" }, { "$ref": "#/components/schemas/ABTestSendStrategy" }, { "$ref": "#/components/schemas/UnsupportedSendStrategy" } ] }, "send_time": { "description": "The datetime when the campaign will be / was sent or None if not yet scheduled by a send_job.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the campaign", "enum": [ "Adding Recipients", "Cancelled", "Cancelled: Account Disabled", "Cancelled: Billing Limit", "Cancelled: Internal Error", "Cancelled: Misconfigured", "Cancelled: No Recipients", "Cancelled: Smart Sending", "Draft", "Preparing to schedule", "Preparing to send", "Queued without Recipients", "Scheduled", "Sending", "Sending Segments", "Sent", "Unknown", "Variations Sent" ], "type": "string" }, "tracking_options": { "description": "The tracking options associated with the campaign", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignsEmailTrackingOptions" }, { "$ref": "#/components/schemas/CampaignsSMSTrackingOptions" } ] }, "updated_at": { "description": "The datetime when the campaign was last updated by a user or the system", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "status", "archived", "audiences", "send_options", "send_strategy", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "The campaign ID", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaign-messages": { "properties": { "data": { "items": { "properties": { "id": { "description": "The message(s) associated with the campaign", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCampaignSendJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "status": { "description": "The status of the send job", "enum": [ "cancelled", "complete", "processing", "queued" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, "id": { "description": "The ID of the campaign to send", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CampaignSendJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCampaignValuesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.", "example": [ { "groupings": { "campaign_id": "01GMRWDSA0ARTAKE1SFX8JGXAY", "campaign_message_id": "01GMRWDSA0ARTAKE1SFX8JGXAY", "send_channel": "email" }, "statistics": { "open_rate": 0.8253, "opens": 123 } }, { "groupings": { "campaign_id": "01GJTHNWVG93F3KNX71SJ4FDBB", "campaign_message_id": "01GJTHNWVG93F3KNX71SJ4FDBB", "send_channel": "email" }, "statistics": { "open_rate": 0.7562, "opens": 97 } } ], "items": { "$ref": "#/components/schemas/ValuesData" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "relationships": { "properties": { "campaigns": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CampaignValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogCategoryCreateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogCategoryDeleteJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogCategoryResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "external_id": { "description": "The ID of the catalog category in an external system.", "example": "SAMPLE-DATA-CATEGORY-APPAREL", "nullable": true, "type": "string" }, "name": { "description": "The name of the catalog category.", "example": "Sample Data Category Apparel", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog category was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog category ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogCategoryUpdateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "categories": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog categories.", "example": "$custom:::$default:::SAMPLE-DATA-CATEGORY-APPAREL", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogCategoryEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogCategoryBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogItemCreateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogItemDeleteJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogItemResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item in an external system.", "example": "SAMPLE-DATA-ITEM-1", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "price": { "description": "This field can be used to set the price on the catalog item, which is what gets displayed for the item when included in emails. For most price-update use cases, you will also want to update the `price` on any child variants, using the [Update Catalog Variant Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_variant).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item is published.", "example": true, "nullable": true, "type": "boolean" }, "title": { "description": "The title of the catalog item.", "example": "Ocean Blue Shirt (Sample)", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog item ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogItemUpdateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "items": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog items.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogItemBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogVariantCreateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogVariantDeleteJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the deleted catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkDeleteJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogVariantResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the catalog item variant was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "custom_metadata": { "description": "Flat JSON blob to provide custom metadata about the catalog item variant. May not exceed 100kb.", "example": { "Top Pick": true }, "nullable": true, "type": "object" }, "description": { "description": "A description of the catalog item variant.", "example": "Ocean blue cotton shirt with a narrow collar and buttons down the front and long sleeves. Comfortable fit and titled kaleidoscope patterns.", "nullable": true, "type": "string" }, "external_id": { "description": "The ID of the catalog item variant in an external system.", "example": "SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "nullable": true, "type": "string" }, "image_full_url": { "description": "URL pointing to the location of a full image of the catalog item variant.", "example": "https://via.placeholder.com/300", "nullable": true, "type": "string" }, "image_thumbnail_url": { "description": "URL pointing to the location of an image thumbnail of the catalog item variant.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" }, "images": { "description": "List of URLs pointing to the locations of images of the catalog item variant.", "example": [ "https://via.placeholder.com/150" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "inventory_policy": { "description": "This field controls the visibility of this catalog item variant in product feeds/blocks. This field supports the following values:\n`1`: a product will not appear in dynamic product recommendation feeds and blocks if it is out of stock.\n`0` or `2`: a product can appear in dynamic product recommendation feeds and blocks regardless of inventory quantity.", "enum": [ 0, 1, 2 ], "example": 2, "nullable": true, "type": "integer" }, "inventory_quantity": { "description": "The quantity of the catalog item variant currently in stock.", "example": 25, "nullable": true, "type": "number" }, "price": { "description": "This field can be used to set the price on the catalog item variant, which is what gets displayed for the item variant when included in emails. For most price-update use cases, you will also want to update the `price` on any parent items using the [Update Catalog Item Endpoint](https://developers.klaviyo.com/en/reference/update_catalog_item).", "example": 42, "nullable": true, "type": "number" }, "published": { "description": "Boolean value indicating whether the catalog item variant is published.", "example": true, "nullable": true, "type": "boolean" }, "sku": { "description": "The SKU of the catalog item variant.", "example": "OBS-MD", "nullable": true, "type": "string" }, "title": { "description": "The title of the catalog item variant.", "example": "Ocean Blue Shirt (Sample) Variant Medium", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the catalog item variant was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "url": { "description": "URL pointing to the location of the catalog item variant on your website.", "example": "https://via.placeholder.com/150", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The catalog variant ID is a compound ID (string), with format: `{integration}:::{catalog}:::{external_id}`. Currently, the only supported integration type is `$custom`, and the only supported catalog is `$default`.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "item": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCatalogVariantUpdateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "variants": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the updated catalog variants.", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CatalogVariantBulkUpdateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCouponCodeCreateJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "errors": { "description": "Array of errors encountered during the processing of the job.", "items": { "$ref": "#/components/schemas/APIJobErrorPayload" }, "nullable": true, "type": "array" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "coupon-codes": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created coupon codes.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeBulkCreateJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCouponCodeResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "expires_at": { "description": "The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "The current status of the coupon code.", "enum": [ "ASSIGNED_TO_PROFILE", "DELETING", "PROCESSING", "UNASSIGNED", "USED", "VERSION_NOT_ACTIVE" ], "example": "UNASSIGNED", "nullable": true, "type": "string" }, "unique_code": { "description": "This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon.", "example": "ASD325FHK324UJDOI2M3JNES99", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The id of a coupon code is a combination of its unique code and the id of the coupon it is associated with.", "example": "10OFF-ASD325FHK324UJDOI2M3JNES99", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "coupon": { "properties": { "data": { "properties": { "id": { "example": "10OFF", "type": "string" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profile": { "properties": { "data": { "properties": { "id": { "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CouponCodeEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCouponResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "description": { "description": "A description of the coupon.", "example": "10% off for purchases over $50", "nullable": true, "type": "string" }, "external_id": { "description": "This is the id that is stored in an integration such as Shopify or Magento.", "example": "10OFF", "type": "string" }, "monitor_configuration": { "description": "The monitor configuration for the coupon.", "example": { "low_balance_threshold": 500 }, "nullable": true, "type": "object" } }, "required": [ "external_id" ], "type": "object" }, "id": { "description": "The internal id of a Coupon is equivalent to its external id stored within an integration.", "example": "10OFF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/CouponEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostCustomMetricResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this custom metric was created.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" }, "definition": { "$ref": "#/components/schemas/CustomMetricDefinition", "description": "The definition of a custom metric. It is composed of a list of `metric_groups`. Each group specifies how to query a particular metric with customized filters and the value property to calculate conversion value measurements (if applicable). The groups are combined with `AND` relationships, i.e., conversion and conversion value measurements for each group will be added together to get the final result.", "example": { "aggregation_method": "value", "metric_groups": [ { "metric_filters": [ { "filter": { "operator": "starts-with", "type": "string", "value": "some_substring" }, "property": "my_string_property" }, { "filter": { "operator": "greater-than-or-equal", "type": "numeric", "value": 999 }, "property": "my_numeric_property" } ], "metric_id": "AAAAAA", "value_property": "$value" }, { "metric_filters": [ { "filter": { "operator": "equals", "type": "boolean", "value": false }, "property": "my_boolean_property" }, { "filter": { "operator": "contains", "type": "list", "value": "some_value_in_a_list" }, "property": "my_list_property" } ], "metric_id": "BBBBBB", "value_property": "my_numeric_property" } ] } }, "name": { "description": "The name for this custom metric. Names must be unique across the account. Attempting to create a metric with a duplicate name will return a 400 status code.", "example": "My custom metric", "type": "string" }, "updated": { "description": "The datetime when this custom metric was updated.", "example": "2025-04-15T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "definition" ], "type": "object" }, "id": { "description": "The ID of the custom metric", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "metrics": { "properties": { "data": { "items": { "properties": { "id": { "description": "Related metrics", "type": "string" }, "type": { "$ref": "#/components/schemas/MetricEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/CustomMetricEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostDataSourceResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "description": { "description": "The description of the data source", "example": "This is a data source", "type": "string" }, "namespace": { "description": "The namespace of the data source", "example": "custom-objects", "type": "string" }, "title": { "description": "The title of the data source", "example": "My Data Source", "type": "string" }, "visibility": { "description": "The status of the data source", "enum": [ "private", "shared" ], "type": "string" } }, "required": [ "title", "visibility", "description", "namespace" ], "type": "object" }, "id": { "description": "The ID of the data source", "example": "01KH1D6P9Y8TJ7Q6MHXWZMPDN3", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/DataSourceEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostEncodedFormResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "ab_test": { "description": "Whether the form has an A/B test configured.", "type": "boolean" }, "created_at": { "description": "The ISO8601 timestamp when the form was created.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" }, "definition": { "$ref": "#/components/schemas/FormDefinition", "description": "The encoded form definition." }, "name": { "description": "The name of the form.", "example": "Cyber Monday Deals", "type": "string" }, "status": { "description": "The status of the form.", "enum": [ "draft", "live" ], "example": "draft", "type": "string" }, "updated_at": { "description": "The ISO8601 timestamp when the form was last updated.", "example": "2024-03-04T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "status", "ab_test", "name", "definition", "created_at", "updated_at" ], "type": "object" }, "id": { "description": "The ID of the form", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/FormEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostFlowSeriesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "date_times": { "description": "An array of date times which correspond to the equivalent index in the results data.", "example": [ "2024-01-05T00:00:00+00:00", "2024-01-06T00:00:00+00:00", "2024-01-07T00:00:00+00:00" ], "items": { "format": "date-time", "type": "string" }, "type": "array" }, "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.\nEach value in the results array corresponds to the date time at the same index.", "example": [ { "groupings": { "flow_id": "XVTP5Q", "flow_message_id": "01GMRWDSA0ARTAKE1SFX8JGXAY", "send_channel": "email" }, "statistics": { "open_rate": [ 0.8253, 0.8722, 0.8398 ], "opens": [ 123, 156, 144 ] } }, { "groupings": { "flow_id": "XVTP5Q", "flow_message_id": "01GJTHNWVG93F3KNX71SJ4FDBB", "send_channel": "email" }, "statistics": { "open_rate": [ 0.7562, 0.761, 0.688 ], "opens": [ 97, 98, 65 ] } } ], "items": { "$ref": "#/components/schemas/SeriesData" }, "type": "array" } }, "required": [ "results", "date_times" ], "type": "object" }, "relationships": { "properties": { "flow-messages": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flows": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostFlowV2Response": { "properties": { "data": { "properties": { "attributes": { "properties": { "archived": { "nullable": true, "type": "boolean" }, "created": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/FlowDefinition", "description": "The encoded flow definition. Unsupported objects (triggers, actions, etc.) will be included but labeled as unsupported.", "nullable": true }, "name": { "nullable": true, "type": "string" }, "status": { "nullable": true, "type": "string" }, "trigger_type": { "description": "Corresponds to the object which triggered the flow.", "enum": [ "Added to List", "Date Based", "Low Inventory", "Metric", "Price Drop", "Unconfigured" ], "nullable": true, "type": "string" }, "updated": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-actions": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowActionEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostFlowValuesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.", "example": [ { "groupings": { "flow_id": "XVTP5Q", "flow_message_id": "01GMRWDSA0ARTAKE1SFX8JGXAY", "send_channel": "email" }, "statistics": { "open_rate": 0.8253, "opens": 123 } }, { "groupings": { "flow_id": "XVTP5Q", "flow_message_id": "01GJTHNWVG93F3KNX71SJ4FDBB", "send_channel": "email" }, "statistics": { "open_rate": 0.7562, "opens": 97 } } ], "items": { "$ref": "#/components/schemas/ValuesData" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "relationships": { "properties": { "flow-messages": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowMessageEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flows": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/FlowValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostFormSeriesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "date_times": { "description": "An array of date times which correspond to the equivalent index in the results data.", "example": [ "2024-01-05T00:00:00+00:00", "2024-01-06T00:00:00+00:00", "2024-01-07T00:00:00+00:00" ], "items": { "format": "date-time", "type": "string" }, "type": "array" }, "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.\nEach value in the results array corresponds to the date time at the same index.", "example": [ { "groupings": { "form_id": "abc123" }, "statistics": { "submits": [ 20, 22, 28 ], "viewed_form": [ 100, 120, 140 ] } }, { "groupings": { "form_id": "def456" }, "statistics": { "submits": [ 20, 25, 30 ], "viewed_form": [ 200, 300, 400 ] } } ], "items": { "$ref": "#/components/schemas/SeriesData" }, "type": "array" } }, "required": [ "results", "date_times" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FormSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostFormValuesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.", "example": [ { "groupings": { "form_id": "abc123", "form_version_id": "012tuy" }, "statistics": { "submit_rate": 0.1, "submits": 9, "viewed_form": 90 } }, { "groupings": { "form_id": "abc123", "form_version_id": "756ghi" }, "statistics": { "submit_rate": 0.1, "submits": 1, "viewed_form": 10 } } ], "items": { "$ref": "#/components/schemas/ValuesData" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "type": { "$ref": "#/components/schemas/FormValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostImageResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "format": { "type": "string" }, "hidden": { "type": "boolean" }, "image_url": { "type": "string" }, "name": { "type": "string" }, "size": { "type": "integer" }, "updated_at": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "image_url", "format", "size", "hidden", "updated_at" ], "type": "object" }, "id": { "description": "The ID of the image", "example": "7", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ImageEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostListCreateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "name": { "description": "A helpful name to label the list", "example": "Newsletter", "nullable": true, "type": "string" }, "opt_in_process": { "description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.", "enum": [ "double_opt_in", "single_opt_in" ], "example": "double_opt_in", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this list. Generated by Klaviyo.", "example": "Y6nRLr", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostMetricAggregateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "data": { "description": "Aggregation result data", "items": { "$ref": "#/components/schemas/MetricAggregateRowDTO" }, "type": "array" }, "dates": { "description": "The dates of the query range", "items": { "format": "date-time", "type": "string" }, "type": "array" } }, "required": [ "dates", "data" ], "type": "object" }, "id": { "description": "Ephemeral ID associated with the aggregation query", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/MetricAggregateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostProfileImportJobResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "started_at": { "description": "Date and time the job started processing in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "import-errors": { "properties": { "data": { "items": { "properties": { "id": { "description": "Errors encountering during import", "type": "string" }, "type": { "$ref": "#/components/schemas/ImportErrorEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/OnlyRelatedLinks" } }, "type": "object" }, "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "List to add the profiles to", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created/updated profiles", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileBulkImportJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostProfileMergeResponse": { "properties": { "data": { "properties": { "id": { "description": "The ID of the destination profile that was merged into", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostProfileResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_event_date": { "description": "Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "predictive_analytics": { "$ref": "#/components/schemas/PredictiveAnalytics", "nullable": true }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "subscriptions": { "$ref": "#/components/schemas/Subscriptions", "nullable": true }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "push-tokens": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostSegmentCreateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Whether the segment is active. Inactive segments are not processed and their membership does not update.", "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_starred": { "type": "boolean" }, "name": { "description": "A helpful name to label the segment", "example": "Repeat Purchasers", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "is_active", "is_processing", "is_starred" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostSegmentSeriesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "date_times": { "description": "An array of date times which correspond to the equivalent index in the results data.", "example": [ "2024-01-05T00:00:00+00:00", "2024-01-06T00:00:00+00:00", "2024-01-07T00:00:00+00:00" ], "items": { "format": "date-time", "type": "string" }, "type": "array" }, "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.\nEach value in the results array corresponds to the date time at the same index.", "example": [ { "groupings": { "segment_id": "abc123" }, "statistics": { "net_members_changed": [ 40, 62, 88 ], "total_members": [ 120, 185, 240 ] } }, { "groupings": { "segment_id": "def456" }, "statistics": { "net_members_changed": [ 36, 66, 86 ], "total_members": [ 103, 163, 213 ] } } ], "items": { "$ref": "#/components/schemas/SeriesData" }, "type": "array" } }, "required": [ "results", "date_times" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostSegmentValuesResponseDTO": { "properties": { "data": { "properties": { "attributes": { "properties": { "results": { "description": "An array of all the returned values data.\nEach object in the array represents one unique grouping and the results for that grouping.", "example": [ { "groupings": { "segment_id": "abc123" }, "statistics": { "net_members_changed": 53, "total_members": 120 } }, { "groupings": { "segment_id": "def123" }, "statistics": { "net_members_changed": 113, "total_members": 250 } } ], "items": { "$ref": "#/components/schemas/ValuesData" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostTagGroupResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "default": { "description": "Every company automatically has one Default Tag Group. The Default Tag Group cannot be deleted, and no other Default Tag Groups can be created. This value is true for the Default Tag Group and false for all other Tag Groups.", "type": "boolean" }, "exclusive": { "description": "If a tag group is non-exclusive, any given related resource (campaign, flow, etc.) can be linked to multiple tags from that tag group. If a tag group is exclusive, any given related resource can only be linked to one tag from that tag group.", "type": "boolean" }, "name": { "description": "The Tag Group name", "example": "My Tag Group", "type": "string" } }, "required": [ "name", "exclusive", "default" ], "type": "object" }, "id": { "description": "The Tag Group ID", "example": "zyxw9876-vu54-ts32-rq10-zyxwvu654321", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostTagResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "name": { "description": "The Tag name", "example": "My Tag", "type": "string" } }, "required": [ "name" ], "type": "object" }, "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaigns": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flows": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tag-group": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostTemplateDndResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo", "nullable": true, "type": "string" }, "created": { "description": "The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "Template definition for SYSTEM_DRAGGABLE templates. Omitted for CODE/USER_DRAGGABLE. Use additional-fields[template]=definition to include in list responses.", "nullable": true }, "editor_type": { "description": "`editor_type` has a fixed set of values:\n* SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template\n* SIMPLE: A rich text editor template\n* CODE: A custom HTML template\n* USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor", "type": "string" }, "html": { "description": "The rendered HTML of the template", "type": "string" }, "name": { "description": "The name of the template", "type": "string" }, "text": { "description": "The template plain_text", "nullable": true, "type": "string" }, "updated": { "description": "The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type", "html" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostTemplateResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo", "nullable": true, "type": "string" }, "created": { "description": "The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "editor_type": { "description": "`editor_type` has a fixed set of values:\n* SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template\n* SIMPLE: A rich text editor template\n* CODE: A custom HTML template\n* USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor", "type": "string" }, "html": { "description": "The rendered HTML of the template", "type": "string" }, "name": { "description": "The name of the template", "type": "string" }, "text": { "description": "The template plain_text", "nullable": true, "type": "string" }, "updated": { "description": "The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type", "html" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostUniversalContentResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this universal content was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV0" }, { "$ref": "#/components/schemas/CouponBlockV0" }, { "$ref": "#/components/schemas/DropShadowBlockV0" }, { "$ref": "#/components/schemas/HeaderBlockV0" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV0" }, { "$ref": "#/components/schemas/HTMLBlockV0" }, { "$ref": "#/components/schemas/ImageBlockV0" }, { "$ref": "#/components/schemas/ProductBlockV0" }, { "$ref": "#/components/schemas/ReviewBlockV0" }, { "$ref": "#/components/schemas/SocialBlockV0" }, { "$ref": "#/components/schemas/SpacerBlockV0" }, { "$ref": "#/components/schemas/SplitBlockV0" }, { "$ref": "#/components/schemas/TableBlockV0" }, { "$ref": "#/components/schemas/TextBlockV0" }, { "$ref": "#/components/schemas/UnsupportedBlock" }, { "$ref": "#/components/schemas/VideoBlockV0" }, { "$ref": "#/components/schemas/SectionV0" } ] }, "name": { "description": "The name for this universal content", "type": "string" }, "screenshot_status": { "description": "The status of a universal content screenshot.", "enum": [ "completed", "failed", "generating", "never_generated", "not_renderable", "stale" ], "type": "string" }, "screenshot_url": { "type": "string" }, "updated": { "description": "The datetime when this universal content was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "screenshot_status", "screenshot_url" ], "type": "object" }, "id": { "description": "The ID of the universal content", "example": "01HWWWKAW4RHXQJCMW4R2KRYR4", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateUniversalContentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostWebFeedResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "content_type": { "description": "The content-type of the web feed", "enum": [ "json", "xml" ], "example": "json", "type": "string" }, "created": { "description": "Date and time when the web feed was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The name of this web feed", "example": "Blog_posts", "type": "string" }, "request_method": { "description": "The HTTP method for requesting the web feed", "enum": [ "get", "post" ], "example": "get", "type": "string" }, "status": { "description": "The cache status of this web feed if it exists", "enum": [ "critical_nightly_refresh_timeout", "disabled", "ok", "refreshing", "warning_nightly_refresh_timeout", "warning_periodic_refresh_timeout" ], "example": "ok", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the web feed was updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "url": { "description": "The URL of the web feed", "example": "https://help.klaviyo.com/api/v2/help_center/en-us/articles.json", "type": "string" } }, "required": [ "name", "url", "request_method", "content_type", "created", "updated" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this web feed. Generated by Klaviyo", "example": "925e385b52fb", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/WebFeedEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PostWebhookResponse": { "properties": { "data": { "properties": { "attributes": { "properties": { "created_at": { "description": "Date and time when the webhook was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" }, "description": { "description": "A description for the webhook.", "example": "A webhook for sms events", "nullable": true, "type": "string" }, "enabled": { "description": "Is the webhook enabled.", "type": "boolean" }, "endpoint_url": { "description": "The url to send webhook requests to, truncated for security.", "example": "https://www.example.com", "type": "string" }, "name": { "description": "A name for the webhook.", "example": "My Webhook", "type": "string" }, "updated_at": { "description": "Date and time when the webhook was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "endpoint_url", "enabled" ], "type": "object" }, "id": { "description": "The ID of the webhook.", "example": "01HF7AYTK76RHR4F17G6DGTRGF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "webhook-topics": { "properties": { "data": { "items": { "properties": { "id": { "description": "A topic the webhook is subscribed to.", "example": "event:klaviyo.sent_sms", "type": "string" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/WebhookEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "links": { "$ref": "#/components/schemas/ObjectLinks" } }, "required": [ "data" ], "type": "object" }, "PredictiveAnalytics": { "properties": { "average_days_between_orders": { "description": "Average number of days between orders (None if only one order has been placed)", "example": 189, "nullable": true, "type": "number" }, "average_order_value": { "description": "Average value of placed orders", "example": 46.94, "nullable": true, "type": "number" }, "churn_probability": { "description": "Probability the customer has churned", "example": 0.89, "nullable": true, "type": "number" }, "expected_date_of_next_order": { "description": "Expected date of next order, as calculated at the time of their most recent order", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "historic_clv": { "description": "Total value of all historically placed orders", "example": 93.87, "nullable": true, "type": "number" }, "historic_number_of_orders": { "description": "Number of already placed orders", "example": 2, "nullable": true, "type": "number" }, "predicted_clv": { "description": "Predicted value of all placed orders in the next 365 days", "example": 27.24, "nullable": true, "type": "number" }, "predicted_number_of_orders": { "description": "Predicted number of placed orders in the next 365 days", "example": 0.54, "nullable": true, "type": "number" }, "ranked_channel_affinity": { "description": "List of channels ranked by their predicted effectiveness for this profile, with the best channel being listed first at index 0", "example": [ "sms", "email", "push" ], "items": { "description": "Enum for channel name return values used in the V3 API for channel affinity for the field `ranked_channel_affinity`.", "enum": [ "email", "push", "sms", "whatsapp" ], "type": "string" }, "nullable": true, "type": "array" }, "total_clv": { "description": "Sum of historic and predicted CLV", "example": 121.11, "nullable": true, "type": "number" } }, "type": "object" }, "PreferencePageFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/EqualsStringFilter", "description": "Optional filter on a specific subscribe page url", "nullable": true }, "method": { "enum": [ "preference_page" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "PreferencePageMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "preference_page" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "PreviouslySubmitted": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TriggerBaseProperties" }, "type": { "enum": [ "previously_submitted" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "PriceDropCondition": { "properties": { "field": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "metric_id": { "nullable": true, "type": "string" }, "type": { "enum": [ "price-drop-property" ], "type": "string" } }, "required": [ "type", "metric_id", "field", "filter" ], "type": "object" }, "PriceDropTrigger": { "properties": { "audience": { "items": { "description": "The profiles which the price drop trigger applies to.", "enum": [ "checkout-started", "viewed" ], "type": "string" }, "type": "array" }, "currency_type": { "default": "usd", "description": "Currency type.", "enum": [ "usd" ], "example": "usd", "type": "string" }, "price_drop_amount_unit": { "default": "currency", "description": "Price Drop amount type.", "enum": [ "currency", "percent" ], "example": "currency", "type": "string" }, "price_drop_amount_value": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] }, "timeframe_days": { "default": 30, "example": 30, "type": "integer" }, "trigger_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "$ref": "#/components/schemas/PriceDropCondition" }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "type": { "enum": [ "price-drop" ], "type": "string" } }, "required": [ "type", "trigger_filter", "price_drop_amount_value", "audience" ], "type": "object" }, "ProductBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "oneOf": [ { "$ref": "#/components/schemas/StaticProductBlockProperties" }, { "$ref": "#/components/schemas/DynamicProductBlockProperties" } ] }, "styles": { "$ref": "#/components/schemas/ProductBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "ProductBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "button_alignment": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "button_background_color": { "nullable": true, "type": "string" }, "button_border_color": { "nullable": true, "type": "string" }, "button_border_radius": { "nullable": true, "type": "integer" }, "button_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "button_border_width": { "nullable": true, "type": "integer" }, "button_drop_shadow_color": { "nullable": true, "type": "string" }, "button_font_color": { "nullable": true, "type": "string" }, "button_font_family": { "nullable": true, "type": "string" }, "button_font_size": { "nullable": true, "type": "integer" }, "button_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "button_font_weight": { "nullable": true, "type": "string" }, "button_letter_spacing": { "nullable": true, "type": "integer" }, "button_padding_bottom": { "nullable": true, "type": "integer" }, "button_padding_left": { "nullable": true, "type": "integer" }, "button_padding_right": { "nullable": true, "type": "integer" }, "button_padding_top": { "nullable": true, "type": "integer" }, "button_text_decoration": { "nullable": true, "type": "string" }, "description_font_color": { "nullable": true, "type": "string" }, "description_font_family": { "nullable": true, "type": "string" }, "description_font_size": { "nullable": true, "type": "integer" }, "description_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "description_font_weight": { "nullable": true, "type": "string" }, "description_letter_spacing": { "nullable": true, "type": "integer" }, "description_padding_bottom": { "nullable": true, "type": "integer" }, "description_padding_top": { "nullable": true, "type": "integer" }, "description_text_decoration": { "nullable": true, "type": "string" }, "item_border_color": { "nullable": true, "type": "string" }, "item_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "item_border_width": { "nullable": true, "type": "integer" }, "item_max_height": { "nullable": true, "type": "integer" }, "item_padding_bottom": { "nullable": true, "type": "integer" }, "item_padding_left": { "nullable": true, "type": "integer" }, "item_padding_right": { "nullable": true, "type": "integer" }, "item_padding_top": { "nullable": true, "type": "integer" }, "item_text_alignment": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "layout": { "description": "Product layout options.", "enum": [ "horizontal", "vertical-left-image", "vertical-right-image" ], "nullable": true, "type": "string" }, "num_columns": { "nullable": true, "type": "integer" }, "num_rows": { "nullable": true, "type": "integer" }, "original_price_font_color": { "nullable": true, "type": "string" }, "original_price_font_family": { "nullable": true, "type": "string" }, "original_price_font_size": { "nullable": true, "type": "integer" }, "original_price_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "original_price_font_weight": { "nullable": true, "type": "string" }, "original_price_text_decoration": { "nullable": true, "type": "string" }, "price_font_color": { "nullable": true, "type": "string" }, "price_font_family": { "nullable": true, "type": "string" }, "price_font_size": { "nullable": true, "type": "integer" }, "price_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "price_font_weight": { "nullable": true, "type": "string" }, "price_letter_spacing": { "nullable": true, "type": "integer" }, "price_padding_bottom": { "nullable": true, "type": "integer" }, "price_padding_top": { "nullable": true, "type": "integer" }, "price_text_decoration": { "nullable": true, "type": "string" }, "rating_font_color": { "nullable": true, "type": "string" }, "rating_font_family": { "nullable": true, "type": "string" }, "rating_font_size": { "nullable": true, "type": "integer" }, "rating_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "rating_font_weight": { "nullable": true, "type": "string" }, "rating_letter_spacing": { "nullable": true, "type": "integer" }, "rating_padding_bottom": { "nullable": true, "type": "integer" }, "rating_padding_top": { "nullable": true, "type": "integer" }, "rating_text_decoration": { "nullable": true, "type": "string" }, "stack_on_mobile": { "nullable": true, "type": "boolean" }, "title_font_color": { "nullable": true, "type": "string" }, "title_font_family": { "nullable": true, "type": "string" }, "title_font_size": { "nullable": true, "type": "integer" }, "title_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "title_font_weight": { "nullable": true, "type": "string" }, "title_letter_spacing": { "nullable": true, "type": "integer" }, "title_padding_bottom": { "nullable": true, "type": "integer" }, "title_padding_top": { "nullable": true, "type": "integer" }, "title_text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "ProductBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "product" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ProductBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/ProductBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "subblocks": { "items": { "$ref": "#/components/schemas/ProductSubBlock" }, "nullable": true, "type": "array" }, "type": { "enum": [ "product" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ProductSubBlock": { "properties": { "autogenerate_link": { "nullable": true, "type": "boolean" }, "button_text": { "nullable": true, "type": "string" }, "currency_code": { "nullable": true, "type": "string" }, "description": { "nullable": true, "type": "string" }, "external_id": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "image_url": { "nullable": true, "type": "string" }, "link": { "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "original_price": { "nullable": true, "type": "string" }, "price": { "nullable": true, "type": "string" }, "product_id": { "nullable": true, "type": "string" }, "title": { "nullable": true, "type": "string" }, "type": { "enum": [ "product" ], "type": "string" }, "url": { "nullable": true, "type": "string" } }, "required": [ "type" ], "type": "object" }, "ProfileBulkImportJobEnum": { "enum": [ "profile-bulk-import-job" ], "type": "string" }, "ProfileCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ProfileCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ProfileCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileEnum": { "enum": [ "profile" ], "type": "string" }, "ProfileEventTracked": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ProfileEventTrackedProperties" }, "type": { "enum": [ "profile_event_tracked" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ProfileEventTrackedProperties": { "properties": { "metric": { "default": "", "nullable": true, "type": "string" }, "property_filters": { "items": { "$ref": "#/components/schemas/PropertyFilter" }, "nullable": true, "type": "array" } }, "type": "object" }, "ProfileHasCustomObjectCondition": { "properties": { "filter": { "$ref": "#/components/schemas/IntegerFilter" }, "filters": { "items": { "$ref": "#/components/schemas/ProfileHasCustomObjectFilter" }, "type": "array" }, "object_type_id": { "type": "string" }, "object_type_relationship_id": { "type": "string" }, "type": { "enum": [ "profile-has-custom-object" ], "type": "string" } }, "required": [ "type", "object_type_id", "object_type_relationship_id", "filter", "filters" ], "type": "object" }, "ProfileHasCustomObjectFilter": { "properties": { "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/NumericRangeFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "property_id": { "type": "integer" } }, "required": [ "property_id", "filter" ], "type": "object" }, "ProfileHasGroupMembershipCondition": { "properties": { "group_ids": { "items": { "type": "string" }, "type": "array" }, "is_member": { "enum": [ true ], "type": "boolean" }, "timeframe_filter": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" } ] }, "type": { "enum": [ "profile-group-membership" ], "type": "string" } }, "required": [ "type", "is_member", "group_ids" ], "type": "object" }, "ProfileHasNotReceivedEmailMessageCondition": { "properties": { "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/AlltimeDateFilter" }, { "$ref": "#/components/schemas/InTheLastBaseRelativeDateFilter" } ] }, "type": { "enum": [ "profile-not-sent-email" ], "type": "string" } }, "required": [ "type", "timeframe_filter" ], "type": "object" }, "ProfileHasNotReceivedPushMessageCondition": { "properties": { "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/AlltimeDateFilter" }, { "$ref": "#/components/schemas/InTheLastBaseRelativeDateFilter" } ] }, "type": { "enum": [ "profile-not-sent-push" ], "type": "string" } }, "required": [ "type", "timeframe_filter" ], "type": "object" }, "ProfileHasNotReceivedSmsMessageCondition": { "properties": { "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/AlltimeDateFilter" }, { "$ref": "#/components/schemas/InTheLastBaseRelativeDateFilter" } ] }, "type": { "enum": [ "profile-not-sent-sms" ], "type": "string" } }, "required": [ "type", "timeframe_filter" ], "type": "object" }, "ProfileIdentifierDTOResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileImportJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ProfileImportJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ProfileImportJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "profiles": { "description": "Array of profiles to create or update", "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileUpsertQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profiles" ], "type": "object" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "Optional list to add the profiles to", "example": "VRgFBd", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileBulkImportJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileImportJobResponseObjectResource": { "properties": { "attributes": { "properties": { "completed_at": { "description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "completed_count": { "default": 0, "description": "The total number of operations that have been completed by the job.", "example": 9, "nullable": true, "type": "integer" }, "created_at": { "description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "expires_at": { "description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "failed_count": { "default": 0, "description": "The total number of operations that have failed as part of the job.", "example": 1, "nullable": true, "type": "integer" }, "started_at": { "description": "Date and time the job started processing in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "status": { "description": "Status of the asynchronous job.", "enum": [ "cancelled", "complete", "processing", "queued" ], "example": "processing", "type": "string" }, "total_count": { "description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.", "example": 10, "type": "integer" } }, "required": [ "status", "created_at", "total_count" ], "type": "object" }, "id": { "description": "Unique identifier for retrieving the job. Generated by Klaviyo.", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "import-errors": { "properties": { "data": { "items": { "properties": { "id": { "description": "Errors encountering during import", "type": "string" }, "type": { "$ref": "#/components/schemas/ImportErrorEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/OnlyRelatedLinks" } }, "type": "object" }, "lists": { "properties": { "data": { "items": { "properties": { "id": { "description": "List to add the profiles to", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "description": "IDs of the created/updated profiles", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileBulkImportJobEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ProfileLocation": { "properties": { "address1": { "description": "First line of street address", "example": "89 E 42nd St", "nullable": true, "type": "string" }, "address2": { "description": "Second line of street address", "example": "1st floor", "nullable": true, "type": "string" }, "city": { "description": "City name", "example": "New York", "nullable": true, "type": "string" }, "country": { "description": "Country name", "example": "United States", "nullable": true, "type": "string" }, "ip": { "description": "IP Address", "example": "127.0.0.1", "nullable": true, "type": "string" }, "latitude": { "description": "Latitude coordinate. We recommend providing a precision of four decimal places.", "example": "40.7128", "nullable": true, "oneOf": [ { "type": "string" }, { "type": "number" } ] }, "longitude": { "description": "Longitude coordinate. We recommend providing a precision of four decimal places.", "example": "74.0060", "nullable": true, "oneOf": [ { "type": "string" }, { "type": "number" } ] }, "region": { "description": "Region within a country, such as state or province", "example": "NY", "nullable": true, "type": "string" }, "timezone": { "description": "Time zone name. We recommend using time zones from the IANA Time Zone Database.", "example": "America/New_York", "nullable": true, "type": "string" }, "zip": { "description": "Zip code", "example": "10017", "nullable": true, "type": "string" } }, "type": "object" }, "ProfileMarketingConsentCondition": { "properties": { "consent": { "oneOf": [ { "$ref": "#/components/schemas/HasEmailMarketingConsent" }, { "$ref": "#/components/schemas/NoEmailMarketingConsent" }, { "$ref": "#/components/schemas/HasSMSMarketingConsent" }, { "$ref": "#/components/schemas/NoSMSMarketingConsent" }, { "$ref": "#/components/schemas/HasPushMarketingConsent" }, { "$ref": "#/components/schemas/NoPushMarketingConsent" } ] }, "type": { "enum": [ "profile-marketing-consent" ], "type": "string" } }, "required": [ "type", "consent" ], "type": "object" }, "ProfileMergeEnum": { "enum": [ "profile-merge" ], "type": "string" }, "ProfileMergeQuery": { "properties": { "data": { "$ref": "#/components/schemas/ProfileMergeQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ProfileMergeQueryResourceObject": { "properties": { "id": { "description": "The ID of the destination profile to merge into", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "relationships": { "properties": { "profiles": { "properties": { "data": { "items": { "properties": { "id": { "description": "The ID of a source profile to merge into the destination profile", "example": "01GDDKASAP8TKDDA2GRZDSVP4I", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "required": [ "profiles" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileMergeEnum" } }, "required": [ "type", "id", "relationships" ], "type": "object" }, "ProfileMeta": { "properties": { "patch_identifiers": { "$ref": "#/components/schemas/PatchIdentifiers", "description": "Specify one or more patch operations to apply to existing identifier data. Currently only `email` is supported, and it is used to add or remove secondary email addresses on a profile.", "example": { "append": { "email": [ "example@test.com", "another@example.com" ] } }, "nullable": true }, "patch_properties": { "$ref": "#/components/schemas/ProfileMetaPatchProperties", "description": "Specify one or more patch operations to apply to existing property data", "example": { "append": { "skus": "92538" } }, "nullable": true } }, "type": "object" }, "ProfileMetaPatchProperties": { "properties": { "append": { "description": "Append a simple value or values to this property array", "example": { "skus": "92538" }, "nullable": true, "type": "object" }, "unappend": { "description": "Remove a simple value or values from this property array", "example": { "skus": "40571" }, "nullable": true, "type": "object" }, "unset": { "description": "Remove a key or keys (and their values) completely from properties", "example": "skus", "nullable": true, "oneOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" } ] } }, "type": "object" }, "ProfileMetricFunnelSteps": { "properties": { "metric_exists": { "type": "boolean" }, "metric_filters": { "items": { "$ref": "#/components/schemas/ProfileMetricPropertyFilter" }, "nullable": true, "type": "array" }, "metric_id": { "type": "string" } }, "required": [ "metric_exists", "metric_id" ], "type": "object" }, "ProfileMetricPropertyFilter": { "properties": { "filter": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" }, { "$ref": "#/components/schemas/ListSetFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ListSubstringFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" } ] }, "property": { "type": "string" } }, "required": [ "property" ], "type": "object" }, "ProfileModificationMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "profile_modification" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ProfileNoGroupMembershipCondition": { "properties": { "group_ids": { "items": { "type": "string" }, "type": "array" }, "is_member": { "enum": [ false ], "type": "boolean" }, "type": { "enum": [ "profile-group-membership" ], "type": "string" } }, "required": [ "type", "is_member", "group_ids" ], "type": "object" }, "ProfileNotInFlowCondition": { "properties": { "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/AlltimeDateFilter" }, { "$ref": "#/components/schemas/InTheLastBaseRelativeDateFilter" } ] }, "type": { "enum": [ "profile-not-in-flow" ], "type": "string" } }, "required": [ "type", "timeframe_filter" ], "type": "object" }, "ProfileOperationDelete": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "delete" ], "type": "string" }, "property_key": { "type": "string" } }, "required": [ "operator", "property_key" ], "type": "object" }, "ProfileOperationUpdateOrCreateBoolean": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "create", "update" ], "type": "string" }, "property_key": { "type": "string" }, "property_type": { "enum": [ "boolean" ], "type": "string" }, "property_value": { "type": "boolean" } }, "required": [ "operator", "property_type", "property_key", "property_value" ], "type": "object" }, "ProfileOperationUpdateOrCreateDate": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "create", "update" ], "type": "string" }, "property_key": { "type": "string" }, "property_type": { "enum": [ "date" ], "type": "string" }, "property_value": { "oneOf": [ { "format": "date", "type": "string" }, { "enum": [ "today" ], "type": "string" } ] } }, "required": [ "operator", "property_type", "property_key", "property_value" ], "type": "object" }, "ProfileOperationUpdateOrCreateList": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "create", "update" ], "type": "string" }, "property_key": { "type": "string" }, "property_operation": { "description": "The type of operation to perform on a list property.", "enum": [ "add", "remove" ], "nullable": true, "type": "string" }, "property_type": { "enum": [ "list" ], "type": "string" }, "property_value": { "type": "string" } }, "required": [ "operator", "property_type", "property_key", "property_value" ], "type": "object" }, "ProfileOperationUpdateOrCreateNumeric": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "create", "update" ], "type": "string" }, "property_key": { "type": "string" }, "property_type": { "enum": [ "numeric" ], "type": "string" }, "property_value": { "oneOf": [ { "type": "integer" }, { "type": "number" } ] } }, "required": [ "operator", "property_type", "property_key", "property_value" ], "type": "object" }, "ProfileOperationUpdateOrCreateString": { "properties": { "operator": { "description": "The type of operation to perform on a profile property.", "enum": [ "create", "update" ], "type": "string" }, "property_key": { "type": "string" }, "property_type": { "enum": [ "string" ], "type": "string" }, "property_value": { "type": "string" } }, "required": [ "operator", "property_type", "property_key", "property_value" ], "type": "object" }, "ProfilePartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ProfilePartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ProfilePartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "type": "string" }, "meta": { "$ref": "#/components/schemas/ProfileMeta", "nullable": true }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "ProfilePermissionsCondition": { "properties": { "channel": { "description": "Possible channels for profile permissions criterion.", "enum": [ "whatsapp_marketing", "whatsapp_transactional" ], "type": "string" }, "permission": { "oneOf": [ { "$ref": "#/components/schemas/ExplicitlyReachable" }, { "$ref": "#/components/schemas/ImplicitlyReachable" }, { "$ref": "#/components/schemas/ImplicitlyOrExplicitlyReachable" }, { "$ref": "#/components/schemas/ExplicitlyUnreachable" }, { "$ref": "#/components/schemas/ImplicitlyUnreachable" }, { "$ref": "#/components/schemas/ImplicitlyOrExplicitlyUnreachable" } ] }, "type": { "enum": [ "profile-permissions" ], "type": "string" } }, "required": [ "type", "permission", "channel" ], "type": "object" }, "ProfilePostalCodeDistanceCondition": { "properties": { "country_code": { "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/GreaterThanPositiveNumericFilter" }, { "$ref": "#/components/schemas/LessThanPositiveNumericFilter" } ] }, "postal_code": { "type": "string" }, "type": { "enum": [ "profile-postal-code-distance" ], "type": "string" }, "unit": { "description": "Units for profile postal code distance conditions.", "enum": [ "kilometers", "miles" ], "type": "string" } }, "required": [ "type", "country_code", "postal_code", "unit", "filter" ], "type": "object" }, "ProfilePredictiveAnalyticsChannelAffinityPriorityCondition": { "properties": { "dimension": { "description": "Possible dimension for channel affinity criterion.", "enum": [ "channel_affinity" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityPriorityFilter" }, "measurement": { "enum": [ "priority" ], "type": "string" }, "predicted_channel": { "description": "Possible channels in a channel affinity definition.", "enum": [ "email", "push", "sms", "whatsapp" ], "type": "string" }, "type": { "enum": [ "profile-predictive-analytics" ], "type": "string" } }, "required": [ "type", "dimension", "measurement", "predicted_channel", "filter" ], "type": "object" }, "ProfilePredictiveAnalyticsChannelAffinityPriorityFilter": { "properties": { "operator": { "enum": [ "equals" ], "type": "string" }, "type": { "enum": [ "numeric" ], "type": "string" }, "value": { "type": "integer" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ProfilePredictiveAnalyticsChannelAffinityRankCondition": { "properties": { "dimension": { "description": "Possible dimension for channel affinity criterion.", "enum": [ "channel_affinity" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsChannelAffinityRankFilter" }, "measurement": { "enum": [ "rank" ], "type": "string" }, "predicted_channel": { "description": "Possible channels in a channel affinity definition.", "enum": [ "email", "push", "sms", "whatsapp" ], "type": "string" }, "type": { "enum": [ "profile-predictive-analytics" ], "type": "string" } }, "required": [ "type", "dimension", "measurement", "predicted_channel", "filter" ], "type": "object" }, "ProfilePredictiveAnalyticsChannelAffinityRankFilter": { "properties": { "operator": { "oneOf": [ { "enum": [ "equals" ], "type": "string" }, { "enum": [ "not-equals" ], "type": "string" } ] }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "description": "Possible rank values in a channel affinity definition.", "enum": [ "high", "low", "medium" ], "type": "string" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ProfilePredictiveAnalyticsDateCondition": { "properties": { "dimension": { "description": "Dimension for date profile predictive analytics conditions.", "enum": [ "expected_date_of_next_purchase" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" } ] }, "type": { "enum": [ "profile-predictive-analytics" ], "type": "string" } }, "required": [ "dimension", "filter", "type" ], "type": "object" }, "ProfilePredictiveAnalyticsNumericCondition": { "properties": { "dimension": { "description": "Dimensions for numeric profile predictive analytics conditions.", "enum": [ "average_days_between_orders", "average_order_value", "churn_probability", "historic_clv", "historic_number_of_orders", "predicted_clv", "predicted_number_of_orders", "total_clv" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, "type": { "enum": [ "profile-predictive-analytics" ], "type": "string" } }, "required": [ "type", "dimension", "filter" ], "type": "object" }, "ProfilePredictiveAnalyticsStringCondition": { "properties": { "dimension": { "description": "Dimension for string profile predictive analytics conditions.", "enum": [ "predicted_gender" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/ProfilePredictiveAnalyticsStringFilter" }, "type": { "enum": [ "profile-predictive-analytics" ], "type": "string" } }, "required": [ "type", "dimension", "filter" ], "type": "object" }, "ProfilePredictiveAnalyticsStringFilter": { "properties": { "operator": { "oneOf": [ { "enum": [ "equals" ], "type": "string" }, { "enum": [ "not-equals" ], "type": "string" } ] }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "description": "Values for profile predictive analytics gender conditions.", "enum": [ "likely_female", "likely_male", "uncertain" ], "type": "string" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ProfilePropertyCondition": { "properties": { "filter": { "oneOf": [ { "$ref": "#/components/schemas/StringOperatorStringFilter" }, { "$ref": "#/components/schemas/StringArrayOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/StringPhoneOperatorStringArrayFilter" }, { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, { "$ref": "#/components/schemas/BooleanFilter" }, { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" }, { "$ref": "#/components/schemas/ListContainsOperatorListContainsFilter" }, { "$ref": "#/components/schemas/ListLengthFilter" }, { "$ref": "#/components/schemas/ExistenceOperatorExistenceFilter" } ] }, "property": { "type": "string" }, "type": { "enum": [ "profile-property" ], "type": "string" } }, "required": [ "type", "property", "filter" ], "type": "object" }, "ProfilePropertyDateTrigger": { "properties": { "date_field_type": { "enum": [ "profile-property" ], "type": "string" }, "date_profile_property": { "type": "string" }, "recurrence_frequency": { "default": "monthly", "description": "aka RepeatTypes in app and RepeatType in fender.", "enum": [ "annually", "monthly", "never", "weekly" ], "example": "monthly", "type": "string" }, "timedelta_unit_before_date": { "default": "weeks", "description": "See FlowDateTrigger.UNIT_CHOICES in app and CountdownUnit in fender.", "enum": [ "days", "months", "weeks" ], "example": "weeks", "type": "string" }, "timedelta_value_before_date": { "type": "integer" }, "timezone": { "default": "profile", "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile" ], "example": "profile", "type": "string" }, "trigger_days": { "items": { "description": "Days of the week.", "enum": [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], "type": "string" }, "nullable": true, "type": "array" }, "trigger_time": { "format": "time", "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "date_field_type", "date_profile_property", "timedelta_value_before_date", "trigger_time" ], "type": "object" }, "ProfileRandomSampleCondition": { "properties": { "percentage": { "type": "integer" }, "type": { "enum": [ "profile-sample" ], "type": "string" } }, "required": [ "type", "percentage" ], "type": "object" }, "ProfileRegionCondition": { "properties": { "in_region": { "type": "boolean" }, "region": { "description": "Regions for profile region conditions.", "enum": [ "european_union", "united_states" ], "type": "string" }, "type": { "enum": [ "profile-region" ], "type": "string" } }, "required": [ "type", "in_region", "region" ], "type": "object" }, "ProfileResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_event_date": { "description": "Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "push-tokens": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes", "links" ], "type": "object" }, "ProfileSubscriptionBulkCreateJobEnum": { "enum": [ "profile-subscription-bulk-create-job" ], "type": "string" }, "ProfileSubscriptionBulkDeleteJobEnum": { "enum": [ "profile-subscription-bulk-delete-job" ], "type": "string" }, "ProfileSubscriptionCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "age_gated_date_of_birth": { "description": "The profile's date of birth. This field is required to update SMS consent for accounts using age-gating: https://help.klaviyo.com/hc/en-us/articles/17252552814875", "format": "date", "nullable": true, "type": "string" }, "email": { "description": "The email address relating to the email subscription included in `subscriptions`. If the email channel is omitted from `subscriptions`, this will be set on the profile.", "example": "matt-kemp@klaviyo-demo.com", "nullable": true, "type": "string" }, "phone_number": { "description": "The phone number relating to the SMS subscription included in `subscriptions`. If the SMS channel is omitted from `subscriptions`, this will be set on the profile. This must be in E.164 format.", "example": "+15005550006", "nullable": true, "type": "string" }, "subscriptions": { "$ref": "#/components/schemas/SubscriptionChannels", "description": "Specifies the channel and message types that the profile will be consented to." } }, "required": [ "subscriptions" ], "type": "object" }, "id": { "description": "The ID of the profile to subscribe. If provided, this will be used to perform the lookup.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileSubscriptionDeleteQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "The email address to unsubscribe.", "example": "matt-kemp@klaviyo-demo.com", "nullable": true, "type": "string" }, "phone_number": { "description": "The phone number to unsubscribe. This must be in E.164 format.", "example": "+15005550006", "nullable": true, "type": "string" }, "subscriptions": { "$ref": "#/components/schemas/UnsubscriptionChannels", "description": "Specifies the channel and message types that the profile will have consent revoked from." } }, "required": [ "subscriptions" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileSuppressionBulkCreateJobEnum": { "enum": [ "profile-suppression-bulk-create-job" ], "type": "string" }, "ProfileSuppressionBulkDeleteJobEnum": { "enum": [ "profile-suppression-bulk-delete-job" ], "type": "string" }, "ProfileSuppressionCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "The email of the profile to suppress.", "example": "matt-kemp@klaviyo-demo.com", "type": "string" } }, "required": [ "email" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileSuppressionDeleteQueryResourceObject": { "properties": { "attributes": { "properties": { "email": { "description": "The email of the profile to unsuppress.", "example": "matt-kemp@klaviyo-demo.com", "type": "string" } }, "required": [ "email" ], "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileUpsertQuery": { "properties": { "data": { "$ref": "#/components/schemas/ProfileUpsertQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ProfileUpsertQueryResourceObject": { "properties": { "attributes": { "properties": { "_kx": { "description": "Also known as the `exchange_id`, this is an encrypted identifier used for identifying a\nprofile by Klaviyo's web tracking.\n\nYou can use this field as a filter when retrieving profiles via the Get Profiles endpoint.", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "nullable": true, "type": "string" }, "meta": { "$ref": "#/components/schemas/ProfileMeta", "nullable": true }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ProfileUpsertQueryWithSubscriptionsResourceObject": { "properties": { "attributes": { "properties": { "_kx": { "description": "Also known as the `exchange_id`, this is an encrypted identifier used for identifying a\nprofile by Klaviyo's web tracking.\n\nYou can use this field as a filter when retrieving profiles via the Get Profiles endpoint.", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "meta": { "$ref": "#/components/schemas/ProfileMeta", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "subscriptions": { "$ref": "#/components/schemas/SubscriptionChannels", "nullable": true }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "PromotionalSMSSubscription": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "enum": [ null ] }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "promotional_sms_subscription" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "Property": { "properties": { "badge_config": { "enum": [ "set_property" ], "type": "string" }, "set_from_property": { "type": "string" } }, "required": [ "badge_config", "set_from_property" ], "type": "object" }, "PropertyFilter": { "properties": { "property": { "type": "string" }, "value": { "type": "string" } }, "required": [ "property", "value" ], "type": "object" }, "PropertyOption": { "properties": { "label": { "type": "string" }, "value": { "type": "string" } }, "required": [ "label", "value" ], "type": "object" }, "ProvidedLandlineMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "provided_landline" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ProvidedNoAgeMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "provided_no_age" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "PushActionButton": { "properties": { "action_type": { "description": "The action type for a push notification action button.", "enum": [ "deep_link", "dismiss", "open_app", "open_url" ], "type": "string" }, "custom_action_id": { "nullable": true, "type": "string" }, "icon": { "nullable": true, "type": "string" }, "label": { "type": "string" }, "position": { "nullable": true, "type": "integer" }, "url": { "nullable": true, "type": "string" } }, "required": [ "label", "action_type" ], "type": "object" }, "PushActionButtonDefinition": { "properties": { "action_type": { "description": "The action type: open_app, deep_link, open_url, or dismiss", "type": "string" }, "label": { "description": "The button label (max 40 characters)", "type": "string" }, "position": { "description": "The display order of the button (0-indexed). If omitted, inferred from the button's order in the list.", "nullable": true, "type": "integer" }, "url": { "description": "URL for deep_link or open_url action types (max 2048 characters)", "nullable": true, "type": "string" } }, "required": [ "label", "action_type" ], "type": "object" }, "PushChannel": { "properties": { "marketing": { "$ref": "#/components/schemas/PushMarketing", "description": "The mobile push marketing subscription.", "nullable": true } }, "type": "object" }, "PushMarketing": { "properties": { "can_receive_push_marketing": { "description": "Whether or not this profile is subscribed to receive mobile push.", "type": "boolean" }, "consent": { "description": "The consent status for mobile push marketing.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when the consent was last changed, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "can_receive_push_marketing", "consent" ], "type": "object" }, "PushOnOpenApp": { "properties": { "type": { "enum": [ "open_app" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "PushOnOpenDeepLink": { "properties": { "android_deep_link": { "description": "required for all platforms enabled for push", "nullable": true, "type": "string" }, "ios_deep_link": { "description": "required for all platforms enabled for push", "nullable": true, "type": "string" }, "type": { "enum": [ "deep_link" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "PushOnOpenWebUrl": { "properties": { "type": { "enum": [ "open_web_url" ], "type": "string" }, "web_url": { "description": "External url to open when push notification is triggered", "nullable": true, "type": "string" } }, "required": [ "type" ], "type": "object" }, "PushProfileUpsertQueryResourceObject": { "properties": { "attributes": { "properties": { "_kx": { "description": "Also known as the `exchange_id`, this is an encrypted identifier used for identifying a\nprofile by Klaviyo's web tracking.\n\nYou can use this field as a filter when retrieving profiles via the Get Profiles endpoint.", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "meta": { "$ref": "#/components/schemas/ProfileMeta", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "nullable": true, "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "PushSendOptions": { "properties": { "use_smart_sending": { "default": true, "description": "Use smart sending.", "example": true, "nullable": true, "type": "boolean" } }, "type": "object" }, "PushSubscriptionParameters": { "properties": { "anonymous_id": { "description": "An anonymous identifier for push-only profiles with no email/phone.", "nullable": true, "type": "string" }, "marketing": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to marketing on the \"Push\" channel." }, "tokens": { "description": "A list of push tokens to register for this profile.", "items": { "$ref": "#/components/schemas/PushTokenEntry" }, "nullable": true, "type": "array" } }, "required": [ "marketing" ], "type": "object" }, "PushTokenCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/PushTokenCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "PushTokenCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "background": { "default": "AVAILABLE", "description": "The background state of the push token.", "enum": [ "AVAILABLE", "DENIED", "RESTRICTED" ], "example": "AVAILABLE", "nullable": true, "type": "string" }, "device_metadata": { "$ref": "#/components/schemas/DeviceMetadata", "description": "Metadata about the device that created the push token", "nullable": true }, "enablement_status": { "default": "AUTHORIZED", "description": "This is the enablement status for the individual push token.", "enum": [ "AUTHORIZED", "DENIED", "NOT_DETERMINED", "PROVISIONAL", "UNAUTHORIZED" ], "example": "AUTHORIZED", "nullable": true, "type": "string" }, "platform": { "description": "The platform on which the push token was created.", "enum": [ "android", "ios" ], "type": "string" }, "profile": { "description": "The profile associated with the push token to create/update", "properties": { "data": { "$ref": "#/components/schemas/PushProfileUpsertQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "token": { "description": "A push token from APNS or FCM.", "example": "1234567890", "type": "string" }, "vendor": { "description": "The vendor of the push token.", "enum": [ "apns", "fcm" ], "example": "apns", "type": "string" } }, "required": [ "token", "platform", "vendor", "profile" ], "type": "object" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "PushTokenDeviceMetadata": { "properties": { "app_build": { "description": "The build of the app that created the push token", "example": "1", "nullable": true, "type": "string" }, "app_id": { "description": "The ID of the app that created the push token", "example": "com.klaviyo.app", "nullable": true, "type": "string" }, "app_name": { "description": "The name of the app that created the push token", "example": "Klaviyo", "nullable": true, "type": "string" }, "app_version": { "description": "The version of the app that created the push token", "example": "1.0.0", "nullable": true, "type": "string" }, "device_id": { "description": "Relatively stable ID for the device. Will update on app uninstall and reinstall", "example": "1234567890", "nullable": true, "type": "string" }, "device_model": { "description": "The model of the device", "example": "iPhone12,1", "nullable": true, "type": "string" }, "environment": { "description": "The environment in which the push token was created", "enum": [ "debug", "release" ], "example": "release", "nullable": true, "type": "string" }, "klaviyo_sdk": { "description": "The name of the SDK used to create the push token.", "enum": [ "android", "flutter", "flutter_community", "react_native", "swift" ], "example": "swift", "nullable": true, "type": "string" }, "manufacturer": { "description": "The manufacturer of the device", "example": "Apple", "nullable": true, "type": "string" }, "os_name": { "description": "The name of the operating system on the device.", "enum": [ "android", "ios", "ipados", "macos", "tvos" ], "example": "ios", "nullable": true, "type": "string" }, "os_version": { "description": "The version of the operating system on the device", "example": "14.0", "nullable": true, "type": "string" }, "sdk_version": { "description": "The version of the SDK used to create the push token", "example": "1.0.0", "nullable": true, "type": "string" } }, "type": "object" }, "PushTokenEntry": { "properties": { "background": { "description": "The background state of the push token.", "enum": [ "AVAILABLE", "DENIED", "RESTRICTED" ], "example": "AVAILABLE", "nullable": true, "type": "string" }, "device_metadata": { "$ref": "#/components/schemas/PushTokenDeviceMetadata", "description": "Metadata about the device that created the push token.", "nullable": true }, "enablement_status": { "description": "The enablement status for the push token.", "enum": [ "AUTHORIZED", "DENIED", "NOT_DETERMINED", "PROVISIONAL", "UNAUTHORIZED" ], "example": "AUTHORIZED", "nullable": true, "type": "string" }, "platform": { "description": "The platform on which the push token was created. Either \"ios\" or \"android\".", "enum": [ "android", "ios" ], "type": "string" }, "token": { "description": "A push token from APNS or FCM.", "example": "1234567890abcdef", "type": "string" }, "vendor": { "description": "The vendor of the push token. Either \"apns\" or \"fcm\".", "enum": [ "apns", "fcm" ], "example": "apns", "type": "string" } }, "required": [ "token", "platform", "vendor" ], "type": "object" }, "PushTokenEnum": { "enum": [ "push-token" ], "type": "string" }, "PushTokenResponseObjectResource": { "properties": { "attributes": { "properties": { "background": { "description": "The background state of the push token", "type": "string" }, "created": { "description": "The time at which the token was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "enablement_status": { "description": "The enablement status of the push token", "enum": [ "AUTHORIZED", "DENIED", "NOT_DETERMINED", "PROVISIONAL", "UNAUTHORIZED" ], "type": "string" }, "metadata": { "$ref": "#/components/schemas/DeviceMetadata", "description": "Metadata of device", "nullable": true }, "platform": { "description": "The platform of the push token('ios', 'android')", "enum": [ "android", "ios" ], "type": "string" }, "recorded_date": { "description": "The date the push token was recorded", "type": "string" }, "token": { "description": "The push token", "type": "string" }, "vendor": { "description": "The vendor of the push token('APNs', 'FCM')", "type": "string" } }, "required": [ "created", "token", "enablement_status", "platform", "vendor", "background", "recorded_date" ], "type": "object" }, "id": { "description": "ID of push token", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "profile": { "properties": { "data": { "properties": { "id": { "description": "The profile associated with the push token", "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "PushTokenUnregisterEnum": { "enum": [ "push-token-unregister" ], "type": "string" }, "PushTokenUnregisterQuery": { "properties": { "data": { "$ref": "#/components/schemas/PushTokenUnregisterQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "PushTokenUnregisterQueryResourceObject": { "properties": { "attributes": { "properties": { "platform": { "description": "The platform on which the push token was created.", "enum": [ "android", "ios" ], "type": "string" }, "profile": { "description": "The profile associated with the push token to create/update", "properties": { "data": { "$ref": "#/components/schemas/ProfileUpsertQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "token": { "description": "A push token from APNS or FCM.", "example": "1234567890", "type": "string" }, "vendor": { "description": "The vendor of the push token.", "enum": [ "apns", "fcm" ], "example": "apns", "nullable": true, "type": "string" } }, "required": [ "token", "platform", "profile" ], "type": "object" }, "type": { "$ref": "#/components/schemas/PushTokenUnregisterEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "PushUnsubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from marketing on the \"Push\" channel." }, "tokens": { "description": "A list of push tokens to unsubscribe/remove.", "items": { "$ref": "#/components/schemas/PushTokenEntry" }, "type": "array" } }, "required": [ "marketing", "tokens" ], "type": "object" }, "QuoteStyle": { "properties": { "alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "character_spacing": { "default": 0, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "type": "string" }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_weight": { "default": 400, "example": 400, "type": "integer" }, "line_height": { "default": 1.5, "example": 1.5, "type": "number" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" } }, "type": "object" }, "RadioButtons": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/RadioButtonsProperties" }, "styles": { "$ref": "#/components/schemas/RadioButtonsStyles" }, "type": { "enum": [ "radio_buttons" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "RadioButtonsProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "options": { "items": { "$ref": "#/components/schemas/PropertyOption" }, "type": "array" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "property_name", "options" ], "type": "object" }, "RadioButtonsStyles": { "properties": { "alignment": { "default": "left", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "left", "type": "string" }, "arrangement": { "default": "vertical", "description": "Arrangement enumeration.", "enum": [ "horizontal", "vertical" ], "example": "vertical", "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "RatingStyle": { "properties": { "alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "character_spacing": { "default": 0, "type": "number" }, "color": { "default": "#F8BE00", "example": "#F8BE00", "type": "string" }, "empty_color": { "default": "#EBEEEF", "example": "#EBEEEF", "type": "string" }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "shape": { "default": "star", "description": "Enumeration for review shapes.", "enum": [ "circle", "heart", "star" ], "example": "star", "type": "string" } }, "type": "object" }, "RecordedDateFilter": { "properties": { "field": { "enum": [ "recorded_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "Redirect": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/RedirectProperties" }, "submit": { "type": "boolean" }, "type": { "enum": [ "redirect" ], "type": "string" } }, "required": [ "submit", "type", "properties" ], "type": "object" }, "RedirectProperties": { "properties": { "list_id": { "nullable": true, "type": "string" }, "new_window": { "default": false, "type": "boolean" }, "url": { "default": "", "type": "string" } }, "type": "object" }, "ReentryCriteria": { "properties": { "duration": { "type": "integer" }, "unit": { "oneOf": [ { "description": "Units for relative date filters.", "enum": [ "day", "hour", "week" ], "type": "string" }, { "description": "Operators for alltime date filters.", "enum": [ "alltime" ], "type": "string" } ] } }, "required": [ "duration", "unit" ], "type": "object" }, "RejectReasonFake": { "properties": { "reason": { "description": "rejected due to fake content", "enum": [ "fake" ], "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RejectReasonMisleading": { "properties": { "reason": { "description": "rejected due to false or misleading content", "enum": [ "false_or_misleading" ], "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RejectReasonOther": { "properties": { "reason": { "description": "reject reason is other", "enum": [ "other" ], "type": "string" }, "status_explanation": { "description": "If review reject reason is other, we can provide further explanation", "example": "This review is just really poorly detailed and there is another with the same content", "nullable": true, "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RejectReasonPrivateInformation": { "properties": { "reason": { "description": "rejected due to private information", "enum": [ "private_information" ], "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RejectReasonProfanity": { "properties": { "reason": { "description": "rejected due to profanity or inappropriate content", "enum": [ "profanity_or_inappropriate" ], "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RejectReasonUnrelated": { "properties": { "reason": { "description": "rejected due to unrelated content", "enum": [ "unrelated" ], "type": "string" } }, "required": [ "reason" ], "type": "object" }, "RelationshipLinks": { "properties": { "related": { "format": "uri", "type": "string" }, "self": { "format": "uri", "type": "string" } }, "required": [ "self", "related" ], "type": "object" }, "RelativeAnniversaryDateFilter": { "properties": { "operator": { "description": "Operators for relative date filters.\n\ne.g. \"anniversary in the last 10 days\"", "enum": [ "anniversary-last", "anniversary-next" ], "type": "string" }, "quantity": { "type": "integer" }, "type": { "enum": [ "date" ], "type": "string" }, "unit": { "description": "Units for relative date filters.", "enum": [ "day", "hour", "week" ], "type": "string" } }, "required": [ "type", "operator", "unit", "quantity" ], "type": "object" }, "RelativeDateOperatorBaseRelativeDateFilter": { "properties": { "operator": { "description": "Operators for relative date filters.\n\ne.g. \"in the last 10 days\"", "enum": [ "at-least", "in-the-last", "in-the-next" ], "type": "string" }, "quantity": { "type": "integer" }, "type": { "enum": [ "date" ], "type": "string" }, "unit": { "description": "Units for relative date filters.", "enum": [ "day", "hour", "week" ], "type": "string" } }, "required": [ "type", "operator", "unit", "quantity" ], "type": "object" }, "RelativeDateRangeFilter": { "properties": { "end": { "type": "integer" }, "operator": { "description": "Operators for relative date range filters.\n\ne.g. \"between 10 and 20 days ago\"", "enum": [ "between" ], "type": "string" }, "start": { "type": "integer" }, "type": { "enum": [ "date" ], "type": "string" }, "unit": { "description": "Units for relative date filters.", "enum": [ "day", "hour", "week" ], "type": "string" } }, "required": [ "type", "operator", "start", "end", "unit" ], "type": "object" }, "RenderOptions": { "properties": { "add_info_link": { "default": true, "example": true, "nullable": true, "type": "boolean" }, "add_opt_out_language": { "default": false, "nullable": true, "type": "boolean" }, "add_org_prefix": { "default": true, "example": true, "nullable": true, "type": "boolean" }, "shorten_links": { "default": true, "example": true, "nullable": true, "type": "boolean" } }, "type": "object" }, "RenderOptionsSubObject": { "properties": { "add_info_link": { "default": true, "example": true, "nullable": true, "type": "boolean" }, "add_opt_out_language": { "default": false, "nullable": true, "type": "boolean" }, "add_org_prefix": { "default": true, "example": true, "nullable": true, "type": "boolean" }, "shorten_links": { "default": true, "example": true, "nullable": true, "type": "boolean" } }, "type": "object" }, "ResendOptInCode": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "enum": [ null ] }, "submit": { "default": false, "enum": [ false ], "type": "boolean" }, "type": { "enum": [ "resend_opt_in_code" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "Review": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ReviewProperties" }, "styles": { "$ref": "#/components/schemas/ReviewStyles" }, "type": { "enum": [ "review" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "ReviewBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "oneOf": [ { "$ref": "#/components/schemas/StaticReviewBlockProperties" }, { "$ref": "#/components/schemas/DynamicReviewBlockProperties" } ] }, "styles": { "$ref": "#/components/schemas/ReviewBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "ReviewBlockStyles": { "properties": { "author_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "author_color": { "nullable": true, "type": "string" }, "author_font_family": { "nullable": true, "type": "string" }, "author_font_size": { "nullable": true, "type": "integer" }, "author_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "author_font_weight": { "nullable": true, "type": "string" }, "author_letter_spacing": { "nullable": true, "type": "integer" }, "author_text_decoration": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_radius": { "nullable": true, "type": "integer" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "empty_star_color": { "nullable": true, "type": "string" }, "layout": { "description": "Review block layout options.", "enum": [ "big-quotes", "centered-in-quote-bubble", "centered-rating-first", "centered-review-first", "clean", "left-aligned", "message-bubble", "rating-highlight", "right-aligned-with-quotation-icon", "square", "stacked-card", "subtle-background" ], "nullable": true, "type": "string" }, "product_name_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "product_name_color": { "nullable": true, "type": "string" }, "product_name_font_family": { "nullable": true, "type": "string" }, "product_name_font_size": { "nullable": true, "type": "integer" }, "product_name_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "product_name_font_weight": { "nullable": true, "type": "string" }, "product_name_letter_spacing": { "nullable": true, "type": "integer" }, "product_name_text_decoration": { "nullable": true, "type": "string" }, "quote_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "quote_color": { "nullable": true, "type": "string" }, "quote_font_family": { "nullable": true, "type": "string" }, "quote_font_size": { "nullable": true, "type": "integer" }, "quote_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "quote_font_weight": { "nullable": true, "type": "string" }, "quote_letter_spacing": { "nullable": true, "type": "integer" }, "quote_line_height": { "nullable": true, "type": "number" }, "quote_style": { "description": "Review block quote style.", "enum": [ "line", "square", "standard" ], "nullable": true, "type": "string" }, "quote_text_decoration": { "nullable": true, "type": "string" }, "shadow_color": { "nullable": true, "type": "string" }, "star_alignment": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "star_color": { "nullable": true, "type": "string" }, "star_icon_spacing": { "nullable": true, "type": "integer" }, "star_rating_shape": { "description": "Review block star rating shape.", "enum": [ "circle", "heart", "star" ], "nullable": true, "type": "string" }, "star_size": { "description": "Review block star size.", "enum": [ "large", "medium", "small" ], "nullable": true, "type": "string" }, "text_area_bg_color": { "nullable": true, "type": "string" }, "text_area_border_color": { "nullable": true, "type": "string" }, "verified_badge_color": { "description": "Review block verified badge color.", "enum": [ "dark", "default", "light" ], "nullable": true, "type": "string" }, "verified_badge_size": { "nullable": true, "type": "integer" }, "verified_badge_style": { "description": "Review block verified badge style.", "enum": [ "badge-and-text", "badge-only", "text-only" ], "nullable": true, "type": "string" }, "verified_color": { "nullable": true, "type": "string" }, "verified_font_family": { "nullable": true, "type": "string" }, "verified_font_size": { "nullable": true, "type": "integer" }, "verified_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "verified_font_weight": { "nullable": true, "type": "string" }, "verified_letter_spacing": { "nullable": true, "type": "integer" }, "verified_text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "ReviewBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "review" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ReviewBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/ReviewBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "review" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "ReviewCreateDTO": { "properties": { "data": { "$ref": "#/components/schemas/ReviewCreateDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "ReviewCreateDTOResourceObject": { "properties": { "attributes": { "properties": { "author": { "description": "The author of this review", "example": "John Doe", "type": "string" }, "content": { "description": "The content of this review", "example": "This was an absolutely amazing t-shirt. I loved the color and the fit.", "type": "string" }, "custom_questions": { "description": "Custom question and answers for the review", "example": [ { "answers": [ "M", "L" ], "id": "9ff0d32e-0edb-4513-a6a5-12814a6cb755" } ], "items": { "$ref": "#/components/schemas/CustomQuestionDTO" }, "nullable": true, "type": "array" }, "email": { "description": "The email of the author of this review", "example": "random.123@gmail.com", "type": "string" }, "images": { "description": "The list of images submitted with this review (represented as a list of urls or base-64 encoded data-uri). If there are no images, this field will be an empty list.", "example": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "items": { "type": "string" }, "nullable": true, "type": "array" }, "incentive_type": { "description": "The incentive type for the review", "enum": [ "coupon_or_discount", "employee_review", "free_product", "loyalty_points", "other", "paid_promotion", "sweepstakes_entry" ], "nullable": true, "type": "string" }, "product": { "$ref": "#/components/schemas/ReviewProductExternalId", "description": "The product associated with this review", "nullable": true }, "rating": { "description": "The rating of this review on a scale from 1-5. If the review type is \"question\", this field will be null.", "enum": [ 1, 2, 3, 4, 5 ], "example": 2, "nullable": true, "type": "integer" }, "review_type": { "description": "The type of this review -- either a review or a question", "enum": [ "question", "rating", "review", "store" ], "example": "review", "type": "string" }, "title": { "description": "The title of this review", "example": "Great product!", "nullable": true, "type": "string" } }, "required": [ "review_type", "email", "author", "content" ], "type": "object" }, "relationships": { "properties": { "order": { "properties": { "data": { "properties": { "id": { "description": "The Order ID related to the review", "example": "42439497119686", "type": "string" }, "type": { "$ref": "#/components/schemas/OrderEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ReviewEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "ReviewEnum": { "enum": [ "review" ], "type": "string" }, "ReviewPatchQuery": { "properties": { "data": { "$ref": "#/components/schemas/ReviewPatchQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ReviewPatchQueryResourceObject": { "properties": { "attributes": { "properties": { "status": { "description": "The updated status intended for the review with this ID", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ReviewStatusRejected" }, { "$ref": "#/components/schemas/ReviewStatusFeatured" }, { "$ref": "#/components/schemas/ReviewStatusPublished" }, { "$ref": "#/components/schemas/ReviewStatusUnpublished" }, { "$ref": "#/components/schemas/ReviewStatusPending" } ] } }, "type": "object" }, "id": { "description": "The id of the review (review ID).", "type": "string" }, "type": { "$ref": "#/components/schemas/ReviewEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "ReviewProductDTO": { "properties": { "external_id": { "description": "The external ID of the product", "example": "123456789", "nullable": true, "type": "string" }, "image_url": { "description": "The URL of the product image", "example": "https://example.com/image.jpg", "nullable": true, "type": "string" }, "name": { "description": "The name of the product", "type": "string" }, "url": { "description": "The URL of the product", "example": "https://example.com/product/123", "type": "string" } }, "required": [ "url", "name" ], "type": "object" }, "ReviewProductExternalId": { "properties": { "external_id": { "description": "The external ID of the product", "example": "7549950034135", "type": "string" }, "integration_key": { "description": "The integration key of the product in lowercase", "enum": [ "shopify", "woocommerce" ], "example": "shopify", "type": "string" } }, "required": [ "external_id", "integration_key" ], "type": "object" }, "ReviewProperties": { "properties": { "author": { "nullable": true, "type": "string" }, "classname": { "nullable": true, "type": "string" }, "content": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "rating": { "default": 5, "example": 5, "type": "integer" }, "review_id": { "nullable": true, "type": "integer" }, "show_author": { "default": true, "example": true, "type": "boolean" }, "show_rating": { "default": true, "example": true, "type": "boolean" }, "show_verified": { "default": true, "example": true, "type": "boolean" }, "verified": { "default": false, "type": "boolean" } }, "type": "object" }, "ReviewPublicReply": { "properties": { "author": { "description": "The author of the public reply", "example": "Company X", "type": "string" }, "content": { "description": "The content of the public reply", "example": "Thanks for the review!", "type": "string" }, "updated": { "description": "The datetime when this public reply was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "content", "author", "updated" ], "type": "object" }, "ReviewResponseDTOObjectResource": { "properties": { "attributes": { "properties": { "author": { "description": "The author of this review", "example": "John D", "nullable": true, "type": "string" }, "content": { "description": "The content of this review", "example": "Great product! I love the smell. I will be buying again.", "nullable": true, "type": "string" }, "created": { "description": "The datetime when this review was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "email": { "description": "The email of the author of this review", "example": "john@doe.com", "nullable": true, "type": "string" }, "images": { "description": "The list of images submitted with this review (represented as a list of urls). If there are no images, this field will be an empty list.", "example": [ "https://example.com/image1.jpg", "https://example.com/image2.jpg" ], "items": { "type": "string" }, "type": "array" }, "product": { "$ref": "#/components/schemas/ReviewProductDTO", "description": "The product associated with this review", "nullable": true }, "public_reply": { "$ref": "#/components/schemas/ReviewPublicReply", "description": "The public reply to this review (if one exists)", "nullable": true }, "rating": { "description": "The rating of this review on a scale from 1-5. If the review type is \"question\", this field will be null.", "example": 2, "nullable": true, "type": "integer" }, "review_type": { "description": "The type of this review \u2014 either a review, question, or rating", "enum": [ "question", "rating", "review", "store" ], "example": "review", "type": "string" }, "smart_quote": { "description": "A quote from this review that summarizes the content", "example": "I love the smell", "nullable": true, "type": "string" }, "status": { "description": "The status of this review", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ReviewStatusRejected" }, { "$ref": "#/components/schemas/ReviewStatusFeatured" }, { "$ref": "#/components/schemas/ReviewStatusPublished" }, { "$ref": "#/components/schemas/ReviewStatusUnpublished" }, { "$ref": "#/components/schemas/ReviewStatusPending" } ] }, "title": { "description": "The title of this review", "example": "Smells great, would recommend", "nullable": true, "type": "string" }, "updated": { "description": "The datetime when this review was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "verified": { "description": "The verification status of this review (aka whether or not we have confirmation that the customer bought the product)", "example": true, "type": "boolean" } }, "required": [ "verified", "review_type", "created", "updated", "images" ], "type": "object" }, "id": { "description": "The ID of the review", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "events": { "properties": { "data": { "items": { "properties": { "id": { "description": "Related Events", "type": "string" }, "type": { "$ref": "#/components/schemas/EventEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "item": { "properties": { "data": { "properties": { "id": { "description": "Related Catalog Item", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogItemEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ReviewEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ReviewStatusFeatured": { "properties": { "value": { "description": "Featured review status", "enum": [ "featured" ], "type": "string" } }, "required": [ "value" ], "type": "object" }, "ReviewStatusPending": { "properties": { "value": { "description": "Pending review status", "enum": [ "pending" ], "type": "string" } }, "required": [ "value" ], "type": "object" }, "ReviewStatusPublished": { "properties": { "value": { "description": "Published review status", "enum": [ "published" ], "type": "string" } }, "required": [ "value" ], "type": "object" }, "ReviewStatusRejected": { "properties": { "rejection_reason": { "description": "The updated status intended for the review with this ID", "oneOf": [ { "$ref": "#/components/schemas/RejectReasonOther" }, { "$ref": "#/components/schemas/RejectReasonFake" }, { "$ref": "#/components/schemas/RejectReasonMisleading" }, { "$ref": "#/components/schemas/RejectReasonPrivateInformation" }, { "$ref": "#/components/schemas/RejectReasonProfanity" }, { "$ref": "#/components/schemas/RejectReasonUnrelated" } ] }, "value": { "description": "Rejected review status", "enum": [ "rejected" ], "type": "string" } }, "required": [ "value", "rejection_reason" ], "type": "object" }, "ReviewStatusUnpublished": { "properties": { "value": { "description": "Unpublished review status", "enum": [ "unpublished" ], "type": "string" } }, "required": [ "value" ], "type": "object" }, "ReviewStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "default": "rgba(255, 255, 255, 0)", "example": "rgba(255, 255, 255, 0)", "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" }, "quote_style": { "$ref": "#/components/schemas/QuoteStyle" }, "rating_style": { "$ref": "#/components/schemas/RatingStyle" }, "reviewer_name_style": { "$ref": "#/components/schemas/ReviewerNameStyle" } }, "type": "object" }, "ReviewValueReportGrouping": { "properties": { "groupings": { "description": "Grouping details, either by product or company", "oneOf": [ { "$ref": "#/components/schemas/GroupingProduct" }, { "$ref": "#/components/schemas/GroupingCompany" } ] }, "statistics": { "$ref": "#/components/schemas/StatisticsDTO", "description": "Statistics related to the grouping", "example": { "average_rating": 4.5, "average_store_rating": 2, "total_questions": 50, "total_ratings": 200, "total_reviews": 100, "total_store_reviews": 5000 } } }, "required": [ "groupings", "statistics" ], "type": "object" }, "ReviewValuesReportEnum": { "enum": [ "review-values-report" ], "type": "string" }, "ReviewValuesReportResponseObjectResource": { "properties": { "attributes": { "properties": { "results": { "description": "The list of groupings and their corresponding statistics in the reviews values report", "example": [ { "groupings": { "product_id": "id1" }, "statistics": { "average_rating": 4.5, "total_ratings": 459 } }, { "groupings": { "product_id": "id2" }, "statistics": { "average_rating": 2.5, "total_ratings": 459 } } ], "items": { "$ref": "#/components/schemas/ReviewValueReportGrouping" }, "type": "array" } }, "required": [ "results" ], "type": "object" }, "id": { "description": "The unique identifier for the reviews values report", "example": "925e385b52fb405715f3616c337cc65c", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/ReviewValuesReportEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "ReviewerNameStyle": { "properties": { "alignment": { "default": "center", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "center", "type": "string" }, "character_spacing": { "default": 0, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "type": "string" }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_weight": { "default": 400, "example": 400, "type": "integer" }, "layout": { "default": "stacked", "description": "Enumeration for review name layouts.", "enum": [ "inline", "stacked" ], "example": "stacked", "type": "string" }, "line_height": { "default": 1.5, "example": 1.5, "type": "number" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" } }, "type": "object" }, "RichTextMargin": { "properties": { "bottom": { "default": 0, "type": "integer" }, "left": { "default": 0, "enum": [ 0 ], "type": "integer" }, "right": { "default": 0, "enum": [ 0 ], "type": "integer" }, "top": { "default": 0, "enum": [ 0 ], "type": "integer" } }, "type": "object" }, "RichTextStyle": { "properties": { "alignment": { "default": "left", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "left", "type": "string" }, "character_spacing": { "default": 0, "nullable": true, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "oneOf": [ { "description": "Web safe font enumeration.", "enum": [ "Arial Black,Arial", "Arial, 'Helvetica Neue', Helvetica, sans-serif", "Century Gothic,AppleGothic,Arial", "Comic Sans MS,Comic Sans,cursive", "Courier", "Courier New", "Geneva,Arial", "Georgia", "Helvetica,Arial", "Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "MS Serif,Georgia", "New York,Georgia", "Palatino Linotype,Palatino,Georgia", "Palatino,Georgia", "Tahoma,sans-serif", "Times New Roman", "Trebuchet MS", "Verdana" ], "type": "string" }, { "type": "string" } ] }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_style": { "nullable": true, "type": "string" }, "font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "nullable": true, "type": "integer" }, "line_spacing": { "default": 1, "example": 1, "type": "number" }, "margin": { "$ref": "#/components/schemas/RichTextMargin" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "RichTextStyles": { "properties": { "body": { "$ref": "#/components/schemas/RichTextStyle" }, "h1": { "$ref": "#/components/schemas/RichTextStyle" }, "h2": { "$ref": "#/components/schemas/RichTextStyle" }, "h3": { "$ref": "#/components/schemas/RichTextStyle" }, "h4": { "$ref": "#/components/schemas/RichTextStyle" }, "h5": { "$ref": "#/components/schemas/RichTextStyle" }, "h6": { "$ref": "#/components/schemas/RichTextStyle" }, "link": { "$ref": "#/components/schemas/LinkStyles" } }, "type": "object" }, "RowData": { "properties": { "styles": { "$ref": "#/components/schemas/RowStyles" } }, "required": [ "styles" ], "type": "object" }, "RowStyles": { "properties": { "column_layout": { "description": "Column layout.", "enum": [ "1-column-full-width", "2-columns-25%-75%", "2-columns-33%-67%", "2-columns-67%-33%", "2-columns-75%-25%", "2-columns-equal-width", "3-columns-25%-25%-50%", "3-columns-25%-50%-25%", "3-columns-50%-25%-25%", "3-columns-equal-width", "4-columns-equal-width" ], "nullable": true, "type": "string" } }, "type": "object" }, "RowV0": { "properties": { "blocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/Button" }, { "$ref": "#/components/schemas/AgeGate" }, { "$ref": "#/components/schemas/Coupon" }, { "$ref": "#/components/schemas/Date" }, { "$ref": "#/components/schemas/Email" }, { "$ref": "#/components/schemas/HTMLText" }, { "$ref": "#/components/schemas/OptInCode" }, { "$ref": "#/components/schemas/PhoneNumber" }, { "$ref": "#/components/schemas/SMSConsentCheckbox" }, { "$ref": "#/components/schemas/Text" }, { "$ref": "#/components/schemas/Checkboxes" }, { "$ref": "#/components/schemas/RadioButtons" }, { "$ref": "#/components/schemas/Dropdown" }, { "$ref": "#/components/schemas/Image" }, { "$ref": "#/components/schemas/CountdownTimer" }, { "$ref": "#/components/schemas/SignupCounter" }, { "$ref": "#/components/schemas/SpinToWin" }, { "$ref": "#/components/schemas/SMSDisclosure" }, { "$ref": "#/components/schemas/BackInStockEmailConsentCheckbox" }, { "$ref": "#/components/schemas/Review" } ] }, "type": "array" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" } }, "required": [ "blocks" ], "type": "object" }, "RowV1": { "properties": { "columns": { "items": { "$ref": "#/components/schemas/ColumnV1" }, "nullable": true, "type": "array" }, "data": { "$ref": "#/components/schemas/RowData" }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "data" ], "type": "object" }, "SMSChannel": { "properties": { "marketing": { "$ref": "#/components/schemas/SMSMarketing", "description": "The SMS marketing subscription.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/SMSTransactional", "description": "The SMS transactional subscription.", "nullable": true } }, "type": "object" }, "SMSConsentCheckbox": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SMSConsentCheckboxProperties" }, "styles": { "$ref": "#/components/schemas/SMSConsentCheckboxStyles" }, "type": { "enum": [ "promotional_sms_checkbox" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "SMSConsentCheckboxProperties": { "properties": { "channels": { "items": { "description": "Consent channel enumeration.", "enum": [ "sms", "whatsapp" ], "type": "string" }, "type": "array" }, "checkbox_text": { "type": "string" }, "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "enum": [ null ] }, "property_name": { "default": "opt_in_promotional_sms", "enum": [ "opt_in_promotional_sms" ], "example": "opt_in_promotional_sms", "type": "string" }, "required": { "default": false, "enum": [ false ], "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "checkbox_text" ], "type": "object" }, "SMSConsentCheckboxStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "horizontal_alignment": { "default": "left", "description": "Horizontal alignment enumeration.", "enum": [ "center", "left", "right" ], "example": "left", "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "SMSContent": { "properties": { "body": { "description": "The message body", "example": "My preview sms", "nullable": true, "type": "string" }, "media_url": { "description": "URL for included media", "nullable": true, "type": "string" } }, "type": "object" }, "SMSContentCreate": { "properties": { "body": { "description": "The message body", "example": "My preview sms", "nullable": true, "type": "string" } }, "type": "object" }, "SMSContentSubObject": { "properties": { "body": { "description": "The message body", "example": "My preview sms", "nullable": true, "type": "string" }, "media_url": { "description": "URL for included media", "nullable": true, "type": "string" } }, "type": "object" }, "SMSDisclosure": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SMSDisclosureProperties" }, "styles": { "$ref": "#/components/schemas/SMSDisclosureStyles" }, "type": { "enum": [ "sms_disclosure" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SMSDisclosureAccountDefault": { "properties": { "html": { "nullable": true }, "type": { "enum": [ "account_default" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SMSDisclosureCustom": { "properties": { "compliance_company_name": { "default": "[company name]", "example": "[company name]", "type": "string" }, "html": { "default": "", "type": "string" }, "privacy_policy_url": { "default": "[link]", "example": "[link]", "type": "string" }, "terms_of_service_url": { "default": "[link]", "example": "[link]", "type": "string" }, "type": { "enum": [ "custom" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SMSDisclosureLinkTextStyle": { "properties": { "character_spacing": { "default": 0, "nullable": true, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "oneOf": [ { "description": "Web safe font enumeration.", "enum": [ "Arial Black,Arial", "Arial, 'Helvetica Neue', Helvetica, sans-serif", "Century Gothic,AppleGothic,Arial", "Comic Sans MS,Comic Sans,cursive", "Courier", "Courier New", "Geneva,Arial", "Georgia", "Helvetica,Arial", "Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "MS Serif,Georgia", "New York,Georgia", "Palatino Linotype,Palatino,Georgia", "Palatino,Georgia", "Tahoma,sans-serif", "Times New Roman", "Trebuchet MS", "Verdana" ], "type": "string" }, { "type": "string" } ] }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_style": { "nullable": true, "type": "string" }, "font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "nullable": true, "type": "integer" }, "text_color": { "default": "#0066cc", "example": "#0066cc", "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "SMSDisclosureProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "content": { "oneOf": [ { "$ref": "#/components/schemas/SMSDisclosureCustom" }, { "$ref": "#/components/schemas/SMSDisclosureAccountDefault" } ] }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" } }, "type": "object" }, "SMSDisclosureStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "link_styles": { "$ref": "#/components/schemas/SMSDisclosureLinkTextStyle" }, "padding": { "$ref": "#/components/schemas/Padding" }, "text_styles": { "$ref": "#/components/schemas/SMSDisclosureTextStyle" } }, "type": "object" }, "SMSDisclosureTextStyle": { "properties": { "character_spacing": { "default": 0, "nullable": true, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "oneOf": [ { "description": "Web safe font enumeration.", "enum": [ "Arial Black,Arial", "Arial, 'Helvetica Neue', Helvetica, sans-serif", "Century Gothic,AppleGothic,Arial", "Comic Sans MS,Comic Sans,cursive", "Courier", "Courier New", "Geneva,Arial", "Georgia", "Helvetica,Arial", "Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "MS Serif,Georgia", "New York,Georgia", "Palatino Linotype,Palatino,Georgia", "Palatino,Georgia", "Tahoma,sans-serif", "Times New Roman", "Trebuchet MS", "Verdana" ], "type": "string" }, { "type": "string" } ] }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_style": { "nullable": true, "type": "string" }, "font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "nullable": true, "type": "integer" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "SMSMarketing": { "properties": { "can_receive_sms_marketing": { "description": "Whether or not this profile is subscribed to receive SMS marketing.", "type": "boolean" }, "consent": { "description": "The consent status for SMS marketing.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for SMS marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_updated": { "description": "The timestamp when the SMS consent record was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "method": { "description": "The method by which the profile was subscribed to SMS marketing.", "example": "TEXT", "nullable": true, "type": "string" }, "method_detail": { "default": "", "description": "Additional details about the method which the profile was subscribed to SMS marketing. This may be empty if no details were provided.", "example": "JOIN", "nullable": true, "type": "string" } }, "required": [ "can_receive_sms_marketing", "consent" ], "type": "object" }, "SMSMessageDefinition": { "properties": { "channel": { "enum": [ "sms" ], "type": "string" }, "content": { "$ref": "#/components/schemas/SMSContent", "description": "Additional attributes relating to the content of the message", "nullable": true }, "render_options": { "$ref": "#/components/schemas/RenderOptions", "description": "Additional options for rendering the message", "nullable": true } }, "required": [ "channel" ], "type": "object" }, "SMSMessageDefinitionCreate": { "properties": { "channel": { "enum": [ "sms" ], "type": "string" }, "content": { "$ref": "#/components/schemas/SMSContentCreate", "description": "Additional attributes relating to the content of the message", "nullable": true }, "render_options": { "$ref": "#/components/schemas/RenderOptions", "description": "Additional options for rendering the message", "nullable": true } }, "required": [ "channel" ], "type": "object" }, "SMSSendOptions": { "properties": { "use_smart_sending": { "default": true, "description": "Use smart sending.", "example": true, "nullable": true, "type": "boolean" } }, "type": "object" }, "SMSSubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to marketing on the \"SMS\" Channel.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to transactional messaging on the \"SMS\" Channel.", "nullable": true } }, "type": "object" }, "SMSTransactional": { "properties": { "can_receive_sms_transactional": { "description": "Whether or not this profile is subscribed to receive transactional SMS.", "type": "boolean" }, "consent": { "description": "The consent status for SMS Transactional.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for Transactional SMS messaging , in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_updated": { "description": "The timestamp when the SMS consent record was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "method": { "description": "The method by which the profile was subscribed to Transactional SMS messaging .", "example": "TEXT", "nullable": true, "type": "string" }, "method_detail": { "default": "", "description": "Additional details about the method which the profile was subscribed to Transactional SMS messaging. This may be empty if no details were provided.", "example": "JOIN", "nullable": true, "type": "string" } }, "required": [ "can_receive_sms_transactional", "consent" ], "type": "object" }, "SMSUnsubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from marketing on the \"SMS\" channel.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from transactional messaging on the \"SMS\" channel.", "nullable": true } }, "type": "object" }, "Scroll": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/ScrollProperties" }, "type": { "enum": [ "scroll_percentage" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "ScrollProperties": { "properties": { "percentage": { "default": 30, "example": 30, "type": "integer" } }, "type": "object" }, "SectionData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "$ref": "#/components/schemas/SectionProperties" }, "styles": { "$ref": "#/components/schemas/SectionStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "SectionProperties": { "properties": { "is_ai_generated": { "nullable": true, "type": "boolean" }, "is_prebuilt_content": { "nullable": true, "type": "boolean" } }, "type": "object" }, "SectionStyles": { "properties": { "background_asset_id": { "nullable": true, "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "background_format": { "description": "Background format.", "enum": [ "auto", "contain", "cover", "initial", "repeat" ], "nullable": true, "type": "string" }, "background_image_full_width": { "nullable": true, "type": "boolean" }, "background_position": { "description": "Background position.", "enum": [ "center-bottom", "center-center", "center-top", "left-bottom", "left-center", "left-top", "right-bottom", "right-center", "right-top" ], "nullable": true, "type": "string" }, "background_repeat": { "nullable": true, "type": "boolean" }, "background_url": { "nullable": true, "type": "string" }, "border_color": { "nullable": true, "type": "string" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "column_align": { "description": "Vertical alignment.", "enum": [ "baseline", "bottom", "middle", "top" ], "nullable": true, "type": "string" }, "column_direction": { "description": "Stacking direction.", "enum": [ "ltr", "no-stack", "rtl" ], "nullable": true, "type": "string" }, "content_color": { "nullable": true, "type": "string" }, "content_color_type": { "description": "Content color type.", "enum": [ "none", "section", "template" ], "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "stack_on_mobile": { "nullable": true, "type": "boolean" } }, "type": "object" }, "SectionV0": { "properties": { "content_type": { "enum": [ "section" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "section" ], "type": "string" } }, "required": [ "content_type", "type" ], "type": "object" }, "SectionV1": { "properties": { "content_type": { "enum": [ "section" ], "type": "string" }, "data": { "$ref": "#/components/schemas/SectionData" }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "rows": { "items": { "$ref": "#/components/schemas/RowV1" }, "nullable": true, "type": "array" }, "type": { "enum": [ "section" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SegmentCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SegmentCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SegmentCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/SegmentDefinition" }, "is_starred": { "default": false, "nullable": true, "type": "boolean" }, "name": { "type": "string" } }, "required": [ "name", "definition" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SegmentDefinition": { "properties": { "condition_groups": { "items": { "$ref": "#/components/schemas/ConditionGroup" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "SegmentEnum": { "enum": [ "segment" ], "type": "string" }, "SegmentListResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Whether the segment is active. Inactive segments are not processed and their membership does not update.", "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_starred": { "type": "boolean" }, "name": { "description": "A helpful name to label the segment", "example": "Repeat Purchasers", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "is_active", "is_processing", "is_starred" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "SegmentMemberResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "email": { "description": "Individual's email address", "example": "sarah.mason@klaviyo-demo.com", "nullable": true, "type": "string" }, "external_id": { "description": "A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.", "nullable": true, "type": "string" }, "first_name": { "description": "Individual's first name", "example": "Sarah", "nullable": true, "type": "string" }, "image": { "description": "URL pointing to the location of a profile image", "example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg", "nullable": true, "type": "string" }, "joined_group_at": { "description": "The datetime when this profile most recently joined the segment.", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "last_event_date": { "description": "Date and time of the most recent event the triggered an update to the profile, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_name": { "description": "Individual's last name", "example": "Mason", "nullable": true, "type": "string" }, "locale": { "description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)", "example": "en-US", "nullable": true, "type": "string" }, "location": { "$ref": "#/components/schemas/ProfileLocation", "nullable": true }, "organization": { "description": "Name of the company or organization within the company for whom the individual works", "example": "Example Corporation", "nullable": true, "type": "string" }, "phone_number": { "description": "Individual's phone number in E.164 format", "example": "+15005550006", "nullable": true, "type": "string" }, "properties": { "description": "An object containing key/value pairs for any custom properties assigned to this profile", "example": { "pseudonym": "Dr. Octopus" }, "nullable": true, "type": "object" }, "title": { "description": "Individual's job title", "example": "Regional Manager", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "joined_group_at" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.", "example": "01GDDKASAP8TKDDA2GRZDSVP4H", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "push-tokens": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/PushTokenEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "attributes", "links" ], "type": "object" }, "SegmentPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SegmentPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SegmentPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Set to false to deactivate the segment. When deactivating, this must be the only attribute in the request body. Deactivation cannot be combined with other updates. Marking a segment inactive will impact campaigns, flows, ad syncs, forms, helpdesk routing, and other features that reference this segment. Set to true to reactivate a deactivated segment.", "nullable": true, "type": "boolean" }, "is_starred": { "nullable": true, "type": "boolean" }, "name": { "nullable": true, "type": "string" } }, "type": "object" }, "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "SegmentResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Whether the segment is active. Inactive segments are not processed and their membership does not update.", "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_starred": { "type": "boolean" }, "name": { "description": "A helpful name to label the segment", "example": "Repeat Purchasers", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "is_active", "is_processing", "is_starred" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "SegmentRetrieveResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/SegmentDefinition", "nullable": true }, "is_active": { "description": "Whether the segment is active. Inactive segments are not processed and their membership does not update.", "type": "boolean" }, "is_processing": { "type": "boolean" }, "is_starred": { "type": "boolean" }, "name": { "description": "A helpful name to label the segment", "example": "Repeat Purchasers", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "is_active", "is_processing", "is_starred" ], "type": "object" }, "id": { "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "flow-triggers": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "profiles": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ProfileEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "SegmentSeriesReportEnum": { "enum": [ "segment-series-report" ], "type": "string" }, "SegmentSeriesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/SegmentSeriesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "SegmentSeriesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "filter": { "description": "API filter string used to filter the query.\nAllowed filters are segment_id.\nAllowed operators are equals, any.\nOnly one filter can be used per attribute.\nMax of 100 messages per ANY filter.", "example": "any(segment_id,[\"xyz123\",\"ghi456\"])", "nullable": true, "type": "string" }, "interval": { "description": "The interval used to aggregate data within the series request.\nIf hourly is used, the timeframe cannot be longer than 7 days.\nIf daily is used, the timeframe cannot be longer than 60 days.\nIf monthly is used, the timeframe cannot be longer than 52 weeks.", "enum": [ "daily", "hourly", "monthly", "weekly" ], "example": "weekly", "type": "string" }, "statistics": { "description": "List of statistics to query for.", "example": [ "total_members", "net_members_changed" ], "items": { "description": "Defined segment reporting metric", "enum": [ "members_added", "members_removed", "net_members_changed", "total_members" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). Data is unavailable before June 1st, 2023. Please use a time frame after this date. See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe", "interval" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentSeriesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SegmentTrigger": { "properties": { "id": { "nullable": true, "type": "string" }, "type": { "enum": [ "segment" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SegmentValuesReportEnum": { "enum": [ "segment-values-report" ], "type": "string" }, "SegmentValuesRequestDTO": { "properties": { "data": { "$ref": "#/components/schemas/SegmentValuesRequestDTOResourceObject" } }, "required": [ "data" ], "type": "object" }, "SegmentValuesRequestDTOResourceObject": { "properties": { "attributes": { "properties": { "filter": { "description": "API filter string used to filter the query.\nAllowed filters are segment_id.\nAllowed operators are equals, any.\nOnly one filter can be used per attribute.\nMax of 100 messages per ANY filter.", "example": "any(segment_id,[\"xyz123\",\"ghi456\"])", "nullable": true, "type": "string" }, "statistics": { "description": "List of statistics to query for.", "example": [ "total_members", "net_members_changed" ], "items": { "description": "Defined segment reporting metric", "enum": [ "members_added", "members_removed", "net_members_changed", "total_members" ], "type": "string" }, "type": "array" }, "timeframe": { "description": "The time frame to pull data from (Max length: 1 year). Data is unavailable before June 1st, 2023. Please use a time frame after this date. See [available time frames](https://developers.klaviyo.com/en/reference/reporting_api_overview#available-time-frames).", "oneOf": [ { "$ref": "#/components/schemas/Timeframe" }, { "$ref": "#/components/schemas/CustomTimeframe" } ] } }, "required": [ "statistics", "timeframe" ], "type": "object" }, "type": { "$ref": "#/components/schemas/SegmentValuesReportEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SegmentsProfileMetricCondition": { "properties": { "measurement": { "description": "Measurements for profile metrics.", "enum": [ "count", "sum" ], "type": "string" }, "measurement_filter": { "$ref": "#/components/schemas/NumericOperatorNumericFilter" }, "metric_filters": { "items": { "$ref": "#/components/schemas/ProfileMetricPropertyFilter" }, "nullable": true, "type": "array" }, "metric_id": { "type": "string" }, "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/AlltimeDateFilter" } ] }, "type": { "enum": [ "profile-metric" ], "type": "string" } }, "required": [ "type", "metric_id", "measurement", "measurement_filter", "timeframe_filter" ], "type": "object" }, "SegmentsProfileMetricFunnelCondition": { "properties": { "completion_window_seconds": { "description": "Allowed completion window durations for funnel conditions (in\n seconds).", "enum": [ "DAYS_1", "DAYS_180", "DAYS_3", "DAYS_30", "DAYS_5", "DAYS_90", "HOURS_1", "WEEKS_1", "YEARS_1" ], "nullable": true, "type": "string" }, "steps": { "items": { "$ref": "#/components/schemas/ProfileMetricFunnelSteps" }, "type": "array" }, "timeframe_filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" } ] }, "type": { "enum": [ "profile-metric-funnel" ], "type": "string" } }, "required": [ "type", "timeframe_filter", "steps" ], "type": "object" }, "SendEmailAction": { "properties": { "data": { "$ref": "#/components/schemas/SendEmailActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-email" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendEmailActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowEmail", "nullable": true }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "type": "object" }, "SendInternalAlertAction": { "properties": { "data": { "$ref": "#/components/schemas/SendInternalAlertActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-internal-alert" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendInternalAlertActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowInternalAlert" }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "message" ], "type": "object" }, "SendPushNotificationAction": { "properties": { "data": { "$ref": "#/components/schemas/SendPushNotificationActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-mobile-push" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendPushNotificationActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowPushNotification", "nullable": true }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "type": "object" }, "SendSmsAction": { "properties": { "data": { "$ref": "#/components/schemas/SendSmsActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-sms" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendSmsActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowSms", "nullable": true }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "type": "object" }, "SendTime": { "properties": { "datetime": { "description": "The datetime that the message is to be sent", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "is_local": { "description": "Whether that datetime is to be a local datetime for the recipient", "type": "boolean" } }, "required": [ "datetime", "is_local" ], "type": "object" }, "SendTimeSubObject": { "properties": { "datetime": { "description": "The datetime that the message is to be sent", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "is_local": { "description": "Whether that datetime is to be a local datetime for the recipient", "type": "boolean" } }, "required": [ "datetime", "is_local" ], "type": "object" }, "SendWebhookAction": { "properties": { "data": { "$ref": "#/components/schemas/SendWebhookActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-webhook" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendWebhookActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowWebhook" }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "message" ], "type": "object" }, "SendWhatsAppAction": { "properties": { "data": { "$ref": "#/components/schemas/SendWhatsAppActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "send-whatsapp" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SendWhatsAppActionData": { "properties": { "message": { "$ref": "#/components/schemas/FlowWhatsApp", "nullable": true }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "type": "object" }, "SeriesData": { "properties": { "groupings": { "description": "Applied groupings and the values for this object", "type": "object" }, "statistics": { "description": "Requested statistics and their series result", "type": "object" } }, "required": [ "groupings", "statistics" ], "type": "object" }, "ServerBISSubscriptionCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/ServerBISSubscriptionCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "ServerBISSubscriptionCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "channels": { "description": "The channel(s) through which the profile would like to receive the back in stock notification. This can be leveraged within a back in stock flow to notify the subscriber through their preferred channel(s).", "example": [ "EMAIL", "SMS" ], "items": { "description": "The different channel types that a profile could subscribe to BIS notifications for", "enum": [ "EMAIL", "PUSH", "SMS", "WHATSAPP" ], "type": "string" }, "type": "array" }, "profile": { "example": { "data": { "attributes": { "email": "sarah.mason@klaviyo-demo.com", "external_id": "63f64a2b-c6bf-40c7-b81f-bed08162edbe", "id": "01GDDKASAP8TKDDA2GRZDSVP4H", "phone_number": "+15005550006" }, "type": "profile" } }, "nullable": true, "properties": { "data": { "$ref": "#/components/schemas/ProfileIdentifierDTOResourceObject" } }, "required": [ "data" ], "type": "object" } }, "required": [ "channels" ], "type": "object" }, "relationships": { "properties": { "variant": { "properties": { "data": { "properties": { "id": { "description": "The catalog variant ID for which the profile is subscribing to back in stock notifications. This ID is made up of the integration type, catalog ID, and and the external ID of the variant like so: `integrationType:::catalogId:::externalId`. If the integration you are using is not set up for multi-catalog storage, the 'catalogId' will be `$default`. For Shopify `$shopify:::$default:::33001893429341`", "example": "$custom:::$default:::SAMPLE-DATA-ITEM-1-VARIANT-MEDIUM", "type": "string" }, "type": { "$ref": "#/components/schemas/CatalogVariantEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "required": [ "variant" ], "type": "object" }, "type": { "$ref": "#/components/schemas/BackInStockSubscriptionEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "SftpMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "sftp" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "ShopifyIntegrationFilter": { "properties": { "operator": { "enum": [ "in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "enum": [ "shopify" ], "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "ShopifyIntegrationMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/ShopifyIntegrationFilter" }, "method": { "enum": [ "integration" ], "type": "string" } }, "required": [ "field", "method", "filter" ], "type": "object" }, "SideImageSettings": { "properties": { "alignment": { "default": "left", "description": "Side image alignment enumeration.", "enum": [ "left", "right" ], "example": "left", "type": "string" }, "device_type": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "size": { "default": "medium", "description": "Side image size enumeration.", "enum": [ "large", "medium", "small" ], "example": "medium", "type": "string" } }, "type": "object" }, "SignupCounter": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SignupCounterProperties" }, "styles": { "$ref": "#/components/schemas/SignupCounterStyles" }, "type": { "enum": [ "signup_counter" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "SignupCounterProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "content": { "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "min_submits": { "type": "integer" }, "timeframe": { "description": "Timeframes for the signup counter lookback.", "enum": [ "1_hour", "24_hours", "30_days", "7_days" ], "type": "string" } }, "required": [ "timeframe", "min_submits", "content" ], "type": "object" }, "SignupCounterStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "SinceFlowStartDateFilter": { "properties": { "operator": { "description": "Possible operators for since flow start date.", "enum": [ "flow-start" ], "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "operator" ], "type": "object" }, "SkipToSuccess": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SkipToSuccessProperties" }, "submit": { "default": false, "enum": [ false ], "type": "boolean" }, "type": { "enum": [ "skip_to_success" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "SkipToSuccessProperties": { "maxProperties": 0, "type": "object" }, "SmartSendTimeStrategy": { "properties": { "date": { "description": "The day to send on", "format": "date", "type": "string" }, "method": { "enum": [ "smart_send_time" ], "type": "string" } }, "required": [ "method", "date" ], "type": "object" }, "SocialBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "$ref": "#/components/schemas/SocialBlockProperties" }, "styles": { "$ref": "#/components/schemas/SocialBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "SocialBlockProperties": { "properties": { "show_labels": { "nullable": true, "type": "boolean" } }, "type": "object" }, "SocialBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "icon_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "icon_color": { "description": "Social block icon color.", "enum": [ "black", "default", "grey", "white" ], "nullable": true, "type": "string" }, "icon_size": { "description": "Social block icon size.", "enum": [ "large", "medium", "small" ], "nullable": true, "type": "string" }, "icon_spacing": { "nullable": true, "type": "integer" }, "label_color": { "nullable": true, "type": "string" }, "label_font_family": { "nullable": true, "type": "string" }, "label_font_size": { "nullable": true, "type": "integer" }, "label_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "label_font_weight": { "nullable": true, "type": "string" }, "label_text_decoration": { "nullable": true, "type": "string" }, "stack_on_mobile": { "nullable": true, "type": "boolean" } }, "type": "object" }, "SocialBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "social" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SocialBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/SocialBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "subblocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/SocialIconSubBlock" }, { "$ref": "#/components/schemas/SocialSpacerSubBlock" } ] }, "nullable": true, "type": "array" }, "type": { "enum": [ "social" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SocialIconSubBlock": { "properties": { "custom_asset_id": { "nullable": true, "type": "string" }, "custom_size": { "nullable": true, "type": "integer" }, "custom_src": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "label": { "nullable": true, "type": "string" }, "link_type": { "description": "Social block link type.", "enum": [ "android", "apple", "custom", "discord", "email", "facebook", "google-plus", "instagram", "linkedin", "pinterest", "rss", "snapchat", "threads", "tiktok", "twitch", "twitter", "whatsapp", "x-twitter", "yelp", "youtube" ], "nullable": true, "type": "string" }, "link_url": { "nullable": true, "type": "string" }, "type": { "enum": [ "social_link_icon" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SocialSpacerSubBlock": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "social_link_spacer" ], "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "required": [ "type" ], "type": "object" }, "SpacerBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/SpacerBlockStyles" } }, "required": [ "display_options", "styles" ], "type": "object" }, "SpacerBlockStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "height": { "nullable": true, "type": "integer" } }, "type": "object" }, "SpacerBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true }, "type": { "enum": [ "spacer" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SpacerBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/SpacerBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "spacer" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SpamComplaintMethodFilter": { "properties": { "field": { "enum": [ "method" ], "type": "string" }, "method": { "enum": [ "spam_complaint" ], "type": "string" } }, "required": [ "field", "method" ], "type": "object" }, "SpinToWin": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SpinToWinProperties" }, "styles": { "$ref": "#/components/schemas/SpinToWinStyles" }, "type": { "enum": [ "spin_to_win" ], "type": "string" } }, "required": [ "properties", "type" ], "type": "object" }, "SpinToWinProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "duplicate_slices": { "default": false, "type": "boolean" }, "slices": { "items": { "$ref": "#/components/schemas/SpinToWinSliceConfig" }, "type": "array" } }, "required": [ "slices" ], "type": "object" }, "SpinToWinSliceConfig": { "properties": { "label": { "type": "string" }, "probability": { "type": "integer" }, "step_id": { "type": "string" } }, "required": [ "label", "probability", "step_id" ], "type": "object" }, "SpinToWinSliceStyle": { "properties": { "background_color": { "default": "rgba(0,0,0,1)", "example": "rgba(0,0,0,1)", "type": "string" }, "text_color": { "default": "rgba(255,255,255,1)", "example": "rgba(255,255,255,1)", "type": "string" } }, "type": "object" }, "SpinToWinStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "center_color": { "default": "rgba(255,255,255,1)", "example": "rgba(255,255,255,1)", "type": "string" }, "outline_color": { "default": "rgba(0,0,0,1)", "example": "rgba(0,0,0,1)", "type": "string" }, "outline_thickness": { "default": 12, "example": 12, "type": "integer" }, "padding": { "$ref": "#/components/schemas/Padding" }, "pin_color": { "default": "rgba(255,255,255,1)", "example": "rgba(255,255,255,1)", "type": "string" }, "slice_styles": { "items": { "$ref": "#/components/schemas/SpinToWinSliceStyle" }, "type": "array" }, "text_styles": { "$ref": "#/components/schemas/TextStyleV0" }, "wheel_size": { "default": 400, "example": 400, "type": "integer" } }, "type": "object" }, "SplitBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/SplitBlockStyles" } }, "required": [ "display_options", "styles" ], "type": "object" }, "SplitBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "column_widths": { "nullable": true, "type": "string" }, "mobile_stack_order": { "description": "Stacking direction.", "enum": [ "ltr", "no-stack", "rtl" ], "nullable": true, "type": "string" }, "padding_in_between": { "nullable": true, "type": "integer" } }, "type": "object" }, "SplitBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "split" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "SplitBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/SplitBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "subblocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TableTextSubBlock" }, { "$ref": "#/components/schemas/TableImageSubBlock" }, { "$ref": "#/components/schemas/TableHtmlSubBlock" } ] }, "nullable": true, "type": "array" }, "type": { "enum": [ "split" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "StaticCount": { "properties": { "badge_config": { "enum": [ "set_count" ], "type": "string" }, "value": { "type": "string" } }, "required": [ "badge_config", "value" ], "type": "object" }, "StaticCouponConfig": { "properties": { "text": { "nullable": true, "type": "string" }, "type": { "enum": [ "static" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "StaticDateFilter": { "properties": { "date": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "operator": { "description": "Operators for static date filters.\n\nE.g. \"before 2023-01-01\"", "enum": [ "after", "before" ], "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "operator", "date" ], "type": "object" }, "StaticDateRangeFilter": { "properties": { "end": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "operator": { "description": "Operators for static date range filters.\n\nE.g. \"between 2023-01-01 and 2023-02-01\"", "enum": [ "between-static" ], "type": "string" }, "start": { "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "type": { "enum": [ "date" ], "type": "string" } }, "required": [ "type", "operator", "start", "end" ], "type": "object" }, "StaticImageBlockProperties": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "cropping_properties": { "$ref": "#/components/schemas/ImageBlockCroppingProperties", "nullable": true, "readOnly": true }, "dynamic": { "enum": [ false ], "nullable": true, "type": "boolean" }, "href": { "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "StaticProductBlockProperties": { "properties": { "dynamic": { "enum": [ false ], "nullable": true, "type": "boolean" }, "is_ai_generated": { "nullable": true, "type": "boolean" }, "is_prebuilt_content": { "nullable": true, "type": "boolean" }, "item_subtype_id": { "nullable": true, "type": "integer" }, "language": { "nullable": true, "type": "string" }, "localize_for_recipient": { "nullable": true, "type": "boolean" }, "region": { "nullable": true, "type": "string" }, "show_button": { "nullable": true, "type": "boolean" }, "show_description": { "nullable": true, "type": "boolean" }, "show_original_price": { "nullable": true, "type": "boolean" }, "show_price": { "nullable": true, "type": "boolean" }, "show_rating": { "nullable": true, "type": "boolean" }, "show_rating_count": { "nullable": true, "type": "boolean" }, "show_title": { "nullable": true, "type": "boolean" }, "show_title_links": { "nullable": true, "type": "boolean" }, "title_placeholder": { "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "StaticReviewBlockProperties": { "properties": { "author": { "nullable": true, "type": "string" }, "author_placeholder": { "nullable": true, "type": "string" }, "dynamic": { "enum": [ false ], "nullable": true, "type": "boolean" }, "product_name": { "nullable": true, "type": "string" }, "product_name_placeholder": { "nullable": true, "type": "string" }, "product_variant_name": { "nullable": true, "type": "string" }, "product_variant_name_placeholder": { "nullable": true, "type": "string" }, "quote": { "nullable": true, "type": "string" }, "quote_placeholder": { "nullable": true, "type": "string" }, "show_product_name": { "nullable": true, "type": "boolean" }, "show_rating": { "nullable": true, "type": "boolean" }, "show_reviewer_name": { "nullable": true, "type": "boolean" }, "show_variant_name": { "nullable": true, "type": "boolean" }, "show_verified_badge": { "nullable": true, "type": "boolean" }, "stars": { "nullable": true, "type": "integer" }, "verified": { "nullable": true, "type": "boolean" }, "verified_badge_language": { "description": "Review block verified badge language.", "enum": [ "dutch", "english", "french", "german", "hungarian", "italian", "japanese", "korean", "portuguese", "spanish" ], "nullable": true, "type": "string" } }, "required": [ "dynamic" ], "type": "object" }, "StaticSendStrategy": { "properties": { "datetime": { "description": "The time to send at", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "method": { "enum": [ "static" ], "type": "string" }, "options": { "description": "If the campaign should be sent with local recipient timezone send (requires UTC time) or statically sent at the given time.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/LocalStaticSend" }, { "$ref": "#/components/schemas/NonLocalStaticSend" } ] } }, "required": [ "method", "datetime" ], "type": "object" }, "StaticTableBlockProperties": { "properties": { "dynamic": { "enum": [ false ], "nullable": true, "type": "boolean" }, "num_columns": { "nullable": true, "type": "integer" }, "show_headers": { "nullable": true, "type": "boolean" } }, "required": [ "dynamic" ], "type": "object" }, "StaticTrackingParam": { "properties": { "name": { "description": "Name of the tracking param", "example": "utm_medium", "type": "string" }, "type": { "description": "The type of the tracking parameter", "enum": [ "static" ], "type": "string" }, "value": { "description": "The value of the tracking parameter", "type": "string" } }, "required": [ "type", "value", "name" ], "type": "object" }, "StatisticsDTO": { "properties": { "average_rating": { "description": "The average rating", "example": 4.5, "nullable": true, "type": "number" }, "average_store_rating": { "description": "The average rating of store reviews", "example": 2, "nullable": true, "type": "number" }, "total_questions": { "description": "The total number of questions", "example": 50, "nullable": true, "type": "integer" }, "total_ratings": { "description": "The total number of ratings", "example": 200, "nullable": true, "type": "integer" }, "total_reviews": { "description": "The total number of reviews", "example": 100, "nullable": true, "type": "integer" }, "total_store_reviews": { "description": "The total number of store reviews", "example": 5000, "nullable": true, "type": "integer" } }, "type": "object" }, "StatusDateFilter": { "properties": { "field": { "enum": [ "status_date" ], "type": "string" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/StaticDateFilter" }, { "$ref": "#/components/schemas/StaticDateRangeFilter" }, { "$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter" }, { "$ref": "#/components/schemas/RelativeAnniversaryDateFilter" }, { "$ref": "#/components/schemas/RelativeDateRangeFilter" }, { "$ref": "#/components/schemas/CalendarDateFilter" }, { "$ref": "#/components/schemas/AnniversaryDateFilter" } ] } }, "required": [ "field", "filter" ], "type": "object" }, "Step": { "properties": { "columns": { "items": { "$ref": "#/components/schemas/ColumnV0" }, "type": "array" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "name": { "nullable": true, "type": "string" }, "steps": { "items": { "$ref": "#/components/schemas/Step" }, "nullable": true, "type": "array" } }, "required": [ "columns" ], "type": "object" }, "StreetAddress": { "properties": { "address1": { "example": "125 Summer Street", "nullable": true, "type": "string" }, "address2": { "example": "5th Floor", "nullable": true, "type": "string" }, "city": { "example": "Boston", "type": "string" }, "country": { "description": "Two-letter [ISO country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)", "example": "US", "nullable": true, "type": "string" }, "region": { "description": "State, province, or region.", "example": "MA", "nullable": true, "type": "string" }, "zip": { "example": "04323", "nullable": true, "type": "string" } }, "required": [ "city" ], "type": "object" }, "StringArrayOperatorStringArrayFilter": { "properties": { "operator": { "description": "Operators for string-in-array filters.", "enum": [ "in", "not-in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "StringInArrayFilter": { "properties": { "operator": { "enum": [ "in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "type": "string" }, "type": "array" } }, "required": [ "operator", "value", "type" ], "type": "object" }, "StringOperatorStringFilter": { "properties": { "operator": { "description": "Operators for string filters.", "enum": [ "contains", "ends-with", "equals", "not-contains", "not-ends-with", "not-equals", "not-starts-with", "nregex", "regex", "starts-with" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "nullable": true, "type": "string" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "StringPhoneOperatorStringArrayFilter": { "properties": { "operator": { "description": "Operators for phone string array filters.\n\nExample condition using this filter:\n {\n \"type\": \"profile-property\",\n \"field\": \"phone\",\n \"filter\": {\n \"type\": \"string\",\n \"operator\": \"phone-country-code-in\",\n \"value\": [\"US\", \"GB\"]\n }\n }", "enum": [ "phone-country-code-in", "phone-country-code-not-in" ], "type": "string" }, "type": { "enum": [ "string" ], "type": "string" }, "value": { "items": { "type": "string" }, "type": "array" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "SubmitBackInStock": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SubmitBackInStockProperties", "nullable": true }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "submit_back_in_stock" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SubmitBackInStockProperties": { "properties": { "list_id": { "nullable": true, "type": "string" } }, "type": "object" }, "SubmitOptInCode": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "enum": [ null ] }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "submit_opt_in_code" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "SubscribeViaSMS": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SubscribeViaSMSProperties" }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "subscribe_via_sms" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "SubscribeViaSMSProperties": { "properties": { "opt_in_keyword": { "nullable": true, "type": "string" }, "opt_in_message": { "type": "string" }, "sending_number": { "nullable": true, "type": "string" } }, "required": [ "opt_in_keyword", "opt_in_message", "sending_number" ], "type": "object" }, "SubscribeViaWhatsApp": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/SubscribeViaWhatsAppProperties" }, "submit": { "default": true, "enum": [ true ], "example": true, "type": "boolean" }, "type": { "enum": [ "subscribe_via_whatsapp" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "SubscribeViaWhatsAppProperties": { "properties": { "opt_in_keyword": { "nullable": true, "type": "string" }, "opt_in_message": { "type": "string" }, "sending_number": { "nullable": true, "type": "string" } }, "required": [ "opt_in_keyword", "opt_in_message", "sending_number" ], "type": "object" }, "SubscribedSMSIsRcsCapableFilter": { "properties": { "field": { "enum": [ "is_rcs_capable" ], "type": "string" }, "filter": { "$ref": "#/components/schemas/BooleanFilter" } }, "required": [ "field", "filter" ], "type": "object" }, "SubscriptionChannels": { "properties": { "email": { "$ref": "#/components/schemas/EmailSubscriptionParameters", "description": "The subscription parameters to subscribe to on the \"EMAIL\" Channel.", "nullable": true }, "push": { "$ref": "#/components/schemas/PushSubscriptionParameters", "description": "The subscription parameters to subscribe to on the \"Push\" Channel.", "nullable": true }, "sms": { "$ref": "#/components/schemas/SMSSubscriptionParameters", "description": "The subscription parameters to subscribe to on the \"SMS\" Channel.", "nullable": true }, "whatsapp": { "$ref": "#/components/schemas/WhatsAppSubscriptionParameters", "description": "The subscription parameters to subscribe to on the \"WhatsApp\" Channel.", "nullable": true } }, "type": "object" }, "SubscriptionCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SubscriptionCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SubscriptionCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "custom_source": { "description": "A custom method detail or source to store on the consent records.", "example": "Marketing Event", "nullable": true, "type": "string" }, "historical_import": { "default": false, "description": "Whether this subscription is part of a historical import. If true, the consented_at field must be provided for each profile.", "nullable": true, "type": "boolean" }, "profiles": { "description": "The profile(s) to subscribe", "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileSubscriptionCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profiles" ], "type": "object" }, "relationships": { "properties": { "list": { "properties": { "data": { "properties": { "id": { "description": "The list to add the newly subscribed profiles to", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSubscriptionBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SubscriptionDeleteJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SubscriptionDeleteJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SubscriptionDeleteJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "profiles": { "description": "The profile(s) to unsubscribe", "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileSubscriptionDeleteQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "required": [ "profiles" ], "type": "object" }, "relationships": { "properties": { "list": { "properties": { "data": { "properties": { "id": { "description": "The list to remove the profiles from", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSubscriptionBulkDeleteJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SubscriptionEnum": { "enum": [ "subscription" ], "type": "string" }, "SubscriptionParameters": { "properties": { "consent": { "description": "The Consent status to be set as part of the subscribe call. Currently supports \"SUBSCRIBED\".", "enum": [ "SUBSCRIBED" ], "example": "SUBSCRIBED", "type": "string" }, "consented_at": { "description": "The timestamp of when the profile's consent was gathered. This should only be used when syncing over historical consent info to Klaviyo; if the `historical_import` flag is not included, providing any value for this field will raise an error.", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "consent" ], "type": "object" }, "Subscriptions": { "properties": { "email": { "$ref": "#/components/schemas/EmailChannel", "description": "The email channel subscription.", "nullable": true }, "mobile_push": { "$ref": "#/components/schemas/PushChannel", "description": "The mobile push channel subscription.", "nullable": true }, "sms": { "$ref": "#/components/schemas/SMSChannel", "description": "The SMS channel subscription.", "nullable": true }, "whatsapp": { "$ref": "#/components/schemas/WhatsappChannel", "description": "The whatsapp channel subscription.", "nullable": true } }, "type": "object" }, "SuppressionCreateJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SuppressionCreateJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SuppressionCreateJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "profiles": { "description": "The profile(s) to create suppressions for.", "nullable": true, "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileSuppressionCreateQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "type": "object" }, "relationships": { "properties": { "list": { "properties": { "data": { "properties": { "id": { "description": "Suppress all profiles in this list", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" }, "segment": { "properties": { "data": { "properties": { "id": { "description": "Suppress all profiles in this segment", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "SuppressionDeleteJobCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/SuppressionDeleteJobCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "SuppressionDeleteJobCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "profiles": { "description": "The profile(s) to remove suppressions for.", "nullable": true, "properties": { "data": { "items": { "$ref": "#/components/schemas/ProfileSuppressionDeleteQueryResourceObject" }, "type": "array" } }, "required": [ "data" ], "type": "object" } }, "type": "object" }, "relationships": { "properties": { "list": { "properties": { "data": { "properties": { "id": { "description": "The list to pull the profiles to remove suppressions from", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" }, "segment": { "properties": { "data": { "properties": { "id": { "description": "The segment to pull the profiles to remove suppressions from", "example": "Y6nRLr", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "TableBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "oneOf": [ { "$ref": "#/components/schemas/StaticTableBlockProperties" }, { "$ref": "#/components/schemas/DynamicTableBlockProperties" } ] }, "styles": { "$ref": "#/components/schemas/TableBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "TableBlockStyles": { "properties": { "block_background_color": { "nullable": true, "type": "string" }, "block_border_color": { "nullable": true, "type": "string" }, "block_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "block_border_width": { "nullable": true, "type": "integer" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "cell_horizontal_border_color": { "nullable": true, "type": "string" }, "cell_horizontal_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "cell_horizontal_border_width": { "nullable": true, "type": "integer" }, "cell_padding_bottom": { "nullable": true, "type": "integer" }, "cell_padding_left": { "nullable": true, "type": "integer" }, "cell_padding_right": { "nullable": true, "type": "integer" }, "cell_padding_top": { "nullable": true, "type": "integer" }, "cell_vertical_align": { "description": "Vertical alignment.", "enum": [ "baseline", "bottom", "middle", "top" ], "nullable": true, "type": "string" }, "cell_vertical_border_color": { "nullable": true, "type": "string" }, "cell_vertical_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "cell_vertical_border_width": { "nullable": true, "type": "integer" }, "header_background_color": { "nullable": true, "type": "string" }, "header_font_color": { "nullable": true, "type": "string" }, "header_font_family": { "nullable": true, "type": "string" }, "header_font_size": { "nullable": true, "type": "integer" }, "header_font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "header_font_weight": { "nullable": true, "type": "string" }, "header_letter_spacing": { "nullable": true, "type": "integer" }, "header_line_height": { "nullable": true, "type": "number" }, "header_padding_bottom": { "nullable": true, "type": "integer" }, "header_padding_left": { "nullable": true, "type": "integer" }, "header_padding_right": { "nullable": true, "type": "integer" }, "header_padding_top": { "nullable": true, "type": "integer" }, "header_text_decoration": { "nullable": true, "type": "string" }, "table_background_color": { "nullable": true, "type": "string" }, "table_font_color": { "nullable": true, "type": "string" }, "table_font_family": { "nullable": true, "type": "string" }, "table_font_size": { "nullable": true, "type": "integer" }, "table_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "use_legacy_mobile_padding": { "nullable": true, "type": "boolean" } }, "type": "object" }, "TableBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "table" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "TableBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/TableBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "subblocks": { "items": { "oneOf": [ { "$ref": "#/components/schemas/TableHeaderSubBlock" }, { "$ref": "#/components/schemas/TableHtmlSubBlock" }, { "$ref": "#/components/schemas/TableImageSubBlock" }, { "$ref": "#/components/schemas/TableTextSubBlock" }, { "$ref": "#/components/schemas/TableFallbackHtmlSubBlock" }, { "$ref": "#/components/schemas/TableFallbackImageSubBlock" }, { "$ref": "#/components/schemas/TableFallbackTextSubBlock" } ] }, "nullable": true, "type": "array" }, "type": { "enum": [ "table" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "TableFallbackHtmlSubBlock": { "properties": { "content": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "type": { "enum": [ "table_fallback_html" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TableFallbackImageSubBlock": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "cell_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "cropped_asset_id": { "nullable": true, "type": "string" }, "cropped_src": { "nullable": true, "type": "string" }, "cropping_aspect_ratio": { "nullable": true, "type": "string" }, "cropping_height": { "nullable": true, "type": "integer" }, "cropping_width": { "nullable": true, "type": "integer" }, "cropping_x": { "nullable": true, "type": "integer" }, "cropping_y": { "nullable": true, "type": "integer" }, "dynamic": { "nullable": true, "type": "boolean" }, "height": { "nullable": true, "type": "integer" }, "href": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "image_align": { "description": "Image Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "image_width": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" }, "table_column_width": { "nullable": true, "type": "string" }, "type": { "enum": [ "table_fallback_image" ], "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "required": [ "type" ], "type": "object" }, "TableFallbackTextSubBlock": { "properties": { "cell_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "color": { "nullable": true, "type": "string" }, "content": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "table_column_width": { "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" }, "type": { "enum": [ "table_fallback_text" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TableHeaderSubBlock": { "properties": { "cell_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "color": { "nullable": true, "type": "string" }, "content": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "table_column_width": { "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" }, "type": { "enum": [ "table_header" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TableHtmlSubBlock": { "properties": { "content": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "type": { "enum": [ "table_html" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TableImageSubBlock": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "asset_id": { "nullable": true, "type": "string" }, "cell_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "cropped_asset_id": { "nullable": true, "type": "string" }, "cropped_src": { "nullable": true, "type": "string" }, "cropping_aspect_ratio": { "nullable": true, "type": "string" }, "cropping_height": { "nullable": true, "type": "integer" }, "cropping_width": { "nullable": true, "type": "integer" }, "cropping_x": { "nullable": true, "type": "integer" }, "cropping_y": { "nullable": true, "type": "integer" }, "dynamic": { "nullable": true, "type": "boolean" }, "height": { "nullable": true, "type": "integer" }, "href": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "image_align": { "description": "Image Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "image_width": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" }, "table_column_width": { "nullable": true, "type": "string" }, "type": { "enum": [ "table_image" ], "type": "string" }, "width": { "nullable": true, "type": "integer" } }, "required": [ "type" ], "type": "object" }, "TableTextSubBlock": { "properties": { "cell_text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "color": { "nullable": true, "type": "string" }, "content": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "show_on": { "description": "Show on.", "enum": [ "all", "desktop", "mobile" ], "nullable": true, "type": "string" }, "table_column_width": { "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" }, "type": { "enum": [ "table_text" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TagCampaignOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of the campaigns to link or unlink with the given Tag ID", "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "TagCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/TagCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TagCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "The Tag name", "example": "My Tag", "type": "string" } }, "required": [ "name" ], "type": "object" }, "relationships": { "properties": { "tag-group": { "properties": { "data": { "properties": { "id": { "description": "The ID of the Tag Group to associate the Tag with. If this field is not specified, the Tag will be associated with the company's Default Tag Group.", "example": "zyxw9876-vu54-ts32-rq10-zyxwvu654321", "type": "string" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id" ], "type": "object" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "TagEnum": { "enum": [ "tag" ], "type": "string" }, "TagFlowOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of the flows to link or unlink with the given Tag ID", "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "TagGroupCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/TagGroupCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TagGroupCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "exclusive": { "default": false, "nullable": true, "type": "boolean" }, "name": { "description": "The Tag Group name", "example": "My Tag Group", "type": "string" } }, "required": [ "name" ], "type": "object" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "TagGroupEnum": { "enum": [ "tag-group" ], "type": "string" }, "TagGroupResponseObjectResource": { "properties": { "attributes": { "properties": { "default": { "description": "Every company automatically has one Default Tag Group. The Default Tag Group cannot be deleted, and no other Default Tag Groups can be created. This value is true for the Default Tag Group and false for all other Tag Groups.", "type": "boolean" }, "exclusive": { "description": "If a tag group is non-exclusive, any given related resource (campaign, flow, etc.) can be linked to multiple tags from that tag group. If a tag group is exclusive, any given related resource can only be linked to one tag from that tag group.", "type": "boolean" }, "name": { "description": "The Tag Group name", "example": "My Tag Group", "type": "string" } }, "required": [ "name", "exclusive", "default" ], "type": "object" }, "id": { "description": "The Tag Group ID", "example": "zyxw9876-vu54-ts32-rq10-zyxwvu654321", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "tags": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "TagGroupUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/TagGroupUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TagGroupUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "The Tag Group name", "example": "My Tag Group", "type": "string" }, "return_fields": { "items": { "type": "string" }, "nullable": true, "type": "array" } }, "required": [ "name" ], "type": "object" }, "id": { "description": "The Tag Group ID", "example": "zyxw9876-vu54-ts32-rq10-zyxwvu654321", "type": "string" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "TagListOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of the lists to link or unlink with the given Tag ID", "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "TagResponseObjectResource": { "properties": { "attributes": { "properties": { "name": { "description": "The Tag name", "example": "My Tag", "type": "string" } }, "required": [ "name" ], "type": "object" }, "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "campaigns": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/CampaignEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "flows": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/FlowEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "lists": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/ListEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "segments": { "properties": { "data": { "items": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" }, "tag-group": { "properties": { "data": { "properties": { "id": { "type": "string" }, "type": { "$ref": "#/components/schemas/TagGroupEnum" } }, "required": [ "type", "id" ], "type": "object" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "TagSegmentOp": { "properties": { "data": { "items": { "properties": { "id": { "description": "The IDs of the segments to link or unlink with the given Tag ID", "type": "string" }, "type": { "$ref": "#/components/schemas/SegmentEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "TagUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/TagUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TagUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "The Tag name", "example": "My Tag", "type": "string" } }, "required": [ "name" ], "type": "object" }, "id": { "description": "The Tag ID", "example": "abcd1234-ef56-gh78-ij90-abcdef123456", "type": "string" }, "type": { "$ref": "#/components/schemas/TagEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "TargetDateAction": { "properties": { "data": { "$ref": "#/components/schemas/TargetDateActionData" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "target-date" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "TargetDateActionData": { "properties": { "target_days": { "items": { "description": "Days of the week.", "enum": [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], "type": "string" }, "nullable": true, "type": "array" }, "target_time": { "format": "time", "type": "string" }, "timezone": { "default": "profile", "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile" ], "example": "profile", "type": "string" } }, "type": "object" }, "Teaser": { "properties": { "close_button": { "default": true, "example": true, "type": "boolean" }, "content": { "type": "string" }, "custom_size": { "nullable": true, "type": "integer" }, "device_type": { "default": "both", "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "example": "both", "type": "string" }, "display_order": { "default": "after", "description": "Teaser display order enumeration.", "enum": [ "after", "before", "before_and_after" ], "example": "after", "type": "string" }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "location": { "default": "bottom_left", "description": "Display location enumeration.", "enum": [ "bottom_center", "bottom_left", "bottom_right", "center_left", "center_right", "top_center", "top_left", "top_right" ], "example": "bottom_left", "type": "string" }, "size": { "default": "small", "description": "Teaser size enumeration.", "enum": [ "custom", "large", "medium", "small" ], "example": "small", "type": "string" }, "styles": { "$ref": "#/components/schemas/TeaserStyles" }, "teaser_type": { "default": "rectangle", "description": "Teaser display order enumeration.", "enum": [ "circle", "corner", "rectangle" ], "example": "rectangle", "type": "string" } }, "required": [ "content" ], "type": "object" }, "TeaserStyles": { "properties": { "background_color": { "default": "#FFFFFF", "example": "#FFFFFF", "type": "string" }, "background_image": { "$ref": "#/components/schemas/BackgroundImage", "nullable": true }, "close_button": { "$ref": "#/components/schemas/CloseButtonStyle" }, "corner_radius": { "default": 4, "example": 4, "type": "integer" }, "drop_shadow": { "$ref": "#/components/schemas/DropShadow" }, "margin": { "$ref": "#/components/schemas/Margin" } }, "type": "object" }, "TemplateCloneQuery": { "properties": { "data": { "$ref": "#/components/schemas/TemplateCloneQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TemplateCloneQueryResourceObject": { "properties": { "attributes": { "properties": { "name": { "description": "The name of the template", "example": "Clone of Monthly Newsletter Template", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of template to be cloned", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "TemplateCreateHtmlOrDndQuery": { "properties": { "data": { "$ref": "#/components/schemas/TemplateCreateHtmlOrDndQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TemplateCreateHtmlOrDndQueryResourceObject": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo Not allowed for SYSTEM_DRAGGABLE.", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "The template definition. Required for SYSTEM_DRAGGABLE; ignored for CODE/USER_DRAGGABLE.", "nullable": true }, "editor_type": { "description": "Restricted to CODE, USER_DRAGGABLE, or SYSTEM_DRAGGABLE", "type": "string" }, "html": { "description": "The HTML contents of the template. Required for CODE/USER_DRAGGABLE; not allowed for SYSTEM_DRAGGABLE.", "nullable": true, "type": "string" }, "name": { "description": "The name of the template", "example": "Monthly Newsletter Template", "type": "string" }, "text": { "description": "The plaintext version of the template", "example": "hello world", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type" ], "type": "object" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "TemplateDefinition": { "properties": { "body": { "$ref": "#/components/schemas/Body" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "styles": { "description": "When present, must contain exactly one of each style type.", "items": { "oneOf": [ { "$ref": "#/components/schemas/BaseStyle" }, { "$ref": "#/components/schemas/TextStyleV1" }, { "$ref": "#/components/schemas/Heading1Style" }, { "$ref": "#/components/schemas/Heading2Style" }, { "$ref": "#/components/schemas/Heading3Style" }, { "$ref": "#/components/schemas/Heading4Style" }, { "$ref": "#/components/schemas/LinkStyle" }, { "$ref": "#/components/schemas/MobileStyle" } ] }, "type": "array" }, "template_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "body", "styles" ], "type": "object" }, "TemplateDndResponseObjectResource": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo", "nullable": true, "type": "string" }, "created": { "description": "The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "editor_type": { "description": "`editor_type` has a fixed set of values:\n* SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template\n* SIMPLE: A rich text editor template\n* CODE: A custom HTML template\n* USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor", "type": "string" }, "html": { "description": "The rendered HTML of the template", "type": "string" }, "name": { "description": "The name of the template", "type": "string" }, "text": { "description": "The template plain_text", "nullable": true, "type": "string" }, "updated": { "description": "The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type", "html" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "TemplateEnum": { "enum": [ "template" ], "type": "string" }, "TemplateRenderQuery": { "properties": { "data": { "$ref": "#/components/schemas/TemplateRenderQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TemplateRenderQueryResourceObject": { "properties": { "attributes": { "properties": { "context": { "description": "The context for the template render. This must be a JSON object which has values for any tags used in the template. See [this doc](https://help.klaviyo.com/hc/en-us/articles/4408802648731) for more details.", "example": { "first_name": "Jane", "last_name": "Smith" }, "type": "object" } }, "required": [ "context" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "TemplateResponseObjectResource": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo", "nullable": true, "type": "string" }, "created": { "description": "The date the template was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" }, "editor_type": { "description": "`editor_type` has a fixed set of values:\n* SYSTEM_DRAGGABLE: indicates a drag-and-drop editor template\n* SIMPLE: A rich text editor template\n* CODE: A custom HTML template\n* USER_DRAGGABLE: A hybrid template, using custom HTML in the drag-and-drop editor", "type": "string" }, "html": { "description": "The rendered HTML of the template", "type": "string" }, "name": { "description": "The name of the template", "type": "string" }, "text": { "description": "The template plain_text", "nullable": true, "type": "string" }, "updated": { "description": "The date the template was updated in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "editor_type", "html" ], "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "TemplateUniversalContentEnum": { "enum": [ "template-universal-content" ], "type": "string" }, "TemplateUpdateHtmlOrDndQuery": { "properties": { "data": { "$ref": "#/components/schemas/TemplateUpdateHtmlOrDndQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TemplateUpdateHtmlOrDndQueryResourceObject": { "properties": { "attributes": { "properties": { "amp": { "description": "The AMP version of the template. Requires AMP Email to be enabled to access in-app. Refer to the AMP Email setup guide at https://developers.klaviyo.com/en/docs/send_amp_emails_in_klaviyo Not allowed for SYSTEM_DRAGGABLE.", "nullable": true, "type": "string" }, "definition": { "$ref": "#/components/schemas/TemplateDefinition", "description": "The template definition for SYSTEM_DRAGGABLE templates. Entirely replaces the existing definition. Not allowed for CODE/USER_DRAGGABLE.", "nullable": true }, "html": { "description": "The HTML contents of the template. Not allowed for SYSTEM_DRAGGABLE templates.", "example": "\n \n
\n hello world\n \n \n ", "nullable": true, "type": "string" }, "name": { "description": "The name of the template", "example": "Monthly Newsletter Template", "nullable": true, "type": "string" }, "text": { "description": "The plaintext of the template", "example": "hello world", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of template", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "Text": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TextProperties" }, "styles": { "$ref": "#/components/schemas/TextStyles" }, "type": { "enum": [ "text" ], "type": "string" } }, "required": [ "type", "properties" ], "type": "object" }, "TextBlockDataV0": { "properties": { "content": { "type": "string" }, "display_options": { "$ref": "#/components/schemas/BlockDisplayOptions" }, "styles": { "$ref": "#/components/schemas/TextBlockStylesV0" } }, "required": [ "content", "display_options", "styles" ], "type": "object" }, "TextBlockDataV1": { "properties": { "content": { "type": "string" }, "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "styles": { "$ref": "#/components/schemas/TextBlockStylesV1" } }, "required": [ "content", "display_options", "styles" ], "type": "object" }, "TextBlockStylesV0": { "properties": { "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_border_color": { "nullable": true, "type": "string" }, "block_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "block_border_width": { "nullable": true, "type": "integer" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "color": { "nullable": true, "type": "string" }, "extra_css_class": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "letter_spacing": { "nullable": true, "type": "integer" }, "line_height": { "nullable": true, "type": "number" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" }, "text_table_layout": { "description": "Text table layout.", "enum": [ "auto", "fixed", "inherit", "initial" ], "nullable": true, "type": "string" } }, "type": "object" }, "TextBlockStylesV1": { "properties": { "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_border_color": { "nullable": true, "type": "string" }, "block_border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "block_border_width": { "nullable": true, "type": "integer" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "color": { "nullable": true, "type": "string" }, "extra_css_class": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "letter_spacing": { "nullable": true, "type": "integer" }, "line_height": { "nullable": true, "type": "number" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" }, "text_table_layout": { "description": "Text table layout.", "enum": [ "auto", "fixed", "inherit", "initial" ], "nullable": true, "type": "string" } }, "type": "object" }, "TextBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/TextBlockDataV0" }, "type": { "enum": [ "text" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "TextBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/TextBlockDataV1" }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "text" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "TextProperties": { "properties": { "classname": { "nullable": true, "type": "string" }, "display_device": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "type": "array" }, "error_messages": { "$ref": "#/components/schemas/ErrorMessages", "nullable": true }, "label": { "nullable": true, "type": "string" }, "placeholder": { "nullable": true, "type": "string" }, "property_name": { "type": "string" }, "required": { "default": false, "nullable": true, "type": "boolean" }, "show_label": { "default": false, "type": "boolean" } }, "required": [ "property_name" ], "type": "object" }, "TextStyleStyles": { "properties": { "color": { "nullable": true, "type": "string" }, "font_family": { "nullable": true, "type": "string" }, "font_size": { "nullable": true, "type": "integer" }, "font_style": { "description": "Font style.", "enum": [ "italic", "normal" ], "nullable": true, "type": "string" }, "font_weight": { "nullable": true, "type": "string" }, "letter_spacing": { "nullable": true, "type": "integer" }, "line_height": { "nullable": true, "type": "number" }, "mobile_font_size": { "nullable": true, "type": "integer" }, "mobile_line_height": { "nullable": true, "type": "number" }, "text_align": { "description": "Text Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "TextStyleV0": { "properties": { "character_spacing": { "default": 0, "nullable": true, "type": "integer" }, "font_family": { "default": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "example": "Arial, 'Helvetica Neue', Helvetica, sans-serif", "oneOf": [ { "description": "Web safe font enumeration.", "enum": [ "Arial Black,Arial", "Arial, 'Helvetica Neue', Helvetica, sans-serif", "Century Gothic,AppleGothic,Arial", "Comic Sans MS,Comic Sans,cursive", "Courier", "Courier New", "Geneva,Arial", "Georgia", "Helvetica,Arial", "Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "Lucida,Lucida Sans Unicode,Lucida Sans,Geneva,Verdana,sans-serif", "MS Serif,Georgia", "New York,Georgia", "Palatino Linotype,Palatino,Georgia", "Palatino,Georgia", "Tahoma,sans-serif", "Times New Roman", "Trebuchet MS", "Verdana" ], "type": "string" }, { "type": "string" } ] }, "font_size": { "default": 16, "example": 16, "type": "integer" }, "font_style": { "nullable": true, "type": "string" }, "font_weight": { "default": 400, "description": "Font weight enumeration.", "enum": [ 100, 200, 300, 400, 500, 600, 700, 800, 900 ], "example": 400, "nullable": true, "type": "integer" }, "text_color": { "default": "#000000", "example": "#000000", "type": "string" }, "text_decoration": { "nullable": true, "type": "string" } }, "type": "object" }, "TextStyleV1": { "properties": { "id": { "nullable": true, "readOnly": true, "type": "string" }, "style_type": { "enum": [ "text-styles" ], "type": "string" }, "styles": { "$ref": "#/components/schemas/TextStyleStyles" } }, "required": [ "style_type", "styles" ], "type": "object" }, "TextStyles": { "properties": { "background_color": { "nullable": true, "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" } }, "type": "object" }, "ThrottledSendStrategy": { "properties": { "datetime": { "description": "The time to send at", "format": "date-time", "type": "string" }, "method": { "enum": [ "throttled" ], "type": "string" }, "throttle_percentage": { "description": "The percentage of recipients per hour to send to.", "enum": [ 10, 11, 13, 14, 17, 20, 25, 33, 50 ], "type": "integer" } }, "required": [ "method", "datetime", "throttle_percentage" ], "type": "object" }, "TimeDelayAction": { "properties": { "data": { "$ref": "#/components/schemas/TimeDelayActionData" }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "time-delay" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }, "TimeDelayActionData": { "properties": { "delay_until_time": { "format": "time", "nullable": true, "type": "string" }, "delay_until_weekdays": { "items": { "description": "Days of the week.", "enum": [ "friday", "monday", "saturday", "sunday", "thursday", "tuesday", "wednesday" ], "type": "string" }, "nullable": true, "type": "array" }, "secondary_value": { "nullable": true, "type": "integer" }, "timezone": { "default": "profile", "enum": [ "Africa/Abidjan", "Africa/Accra", "Africa/Addis_Ababa", "Africa/Algiers", "Africa/Asmara", "Africa/Bamako", "Africa/Bangui", "Africa/Banjul", "Africa/Bissau", "Africa/Blantyre", "Africa/Brazzaville", "Africa/Bujumbura", "Africa/Cairo", "Africa/Casablanca", "Africa/Ceuta", "Africa/Conakry", "Africa/Dakar", "Africa/Dar_es_Salaam", "Africa/Djibouti", "Africa/Douala", "Africa/El_Aaiun", "Africa/Freetown", "Africa/Gaborone", "Africa/Harare", "Africa/Johannesburg", "Africa/Juba", "Africa/Kampala", "Africa/Khartoum", "Africa/Kigali", "Africa/Kinshasa", "Africa/Lagos", "Africa/Libreville", "Africa/Lome", "Africa/Luanda", "Africa/Lubumbashi", "Africa/Lusaka", "Africa/Malabo", "Africa/Maputo", "Africa/Maseru", "Africa/Mbabane", "Africa/Mogadishu", "Africa/Monrovia", "Africa/Nairobi", "Africa/Ndjamena", "Africa/Niamey", "Africa/Nouakchott", "Africa/Ouagadougou", "Africa/Porto-Novo", "Africa/Sao_Tome", "Africa/Tripoli", "Africa/Tunis", "Africa/Windhoek", "America/Adak", "America/Anchorage", "America/Anguilla", "America/Antigua", "America/Araguaina", "America/Argentina/Buenos_Aires", "America/Argentina/Catamarca", "America/Argentina/Cordoba", "America/Argentina/Jujuy", "America/Argentina/La_Rioja", "America/Argentina/Mendoza", "America/Argentina/Rio_Gallegos", "America/Argentina/Salta", "America/Argentina/San_Juan", "America/Argentina/San_Luis", "America/Argentina/Tucuman", "America/Argentina/Ushuaia", "America/Aruba", "America/Asuncion", "America/Atikokan", "America/Bahia", "America/Bahia_Banderas", "America/Barbados", "America/Belem", "America/Belize", "America/Blanc-Sablon", "America/Boa_Vista", "America/Bogota", "America/Boise", "America/Cambridge_Bay", "America/Campo_Grande", "America/Cancun", "America/Caracas", "America/Cayenne", "America/Cayman", "America/Chicago", "America/Chihuahua", "America/Ciudad_Juarez", "America/Costa_Rica", "America/Creston", "America/Cuiaba", "America/Curacao", "America/Danmarkshavn", "America/Dawson", "America/Dawson_Creek", "America/Denver", "America/Detroit", "America/Dominica", "America/Edmonton", "America/Eirunepe", "America/El_Salvador", "America/Fort_Nelson", "America/Fortaleza", "America/Glace_Bay", "America/Goose_Bay", "America/Grand_Turk", "America/Grenada", "America/Guadeloupe", "America/Guatemala", "America/Guayaquil", "America/Guyana", "America/Halifax", "America/Havana", "America/Hermosillo", "America/Indiana/Indianapolis", "America/Indiana/Knox", "America/Indiana/Marengo", "America/Indiana/Petersburg", "America/Indiana/Tell_City", "America/Indiana/Vevay", "America/Indiana/Vincennes", "America/Indiana/Winamac", "America/Inuvik", "America/Iqaluit", "America/Jamaica", "America/Juneau", "America/Kentucky/Louisville", "America/Kentucky/Monticello", "America/Kralendijk", "America/La_Paz", "America/Lima", "America/Los_Angeles", "America/Lower_Princes", "America/Maceio", "America/Managua", "America/Manaus", "America/Marigot", "America/Martinique", "America/Matamoros", "America/Mazatlan", "America/Menominee", "America/Merida", "America/Metlakatla", "America/Mexico_City", "America/Miquelon", "America/Moncton", "America/Monterrey", "America/Montevideo", "America/Montserrat", "America/Nassau", "America/New_York", "America/Nome", "America/Noronha", "America/North_Dakota/Beulah", "America/North_Dakota/Center", "America/North_Dakota/New_Salem", "America/Nuuk", "America/Ojinaga", "America/Panama", "America/Paramaribo", "America/Phoenix", "America/Port-au-Prince", "America/Port_of_Spain", "America/Porto_Velho", "America/Puerto_Rico", "America/Punta_Arenas", "America/Rankin_Inlet", "America/Recife", "America/Regina", "America/Resolute", "America/Rio_Branco", "America/Santarem", "America/Santiago", "America/Santo_Domingo", "America/Sao_Paulo", "America/Scoresbysund", "America/Sitka", "America/St_Barthelemy", "America/St_Johns", "America/St_Kitts", "America/St_Lucia", "America/St_Thomas", "America/St_Vincent", "America/Swift_Current", "America/Tegucigalpa", "America/Thule", "America/Tijuana", "America/Toronto", "America/Tortola", "America/Vancouver", "America/Whitehorse", "America/Winnipeg", "America/Yakutat", "Antarctica/Casey", "Antarctica/Davis", "Antarctica/DumontDUrville", "Antarctica/Macquarie", "Antarctica/Mawson", "Antarctica/McMurdo", "Antarctica/Palmer", "Antarctica/Rothera", "Antarctica/Syowa", "Antarctica/Troll", "Antarctica/Vostok", "Arctic/Longyearbyen", "Asia/Aden", "Asia/Almaty", "Asia/Amman", "Asia/Anadyr", "Asia/Aqtau", "Asia/Aqtobe", "Asia/Ashgabat", "Asia/Atyrau", "Asia/Baghdad", "Asia/Bahrain", "Asia/Baku", "Asia/Bangkok", "Asia/Barnaul", "Asia/Beirut", "Asia/Bishkek", "Asia/Brunei", "Asia/Chita", "Asia/Choibalsan", "Asia/Colombo", "Asia/Damascus", "Asia/Dhaka", "Asia/Dili", "Asia/Dubai", "Asia/Dushanbe", "Asia/Famagusta", "Asia/Gaza", "Asia/Hebron", "Asia/Ho_Chi_Minh", "Asia/Hong_Kong", "Asia/Hovd", "Asia/Irkutsk", "Asia/Jakarta", "Asia/Jayapura", "Asia/Jerusalem", "Asia/Kabul", "Asia/Kamchatka", "Asia/Karachi", "Asia/Kathmandu", "Asia/Khandyga", "Asia/Kolkata", "Asia/Krasnoyarsk", "Asia/Kuala_Lumpur", "Asia/Kuching", "Asia/Kuwait", "Asia/Macau", "Asia/Magadan", "Asia/Makassar", "Asia/Manila", "Asia/Muscat", "Asia/Nicosia", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", "Asia/Oral", "Asia/Phnom_Penh", "Asia/Pontianak", "Asia/Pyongyang", "Asia/Qatar", "Asia/Qostanay", "Asia/Qyzylorda", "Asia/Riyadh", "Asia/Sakhalin", "Asia/Samarkand", "Asia/Seoul", "Asia/Shanghai", "Asia/Singapore", "Asia/Srednekolymsk", "Asia/Taipei", "Asia/Tashkent", "Asia/Tbilisi", "Asia/Tehran", "Asia/Thimphu", "Asia/Tokyo", "Asia/Tomsk", "Asia/Ulaanbaatar", "Asia/Urumqi", "Asia/Ust-Nera", "Asia/Vientiane", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yangon", "Asia/Yekaterinburg", "Asia/Yerevan", "Atlantic/Azores", "Atlantic/Bermuda", "Atlantic/Canary", "Atlantic/Cape_Verde", "Atlantic/Faroe", "Atlantic/Madeira", "Atlantic/Reykjavik", "Atlantic/South_Georgia", "Atlantic/St_Helena", "Atlantic/Stanley", "Australia/Adelaide", "Australia/Brisbane", "Australia/Broken_Hill", "Australia/Darwin", "Australia/Eucla", "Australia/Hobart", "Australia/Lindeman", "Australia/Lord_Howe", "Australia/Melbourne", "Australia/Perth", "Australia/Sydney", "Canada/Atlantic", "Canada/Central", "Canada/Eastern", "Canada/Mountain", "Canada/Newfoundland", "Canada/Pacific", "Europe/Amsterdam", "Europe/Andorra", "Europe/Astrakhan", "Europe/Athens", "Europe/Belgrade", "Europe/Berlin", "Europe/Bratislava", "Europe/Brussels", "Europe/Bucharest", "Europe/Budapest", "Europe/Busingen", "Europe/Chisinau", "Europe/Copenhagen", "Europe/Dublin", "Europe/Gibraltar", "Europe/Guernsey", "Europe/Helsinki", "Europe/Isle_of_Man", "Europe/Istanbul", "Europe/Jersey", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Kyiv", "Europe/Lisbon", "Europe/Ljubljana", "Europe/London", "Europe/Luxembourg", "Europe/Madrid", "Europe/Malta", "Europe/Mariehamn", "Europe/Minsk", "Europe/Monaco", "Europe/Moscow", "Europe/Oslo", "Europe/Paris", "Europe/Podgorica", "Europe/Prague", "Europe/Riga", "Europe/Rome", "Europe/Samara", "Europe/San_Marino", "Europe/Sarajevo", "Europe/Saratov", "Europe/Simferopol", "Europe/Skopje", "Europe/Sofia", "Europe/Stockholm", "Europe/Tallinn", "Europe/Tirane", "Europe/Ulyanovsk", "Europe/Vaduz", "Europe/Vatican", "Europe/Vienna", "Europe/Vilnius", "Europe/Volgograd", "Europe/Warsaw", "Europe/Zagreb", "Europe/Zurich", "GMT", "Indian/Antananarivo", "Indian/Chagos", "Indian/Christmas", "Indian/Cocos", "Indian/Comoro", "Indian/Kerguelen", "Indian/Mahe", "Indian/Maldives", "Indian/Mauritius", "Indian/Mayotte", "Indian/Reunion", "Pacific/Apia", "Pacific/Auckland", "Pacific/Bougainville", "Pacific/Chatham", "Pacific/Chuuk", "Pacific/Easter", "Pacific/Efate", "Pacific/Fakaofo", "Pacific/Fiji", "Pacific/Funafuti", "Pacific/Galapagos", "Pacific/Gambier", "Pacific/Guadalcanal", "Pacific/Guam", "Pacific/Honolulu", "Pacific/Kanton", "Pacific/Kiritimati", "Pacific/Kosrae", "Pacific/Kwajalein", "Pacific/Majuro", "Pacific/Marquesas", "Pacific/Midway", "Pacific/Nauru", "Pacific/Niue", "Pacific/Norfolk", "Pacific/Noumea", "Pacific/Pago_Pago", "Pacific/Palau", "Pacific/Pitcairn", "Pacific/Pohnpei", "Pacific/Port_Moresby", "Pacific/Rarotonga", "Pacific/Saipan", "Pacific/Tahiti", "Pacific/Tarawa", "Pacific/Tongatapu", "Pacific/Wake", "Pacific/Wallis", "US/Alaska", "US/Arizona", "US/Central", "US/Eastern", "US/Hawaii", "US/Mountain", "US/Pacific", "UTC", "profile" ], "example": "profile", "type": "string" }, "unit": { "default": "days", "description": "aka delay_units in app.", "enum": [ "days", "hours", "minutes" ], "example": "days", "type": "string" }, "value": { "type": "integer" } }, "required": [ "value" ], "type": "object" }, "Timeframe": { "properties": { "key": { "description": "Pre-defined key that represents a set timeframe", "enum": [ "last_12_months", "last_30_days", "last_365_days", "last_3_months", "last_7_days", "last_90_days", "last_month", "last_week", "last_year", "this_month", "this_week", "this_year", "today", "yesterday" ], "type": "string" } }, "required": [ "key" ], "type": "object" }, "TrackingParamDTO": { "properties": { "campaign": { "description": "The value of the tracking parameter when applied to a campaign.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/CampaignTrackingSettingDynamicParam" }, { "$ref": "#/components/schemas/CampaignTrackingSettingStaticParam" } ] }, "flow": { "description": "The value of the tracking parameter when applied to a flow.", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/FlowTrackingSettingDynamicParam" }, { "$ref": "#/components/schemas/FlowTrackingSettingStaticParam" } ] } }, "type": "object" }, "TrackingSettingEnum": { "enum": [ "tracking-setting" ], "type": "string" }, "TrackingSettingPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/TrackingSettingPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "TrackingSettingPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "auto_add_parameters": { "description": "Whether tracking parameters are automatically added to campaigns and flows.", "nullable": true, "type": "boolean" }, "custom_parameters": { "description": "List of custom tracking parameters.", "items": { "$ref": "#/components/schemas/CustomTrackingParamDTO" }, "nullable": true, "type": "array" }, "utm_campaign": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_campaign tracking parameter.", "nullable": true }, "utm_id": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_id tracking parameter.", "nullable": true }, "utm_medium": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_medium tracking parameter.", "nullable": true }, "utm_source": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_source tracking parameter.", "nullable": true }, "utm_term": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_term tracking parameter.", "nullable": true } }, "type": "object" }, "id": { "description": "The id of the tracking setting (account ID).", "type": "string" }, "type": { "$ref": "#/components/schemas/TrackingSettingEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "TrackingSettingResponseObjectResource": { "properties": { "attributes": { "properties": { "auto_add_parameters": { "description": "Whether tracking parameters are automatically added to campaigns and flows.", "type": "boolean" }, "custom_parameters": { "description": "Additional custom tracking parameters.", "items": { "$ref": "#/components/schemas/CustomTrackingParamDTO" }, "nullable": true, "type": "array" }, "utm_campaign": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_campaign tracking parameter.", "nullable": true }, "utm_id": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_id tracking parameter.", "nullable": true }, "utm_medium": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_medium tracking parameter." }, "utm_source": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_source tracking parameter." }, "utm_term": { "$ref": "#/components/schemas/TrackingParamDTO", "description": "The utm_term tracking parameter.", "nullable": true } }, "required": [ "auto_add_parameters", "utm_source", "utm_medium" ], "type": "object" }, "id": { "description": "The id of the tracking setting (account ID).", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TrackingSettingEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "TriggerBaseProperties": { "maxProperties": 0, "type": "object" }, "TriggerBranchAction": { "properties": { "data": { "$ref": "#/components/schemas/TriggerBranchActionData", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/BooleanBranchLinks", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "trigger-split" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "TriggerBranchActionData": { "properties": { "trigger_filter": { "nullable": true, "properties": { "condition_groups": { "items": { "properties": { "conditions": { "items": { "oneOf": [ { "$ref": "#/components/schemas/MetricPropertyCondition" }, { "$ref": "#/components/schemas/CustomObjectTriggerCondition" }, { "$ref": "#/components/schemas/CustomObjectPropertyCondition" }, { "$ref": "#/components/schemas/PriceDropCondition" }, { "$ref": "#/components/schemas/LowInventoryCondition" } ] }, "type": "array" } }, "required": [ "conditions" ], "type": "object" }, "type": "array" } }, "required": [ "condition_groups" ], "type": "object" }, "trigger_id": { "type": "string" }, "trigger_subtype": { "description": "Date trigger type.", "enum": [ "custom-object", "legacy-custom-object", "profile-property", "profile-trait" ], "nullable": true, "type": "string" }, "trigger_type": { "description": "Trigger type.", "enum": [ "date", "list", "low-inventory", "metric", "price-drop", "scheduled", "segment" ], "type": "string" } }, "required": [ "trigger_filter", "trigger_id", "trigger_type" ], "type": "object" }, "URLPatterns": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/URLPatternsProperties" }, "type": { "enum": [ "url_patterns" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "URLPatternsProperties": { "properties": { "allow_list": { "items": { "type": "string" }, "nullable": true, "type": "array" }, "deny_list": { "items": { "type": "string" }, "nullable": true, "type": "array" } }, "type": "object" }, "UnidentifiedProfiles": { "properties": { "id": { "description": "Not allowed on create.", "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/TriggerBaseProperties" }, "type": { "enum": [ "unidentified_profiles" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "UniqueCouponConfig": { "properties": { "code": { "nullable": true, "type": "string" }, "fallback_coupon_code": { "nullable": true, "type": "string" }, "id": { "nullable": true, "type": "integer" }, "integration": { "default": "shopify", "description": "Coupon integration types for unique coupon blocks.", "enum": [ "api", "magento_two", "prestashop", "shopify", "uploaded", "woocommerce" ], "example": "shopify", "type": "string" }, "type": { "enum": [ "unique" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "UniversalContentCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/UniversalContentCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "UniversalContentCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV0" }, { "$ref": "#/components/schemas/DropShadowBlockV0" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV0" }, { "$ref": "#/components/schemas/HTMLBlockV0" }, { "$ref": "#/components/schemas/ImageBlockV0" }, { "$ref": "#/components/schemas/SpacerBlockV0" }, { "$ref": "#/components/schemas/TextBlockV0" } ] }, "name": { "description": "The name for this universal content", "type": "string" } }, "required": [ "name", "definition" ], "type": "object" }, "type": { "$ref": "#/components/schemas/TemplateUniversalContentEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "UniversalContentPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/UniversalContentPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "UniversalContentPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV0" }, { "$ref": "#/components/schemas/DropShadowBlockV0" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV0" }, { "$ref": "#/components/schemas/HTMLBlockV0" }, { "$ref": "#/components/schemas/ImageBlockV0" }, { "$ref": "#/components/schemas/SpacerBlockV0" }, { "$ref": "#/components/schemas/TextBlockV0" } ] }, "name": { "description": "The name for this template universal content", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of the template universal content", "example": "01HWWWKAW4RHXQJCMW4R2KRYR4", "type": "string" }, "type": { "$ref": "#/components/schemas/TemplateUniversalContentEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "UniversalContentResponseObjectResource": { "properties": { "attributes": { "properties": { "created": { "description": "The datetime when this universal content was created", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "definition": { "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/ButtonBlockV0" }, { "$ref": "#/components/schemas/CouponBlockV0" }, { "$ref": "#/components/schemas/DropShadowBlockV0" }, { "$ref": "#/components/schemas/HeaderBlockV0" }, { "$ref": "#/components/schemas/HorizontalRuleBlockV0" }, { "$ref": "#/components/schemas/HTMLBlockV0" }, { "$ref": "#/components/schemas/ImageBlockV0" }, { "$ref": "#/components/schemas/ProductBlockV0" }, { "$ref": "#/components/schemas/ReviewBlockV0" }, { "$ref": "#/components/schemas/SocialBlockV0" }, { "$ref": "#/components/schemas/SpacerBlockV0" }, { "$ref": "#/components/schemas/SplitBlockV0" }, { "$ref": "#/components/schemas/TableBlockV0" }, { "$ref": "#/components/schemas/TextBlockV0" }, { "$ref": "#/components/schemas/UnsupportedBlock" }, { "$ref": "#/components/schemas/VideoBlockV0" }, { "$ref": "#/components/schemas/SectionV0" } ] }, "name": { "description": "The name for this universal content", "type": "string" }, "screenshot_status": { "description": "The status of a universal content screenshot.", "enum": [ "completed", "failed", "generating", "never_generated", "not_renderable", "stale" ], "type": "string" }, "screenshot_url": { "type": "string" }, "updated": { "description": "The datetime when this universal content was updated", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" } }, "required": [ "name", "created", "updated", "screenshot_status", "screenshot_url" ], "type": "object" }, "id": { "description": "The ID of the universal content", "example": "01HWWWKAW4RHXQJCMW4R2KRYR4", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/TemplateUniversalContentEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "UnsubscriptionChannels": { "properties": { "email": { "$ref": "#/components/schemas/EmailUnsubscriptionParameters", "description": "The subscription parameters to unsubscribe from the \"EMAIL\" Channel.", "nullable": true }, "push": { "$ref": "#/components/schemas/PushUnsubscriptionParameters", "description": "The subscription parameters to unsubscribe from the \"Push\" Channel.", "nullable": true }, "sms": { "$ref": "#/components/schemas/SMSUnsubscriptionParameters", "description": "The subscription parameters to unsubscribe from the \"SMS\" Channel.", "nullable": true }, "whatsapp": { "$ref": "#/components/schemas/WhatsAppUnsubscriptionParameters", "description": "The subscription parameters to unsubscribe from the \"WhatsApp\" Channel.", "nullable": true } }, "type": "object" }, "UnsubscriptionParameters": { "properties": { "consent": { "description": "The Consent status to be set as part of the unsubscribe call. Currently supports \"UNSUBSCRIBED\".", "enum": [ "UNSUBSCRIBED" ], "example": "UNSUBSCRIBED", "type": "string" } }, "required": [ "consent" ], "type": "object" }, "UnsupportedBlock": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "unsupported" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "UnsupportedSendStrategy": { "properties": { "method": { "enum": [ "unsupported" ], "type": "string" } }, "required": [ "method" ], "type": "object" }, "UpdateProfileAction": { "properties": { "data": { "$ref": "#/components/schemas/UpdateProfileActionData", "description": "The maximum allowed sum of profile strings is 100KB.", "nullable": true }, "id": { "description": "The real ID of an action. Not allowed on create.", "example": "123", "nullable": true, "type": "string" }, "links": { "$ref": "#/components/schemas/Link", "nullable": true }, "temporary_id": { "description": "A temporary ID to use only during a create operation. Existing actions should use the id field.", "example": "action-1", "nullable": true, "type": "string", "writeOnly": true }, "type": { "enum": [ "update-profile" ], "type": "string" } }, "required": [ "type" ], "type": "object" }, "UpdateProfileActionData": { "properties": { "profile_operations": { "items": { "oneOf": [ { "$ref": "#/components/schemas/ProfileOperationUpdateOrCreateString" }, { "$ref": "#/components/schemas/ProfileOperationUpdateOrCreateBoolean" }, { "$ref": "#/components/schemas/ProfileOperationUpdateOrCreateNumeric" }, { "$ref": "#/components/schemas/ProfileOperationUpdateOrCreateDate" }, { "$ref": "#/components/schemas/ProfileOperationUpdateOrCreateList" }, { "$ref": "#/components/schemas/ProfileOperationDelete" } ] }, "type": "array" }, "status": { "default": "draft", "description": "Flow action status.", "enum": [ "disabled", "draft", "live", "manual" ], "example": "draft", "type": "string" } }, "required": [ "profile_operations" ], "type": "object" }, "UtmParam": { "properties": { "param": { "type": "string" }, "value": { "type": "string" } }, "required": [ "param", "value" ], "type": "object" }, "ValuesData": { "properties": { "groupings": { "description": "Applied groupings and the values for this object", "type": "object" }, "statistics": { "description": "Requested statistics and their values results", "type": "object" } }, "required": [ "groupings", "statistics" ], "type": "object" }, "VariableTimerConfiguration": { "properties": { "days": { "type": "integer" }, "hours": { "type": "integer" }, "minutes": { "type": "integer" }, "type": { "enum": [ "variable" ], "type": "string" } }, "required": [ "type", "days", "hours", "minutes" ], "type": "object" }, "Version": { "properties": { "ab_test": { "default": false, "type": "boolean" }, "channel": { "default": "WEB", "description": "Form channel type enumeration.", "enum": [ "IN_APP", "WEB" ], "example": "WEB", "type": "string" }, "dynamic_button": { "$ref": "#/components/schemas/DynamicButton", "nullable": true }, "id": { "description": "Not allowed on create.", "nullable": true, "type": "integer" }, "location": { "description": "Display location enumeration.", "enum": [ "bottom_center", "bottom_left", "bottom_right", "center_left", "center_right", "top_center", "top_left", "top_right" ], "nullable": true, "type": "string" }, "message_priority": { "default": 50, "example": 50, "type": "integer" }, "name": { "nullable": true, "type": "string" }, "properties": { "$ref": "#/components/schemas/VersionProperties" }, "specialties": { "items": { "description": "Form specialty enumeration.", "enum": [ "BACK_IN_STOCK" ], "type": "string" }, "type": "array" }, "status": { "default": "draft", "description": "Form status enumeration.", "enum": [ "draft", "live" ], "example": "draft", "type": "string" }, "steps": { "items": { "$ref": "#/components/schemas/Step" }, "type": "array" }, "styles": { "$ref": "#/components/schemas/VersionStyles" }, "teasers": { "items": { "$ref": "#/components/schemas/Teaser" }, "type": "array" }, "triggers": { "items": { "oneOf": [ { "$ref": "#/components/schemas/AfterCloseTimeout" }, { "$ref": "#/components/schemas/CartContent" }, { "$ref": "#/components/schemas/CartItemCount" }, { "$ref": "#/components/schemas/CartProduct" }, { "$ref": "#/components/schemas/CartValue" }, { "$ref": "#/components/schemas/Channel" }, { "$ref": "#/components/schemas/CustomJavascript" }, { "$ref": "#/components/schemas/Delay" }, { "$ref": "#/components/schemas/Device" }, { "$ref": "#/components/schemas/ExitIntent" }, { "$ref": "#/components/schemas/IdentifiedProfiles" }, { "$ref": "#/components/schemas/ListsAndSegments" }, { "$ref": "#/components/schemas/Location" }, { "$ref": "#/components/schemas/PageVisits" }, { "$ref": "#/components/schemas/PreviouslySubmitted" }, { "$ref": "#/components/schemas/ProfileEventTracked" }, { "$ref": "#/components/schemas/Scroll" }, { "$ref": "#/components/schemas/UnidentifiedProfiles" }, { "$ref": "#/components/schemas/URLPatterns" }, { "$ref": "#/components/schemas/BackInStock" } ] }, "type": "array" }, "type": { "default": "popup", "description": "Form type enumeration.", "enum": [ "banner", "embed", "flyout", "full_screen", "popup" ], "example": "popup", "type": "string" } }, "required": [ "steps" ], "type": "object" }, "VersionProperties": { "properties": { "accessible_name": { "nullable": true, "type": "string" }, "click_outside_to_close": { "items": { "description": "Enumeration for mobile and desktop.", "enum": [ "both", "desktop", "mobile" ], "type": "string" }, "nullable": true, "type": "array" }, "record_utm_params_on_submit": { "default": false, "type": "boolean" }, "rule_based_trigger_evaluation": { "default": "any", "description": "Side image alignment enumeration.", "enum": [ "all", "any" ], "example": "any", "nullable": true, "type": "string" }, "show_close_button": { "default": true, "example": true, "type": "boolean" }, "side_image_settings": { "$ref": "#/components/schemas/SideImageSettings", "nullable": true } }, "type": "object" }, "VersionStyles": { "properties": { "background_color": { "default": "#FFFFFF", "example": "#FFFFFF", "nullable": true, "type": "string" }, "background_image": { "$ref": "#/components/schemas/BackgroundImage", "nullable": true }, "banner_styles": { "$ref": "#/components/schemas/BannerStyles", "nullable": true }, "border_styles": { "$ref": "#/components/schemas/BorderStyle", "nullable": true }, "close_button": { "$ref": "#/components/schemas/CloseButtonStyle" }, "custom_css": { "$ref": "#/components/schemas/CustomCss" }, "custom_width": { "nullable": true, "type": "integer" }, "drop_shadow": { "$ref": "#/components/schemas/DropShadow" }, "input_styles": { "$ref": "#/components/schemas/InputStyles" }, "margin": { "$ref": "#/components/schemas/Margin" }, "minimum_height": { "default": 250, "example": 250, "type": "integer" }, "mobile_overlay": { "$ref": "#/components/schemas/MobileOverlay", "nullable": true }, "overlay_color": { "default": "rgba(20,20,20,0.6)", "example": "rgba(20,20,20,0.6)", "type": "string" }, "padding": { "$ref": "#/components/schemas/Padding" }, "rich_text_styles": { "$ref": "#/components/schemas/RichTextStyles" }, "width": { "default": "medium", "description": "Version width enumeration.", "enum": [ "custom", "full", "large", "medium", "small" ], "example": "medium", "type": "string" }, "wrap_content": { "default": false, "enum": [ false ], "type": "boolean" } }, "type": "object" }, "VideoBlockData": { "properties": { "display_options": { "$ref": "#/components/schemas/DisplayOptions" }, "properties": { "$ref": "#/components/schemas/VideoBlockProperties" }, "styles": { "$ref": "#/components/schemas/VideoBlockStyles" } }, "required": [ "properties", "display_options", "styles" ], "type": "object" }, "VideoBlockProperties": { "properties": { "alt_text": { "nullable": true, "type": "string" }, "href": { "nullable": true, "type": "string" }, "overlay_toggle": { "nullable": true, "type": "boolean" }, "raw_asset_id": { "nullable": true, "type": "string" }, "raw_src": { "nullable": true, "type": "string" }, "src": { "nullable": true, "type": "string" }, "src_asset_id": { "nullable": true, "type": "string" } }, "type": "object" }, "VideoBlockStyles": { "properties": { "align": { "description": "Image Alignment.", "enum": [ "center", "left", "right" ], "nullable": true, "type": "string" }, "background_color": { "nullable": true, "type": "string" }, "block_background_color": { "nullable": true, "type": "string" }, "block_padding_bottom": { "nullable": true, "type": "integer" }, "block_padding_left": { "nullable": true, "type": "integer" }, "block_padding_right": { "nullable": true, "type": "integer" }, "block_padding_top": { "nullable": true, "type": "integer" }, "border_color": { "nullable": true, "type": "string" }, "border_style": { "description": "Border style.", "enum": [ "dashed", "dotted", "groove", "inset", "none", "outset", "ridge", "solid" ], "nullable": true, "type": "string" }, "border_width": { "nullable": true, "type": "integer" }, "full_width_mobile": { "nullable": true, "type": "boolean" }, "height": { "nullable": true, "type": "integer" }, "inner_padding_bottom": { "nullable": true, "type": "integer" }, "inner_padding_left": { "nullable": true, "type": "integer" }, "inner_padding_right": { "nullable": true, "type": "integer" }, "inner_padding_top": { "nullable": true, "type": "integer" }, "max_width": { "nullable": true, "type": "integer" }, "mobile_stretch_content": { "nullable": true, "type": "boolean" }, "width": { "nullable": true, "type": "integer" } }, "type": "object" }, "VideoBlockV0": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "nullable": true, "oneOf": [ { "type": "integer" }, { "type": "number" }, { "type": "string" }, { "type": "boolean" } ] }, "type": { "enum": [ "video" ], "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "VideoBlockV1": { "properties": { "content_type": { "enum": [ "block" ], "type": "string" }, "data": { "$ref": "#/components/schemas/VideoBlockData", "nullable": true }, "data_id": { "nullable": true, "readOnly": true, "type": "string" }, "id": { "nullable": true, "readOnly": true, "type": "string" }, "type": { "enum": [ "video" ], "type": "string" }, "universal_id": { "nullable": true, "readOnly": true, "type": "string" } }, "required": [ "content_type", "type", "data" ], "type": "object" }, "Visibility": { "properties": { "check": { "nullable": true, "type": "string" }, "definition": { "nullable": true, "type": "string" }, "is_code_only": { "nullable": true, "type": "boolean" } }, "type": "object" }, "WebFeedCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/WebFeedCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "WebFeedCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "content_type": { "description": "The content-type of the web feed", "enum": [ "json", "xml" ], "example": "json", "type": "string" }, "name": { "description": "The name for this web feed", "example": "Blog_posts", "type": "string" }, "request_method": { "description": "The HTTP method for requesting the web feed", "enum": [ "get", "post" ], "example": "get", "type": "string" }, "url": { "description": "The URL of the web feed", "example": "https://help.klaviyo.com/api/v2/help_center/en-us/articles.json", "type": "string" } }, "required": [ "name", "url", "request_method", "content_type" ], "type": "object" }, "type": { "$ref": "#/components/schemas/WebFeedEnum" } }, "required": [ "type", "attributes" ], "type": "object" }, "WebFeedEnum": { "enum": [ "web-feed" ], "type": "string" }, "WebFeedPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/WebFeedPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "WebFeedPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "content_type": { "description": "The content-type of the web feed", "enum": [ "json", "xml" ], "example": "json", "nullable": true, "type": "string" }, "name": { "description": "The name of this web feed", "example": "Blog_posts", "nullable": true, "type": "string" }, "request_method": { "description": "The HTTP method for requesting the web feed", "enum": [ "get", "post" ], "example": "get", "nullable": true, "type": "string" }, "url": { "description": "The URL of the web feed", "example": "https://help.klaviyo.com/api/v2/help_center/en-us/articles.json", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of the web feed", "example": "925e385b52fb", "type": "string" }, "type": { "$ref": "#/components/schemas/WebFeedEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "WebFeedResponseObjectResource": { "properties": { "attributes": { "properties": { "content_type": { "description": "The content-type of the web feed", "enum": [ "json", "xml" ], "example": "json", "type": "string" }, "created": { "description": "Date and time when the web feed was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "name": { "description": "The name of this web feed", "example": "Blog_posts", "type": "string" }, "request_method": { "description": "The HTTP method for requesting the web feed", "enum": [ "get", "post" ], "example": "get", "type": "string" }, "status": { "description": "The cache status of this web feed if it exists", "enum": [ "critical_nightly_refresh_timeout", "disabled", "ok", "refreshing", "warning_nightly_refresh_timeout", "warning_periodic_refresh_timeout" ], "example": "ok", "nullable": true, "type": "string" }, "updated": { "description": "Date and time when the web feed was updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T00:00:00+00:00", "format": "date-time", "type": "string" }, "url": { "description": "The URL of the web feed", "example": "https://help.klaviyo.com/api/v2/help_center/en-us/articles.json", "type": "string" } }, "required": [ "name", "url", "request_method", "content_type", "created", "updated" ], "type": "object" }, "id": { "description": "Primary key that uniquely identifies this web feed. Generated by Klaviyo", "example": "925e385b52fb", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/WebFeedEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "WebhookCreateQuery": { "properties": { "data": { "$ref": "#/components/schemas/WebhookCreateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "WebhookCreateQueryResourceObject": { "properties": { "attributes": { "properties": { "description": { "description": "A description for the webhook.", "example": "A webhook for sms events", "nullable": true, "type": "string" }, "endpoint_url": { "description": "A url to send webhook calls to. Must be https.", "example": "https://www.example.com/example/path", "type": "string" }, "name": { "description": "A name for the webhook.", "example": "My Webhook", "type": "string" }, "secret_key": { "description": "A secret key, that will be used for webhook request signing.", "example": "INSERT_SECRET_KEY", "type": "string" } }, "required": [ "name", "endpoint_url", "secret_key" ], "type": "object" }, "relationships": { "properties": { "webhook-topics": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of topics to subscribe to.", "example": "event:klaviyo.sent_sms", "type": "string" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "required": [ "webhook-topics" ], "type": "object" }, "type": { "$ref": "#/components/schemas/WebhookEnum" } }, "required": [ "type", "attributes", "relationships" ], "type": "object" }, "WebhookEnum": { "enum": [ "webhook" ], "type": "string" }, "WebhookPartialUpdateQuery": { "properties": { "data": { "$ref": "#/components/schemas/WebhookPartialUpdateQueryResourceObject" } }, "required": [ "data" ], "type": "object" }, "WebhookPartialUpdateQueryResourceObject": { "properties": { "attributes": { "properties": { "description": { "description": "A description for the webhook.", "nullable": true, "type": "string" }, "enabled": { "description": "Is the webhook enabled.", "nullable": true, "type": "boolean" }, "endpoint_url": { "description": "A url to send webhook calls to. Must be https.", "example": "https://www.example.com/example/path", "nullable": true, "type": "string" }, "name": { "description": "A name for the webhook.", "nullable": true, "type": "string" }, "secret_key": { "description": "A secret key, that will be used for webhook request signing.", "nullable": true, "type": "string" } }, "type": "object" }, "id": { "description": "The ID of the webhook.", "type": "string" }, "relationships": { "properties": { "webhook-topics": { "properties": { "data": { "items": { "properties": { "id": { "description": "A list of topics to subscribe to.", "example": "event:klaviyo.sent_sms", "type": "string" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/WebhookEnum" } }, "required": [ "type", "id", "attributes" ], "type": "object" }, "WebhookResponseObjectResource": { "properties": { "attributes": { "properties": { "created_at": { "description": "Date and time when the webhook was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" }, "description": { "description": "A description for the webhook.", "example": "A webhook for sms events", "nullable": true, "type": "string" }, "enabled": { "description": "Is the webhook enabled.", "type": "boolean" }, "endpoint_url": { "description": "The url to send webhook requests to, truncated for security.", "example": "https://www.example.com", "type": "string" }, "name": { "description": "A name for the webhook.", "example": "My Webhook", "type": "string" }, "updated_at": { "description": "Date and time when the webhook was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)", "example": "2022-11-08T01:23:45+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "name", "endpoint_url", "enabled" ], "type": "object" }, "id": { "description": "The ID of the webhook.", "example": "01HF7AYTK76RHR4F17G6DGTRGF", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "relationships": { "properties": { "webhook-topics": { "properties": { "data": { "items": { "properties": { "id": { "description": "A topic the webhook is subscribed to.", "example": "event:klaviyo.sent_sms", "type": "string" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id" ], "type": "object" }, "type": "array" }, "links": { "$ref": "#/components/schemas/RelationshipLinks" } }, "type": "object" } }, "type": "object" }, "type": { "$ref": "#/components/schemas/WebhookEnum" } }, "required": [ "type", "id", "attributes", "links" ], "type": "object" }, "WebhookTopicEnum": { "enum": [ "webhook-topic" ], "type": "string" }, "WebhookTopicResponseObjectResource": { "properties": { "id": { "description": "The ID of the webhook topic.", "example": "event:klaviyo.sent_sms", "type": "string" }, "links": { "$ref": "#/components/schemas/ObjectLinks" }, "type": { "$ref": "#/components/schemas/WebhookTopicEnum" } }, "required": [ "type", "id", "links" ], "type": "object" }, "WhatsAppSubscriptionParameters": { "properties": { "marketing": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to marketing on the \"WhatsApp\" Channel.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/SubscriptionParameters", "description": "The parameters to subscribe to transactional messaging on the \"WhatsApp\" Channel.", "nullable": true } }, "type": "object" }, "WhatsAppUnsubscriptionParameters": { "properties": { "conversational": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from conversational messaging on the \"WhatsApp\" channel.", "nullable": true }, "marketing": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from marketing on the \"WhatsApp\" channel.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/UnsubscriptionParameters", "description": "The parameters to unsubscribe from transactional messaging on the \"WhatsApp\" channel.", "nullable": true } }, "type": "object" }, "WhatsappChannel": { "properties": { "conversational": { "$ref": "#/components/schemas/WhatsappConversationalChannel", "description": "The Whatsapp conversational subscription.", "nullable": true }, "marketing": { "$ref": "#/components/schemas/WhatsappMarketingChannel", "description": "The Whatsapp marketing subscription.", "nullable": true }, "transactional": { "$ref": "#/components/schemas/WhatsappTransactionalChannel", "description": "The Whatsapp transactional subscription.", "nullable": true } }, "type": "object" }, "WhatsappConversationalChannel": { "properties": { "can_receive": { "description": "Whether the profile can receive messages on this channel.", "type": "boolean" }, "consent": { "description": "The consent status for the channel.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "created_timestamp": { "description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_updated": { "description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "metadata": { "description": "Channel-specific metadata containing additional information about the permission.", "nullable": true, "type": "object" }, "phone_number": { "description": "Phone number to which the consent was granted for.", "nullable": true, "type": "string" }, "valid_until": { "description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2024-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "consent", "can_receive" ], "type": "object" }, "WhatsappMarketingChannel": { "properties": { "can_receive": { "description": "Whether the profile can receive messages on this channel.", "type": "boolean" }, "consent": { "description": "The consent status for the channel.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "created_timestamp": { "description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_updated": { "description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "metadata": { "description": "Channel-specific metadata containing additional information about the permission.", "nullable": true, "type": "object" }, "phone_number": { "description": "Phone number to which the consent was granted for.", "nullable": true, "type": "string" }, "valid_until": { "description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2024-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "consent", "can_receive" ], "type": "object" }, "WhatsappTransactionalChannel": { "properties": { "can_receive": { "description": "Whether the profile can receive messages on this channel.", "type": "boolean" }, "consent": { "description": "The consent status for the channel.", "example": "SUBSCRIBED", "type": "string" }, "consent_timestamp": { "description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "created_timestamp": { "description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "last_updated": { "description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2023-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" }, "metadata": { "description": "Channel-specific metadata containing additional information about the permission.", "nullable": true, "type": "object" }, "phone_number": { "description": "Phone number to which the consent was granted for.", "nullable": true, "type": "string" }, "valid_until": { "description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).", "example": "2024-02-21T20:07:38+00:00", "format": "date-time", "nullable": true, "type": "string" } }, "required": [ "consent", "can_receive" ], "type": "object" } }, "securitySchemes": { "Klaviyo-API-Key": { "description": "Private key authentication for /api/ endpoints is performed by setting the `Authorization` header to `Klaviyo-API-Key your-private-api-key`