schemas
APIMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"api"
]
},
"filter": {
"description": "Optional filter on a specific list of API keys (using last 4 digits of the key)",
"$ref": "#/components/schemas/InStringArrayFilter",
"nullable": true
}
},
"required": [
"field",
"method"
]
}
AccountEnum
{
"type": "string",
"enum": [
"account"
]
}
AccountResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/AccountEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"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"
},
"contact_information": {
"description": "Contact information for the account. This is used in email footers by default to comply with the CAN-SPAM act.",
"$ref": "#/components/schemas/ContactInformation"
},
"industry": {
"description": "The kind of business and/or types of goods that the business sells. This is leveraged in Klaviyo analytics and guidance.",
"type": "string",
"example": "Software / SaaS",
"nullable": true
},
"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).",
"type": "string",
"example": "US/Eastern"
},
"preferred_currency": {
"description": "The preferred currency for the account. This is the currency used for currency-based metrics in dashboards, analytics, coupons, and templates.",
"type": "string",
"example": "USD"
},
"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).",
"type": "string",
"example": "AbC123"
},
"locale": {
"description": "The account's locale is used to determine the region and language for the account.",
"type": "string",
"example": "en-US"
}
},
"required": [
"test_account",
"contact_information",
"timezone",
"preferred_currency",
"public_api_key",
"locale"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
AgentHints
{
"description": "Optional hints emitted by the API for agent callers",
"type": "object",
"properties": {
"next_steps": {
"description": "Suggested follow-up actions for agents to take after this response",
"type": "array",
"items": {
"type": "string"
}
}
}
}
AnniversaryDateFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for anniversary date filters.",
"type": "string",
"enum": [
"anniversary",
"anniversary-month"
]
}
},
"required": [
"type",
"operator"
]
}
BackInStockMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"back_in_stock"
]
}
},
"required": [
"field",
"method"
]
}
BooleanFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"boolean"
]
},
"operator": {
"description": "Operators for boolean filters.",
"type": "string",
"enum": [
"equals"
]
},
"value": {
"type": "boolean"
}
},
"required": [
"type",
"operator",
"value"
]
}
BounceDateFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"bounce_date"
]
},
"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"
]
}
BulkProfileSuppressionsCreateJobResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"skipped_count": {
"description": "The total number of profiles that have been skipped as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this list",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this segment",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
BulkProfileSuppressionsRemoveJobResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"skipped_count": {
"description": "The total number of profiles that have been skipped as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this list",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this segment",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
BulkRemoveMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"bulk_remove"
]
}
},
"required": [
"field",
"method"
]
}
CalendarDateFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for calendar date filters.",
"type": "string",
"enum": [
"calendar-month"
]
},
"value": {
"type": "integer"
}
},
"required": [
"type",
"operator",
"value"
]
}
CampaignEnum
{
"type": "string",
"enum": [
"campaign"
]
}
CarrierDeactivationMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"carrier_deactivation"
]
}
},
"required": [
"field",
"method"
]
}
CheckoutMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"checkout"
]
}
},
"required": [
"field",
"method"
]
}
ClickTrackingConsent
{
"type": "object",
"properties": {
"consent": {
"description": "The consent status for the channel.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"created_timestamp": {
"description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"metadata": {
"description": "Channel-specific metadata containing additional information about the permission.",
"type": "object",
"nullable": true
},
"can_receive": {
"description": "Whether the profile can receive messages on this channel.",
"type": "boolean"
},
"valid_until": {
"description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2024-02-21T20:07:38+00:00",
"nullable": true
}
},
"required": [
"consent",
"can_receive"
]
}
ClickTrackingSubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The click-tracking consent to grant. Currently supports \"SUBSCRIBED\".",
"type": "string",
"example": "SUBSCRIBED",
"enum": [
"SUBSCRIBED"
]
}
},
"required": [
"consent"
]
}
ClickTrackingUnsubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The click-tracking consent to revoke. Currently supports \"UNSUBSCRIBED\".",
"type": "string",
"example": "UNSUBSCRIBED",
"enum": [
"UNSUBSCRIBED"
]
}
},
"required": [
"consent"
]
}
CollectionLinks
{
"type": "object",
"properties": {
"self": {
"type": "string",
"format": "uri"
},
"prev": {
"type": "string",
"format": "uri"
},
"next": {
"type": "string",
"format": "uri"
}
},
"required": [
"self"
]
}
ConditionGroup
{
"type": "object",
"properties": {
"conditions": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ProfileHasGroupMembershipCondition"
},
{
"$ref": "#/components/schemas/ProfileNoGroupMembershipCondition"
},
{
"$ref": "#/components/schemas/ProfileMarketingConsentCondition"
},
{
"$ref": "#/components/schemas/ProfilePropertyCondition"
},
{
"$ref": "#/components/schemas/ProfileRegionCondition"
}
],
"x-purplesuite-narrowed": "Narrowed to the condition types this contract evaluates deterministically. Predictive analytics, channel affinity, postal-code distance, metric, custom-object, and permissions conditions require Klaviyo-hosted services and are rejected with a 400 rather than silently accepted."
}
}
},
"required": [
"conditions"
]
}
ConstantContactIntegrationFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"type": "string",
"enum": [
"in"
]
},
"value": {
"type": "array",
"items": {
"enum": [
"constant_contact"
],
"type": "string"
}
}
},
"required": [
"type",
"operator",
"value"
]
}
ConstantContactIntegrationMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"integration"
]
},
"filter": {
"$ref": "#/components/schemas/ConstantContactIntegrationFilter"
}
},
"required": [
"field",
"method",
"filter"
]
}
ContactInformation
{
"type": "object",
"properties": {
"default_sender_name": {
"description": "This field is used to auto-populate the default sender name on flow and campaign emails.",
"type": "string",
"example": "Klaviyo Demo"
},
"default_sender_email": {
"description": "This field is used to auto-populate the default sender email address on flow and campaign emails.",
"type": "string",
"example": "contact@klaviyo-demo.com"
},
"website_url": {
"type": "string",
"example": "https://www.klaviyo.com",
"nullable": true
},
"organization_name": {
"type": "string",
"example": "Klaviyo Demo"
},
"street_address": {
"description": "Street address for your organization.",
"$ref": "#/components/schemas/StreetAddress"
}
},
"required": [
"default_sender_name",
"default_sender_email",
"organization_name",
"street_address"
]
}
ConversationEnum
{
"type": "string",
"enum": [
"conversation"
]
}
ConversationResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ConversationEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"channel": {
"description": "The messaging channel of the conversation.",
"type": "string",
"enum": [
"instagram",
"sms",
"whatsapp"
]
}
},
"required": [
"channel"
]
},
"relationships": {
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
},
"required": [
"type",
"id"
]
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
CustomSourceFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"custom_source"
]
},
"filter": {
"$ref": "#/components/schemas/EqualsStringFilter"
}
},
"required": [
"field",
"filter"
]
}
DataWarehouseImportMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"data_warehouse_import"
]
}
},
"required": [
"field",
"method"
]
}
DeviceMetadata
{
"type": "object",
"properties": {
"device_id": {
"description": "Relatively stable ID for the device. Will update on app uninstall and reinstall",
"type": "string",
"example": "1234567890",
"nullable": true
},
"klaviyo_sdk": {
"description": "The name of the SDK used to create the push token.",
"type": "string",
"example": "swift",
"enum": [
"android",
"flutter",
"flutter_community",
"react_native",
"swift"
],
"nullable": true
},
"sdk_version": {
"description": "The version of the SDK used to create the push token",
"type": "string",
"example": "1.0.0",
"nullable": true
},
"device_model": {
"description": "The model of the device",
"type": "string",
"example": "iPhone12,1",
"nullable": true
},
"os_name": {
"description": "The name of the operating system on the device.",
"type": "string",
"example": "ios",
"enum": [
"android",
"ios",
"ipados",
"macos",
"tvos"
],
"nullable": true
},
"os_version": {
"description": "The version of the operating system on the device",
"type": "string",
"example": "14.0",
"nullable": true
},
"manufacturer": {
"description": "The manufacturer of the device",
"type": "string",
"example": "Apple",
"nullable": true
},
"app_name": {
"description": "The name of the app that created the push token",
"type": "string",
"example": "Klaviyo",
"nullable": true
},
"app_version": {
"description": "The version of the app that created the push token",
"type": "string",
"example": "1.0.0",
"nullable": true
},
"app_build": {
"description": "The build of the app that created the push token",
"type": "string",
"example": "1",
"nullable": true
},
"app_id": {
"description": "The ID of the app that created the push token",
"type": "string",
"example": "com.klaviyo.app",
"nullable": true
},
"environment": {
"description": "The environment in which the push token was created",
"type": "string",
"example": "release",
"enum": [
"debug",
"release"
],
"nullable": true
}
}
}
DoubleOptinFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"is_double_opt_in"
]
},
"filter": {
"$ref": "#/components/schemas/BooleanFilter"
}
},
"required": [
"field",
"filter"
]
}
EmailChannel
{
"type": "object",
"properties": {
"marketing": {
"description": "The email marketing subscription.",
"$ref": "#/components/schemas/EmailMarketing",
"nullable": true
},
"open_tracking": {
"description": "The email open tracking consent.",
"$ref": "#/components/schemas/OpenTrackingConsent",
"nullable": true
},
"click_tracking": {
"description": "The email click tracking consent.",
"$ref": "#/components/schemas/ClickTrackingConsent",
"nullable": true
}
}
}
EmailMarketing
{
"type": "object",
"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.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for email marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when a field on the email marketing object was last modified.",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"method": {
"description": "The method by which the profile was subscribed to email marketing.",
"type": "string",
"example": "PREFERENCE_PAGE",
"nullable": true
},
"method_detail": {
"description": "Additional details about the method by which the profile was subscribed to email marketing. This may be empty if no details were provided.",
"type": "string",
"example": "mydomain.com/signup",
"default": "",
"nullable": true
},
"custom_method_detail": {
"description": "Additional detail provided by the caller when the profile was subscribed. This may be empty if no details were provided.",
"type": "string",
"example": "marketing drive",
"nullable": true
},
"double_optin": {
"description": "Whether the profile was subscribed to email marketing using a double opt-in.",
"type": "boolean",
"example": true,
"nullable": true
},
"suppression": {
"description": "The global email marketing suppression for this profile.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EmailMarketingSuppression"
},
"nullable": true
},
"list_suppressions": {
"description": "The list suppressions for this profile.",
"type": "array",
"items": {
"$ref": "#/components/schemas/EmailMarketingListSuppression"
},
"nullable": true
}
},
"required": [
"can_receive_email_marketing",
"consent"
]
}
EmailMarketingListSuppression
{
"type": "object",
"properties": {
"list_id": {
"description": "The ID of list to which the suppression applies.",
"type": "string",
"example": "Y6nRLr"
},
"reason": {
"description": "The reason the profile was suppressed from the list.",
"type": "string",
"example": "USER_SUPPRESSED"
},
"timestamp": {
"description": "The timestamp when the profile was suppressed from the list, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00"
}
},
"required": [
"list_id",
"reason",
"timestamp"
]
}
EmailMarketingSuppression
{
"type": "object",
"properties": {
"reason": {
"description": "The reason the profile was suppressed.",
"type": "string",
"example": "HARD_BOUNCE",
"enum": [
"HARD_BOUNCE",
"INVALID_EMAIL",
"SPAM_COMPLAINT",
"UNSUBSCRIBE",
"USER_SUPPRESSED"
]
},
"timestamp": {
"description": "The timestamp when the profile was suppressed, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00"
}
},
"required": [
"reason",
"timestamp"
]
}
EmailSubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to subscribe to on the \"EMAIL\" Channel. Currently supports \"MARKETING\".",
"$ref": "#/components/schemas/SubscriptionParameters",
"nullable": true
},
"open_tracking": {
"description": "The open-tracking consent to grant on the \"EMAIL\" channel. Open-tracking consent is recorded on the profile only; it does not by itself add the profile to a list specified in the request.",
"$ref": "#/components/schemas/OpenTrackingSubscriptionParameters",
"nullable": true
},
"click_tracking": {
"description": "The click-tracking consent to grant on the \"EMAIL\" channel. Click-tracking consent is recorded on the profile only; it does not by itself add the profile to a list specified in the request.",
"$ref": "#/components/schemas/ClickTrackingSubscriptionParameters",
"nullable": true
}
}
}
EmailUnsubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to unsubscribe from marketing on the \"EMAIL\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
},
"open_tracking": {
"description": "The open-tracking consent to revoke on the \"EMAIL\" channel.",
"$ref": "#/components/schemas/OpenTrackingUnsubscriptionParameters",
"nullable": true
},
"click_tracking": {
"description": "The click-tracking consent to revoke on the \"EMAIL\" channel.",
"$ref": "#/components/schemas/ClickTrackingUnsubscriptionParameters",
"nullable": true
}
}
}
EqualsStringFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"type": "string",
"enum": [
"equals"
]
},
"value": {
"type": "string",
"nullable": true
}
},
"required": [
"type",
"operator",
"value"
]
}
ErrorSource
{
"type": "object",
"properties": {
"pointer": {
"description": "A pointer to the source of the error in the request payload.",
"type": "string",
"example": "/data",
"default": "/data",
"nullable": true
}
}
}
ExistenceOperatorExistenceFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"existence"
]
},
"operator": {
"description": "Operators for existence filters.",
"type": "string",
"enum": [
"is-set",
"not-set"
]
}
},
"required": [
"type",
"operator"
]
}
FlowActionEnum
{
"type": "string",
"enum": [
"flow-action"
]
}
FlowEnum
{
"type": "string",
"enum": [
"flow"
]
}
FlowResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string",
"nullable": true
},
"status": {
"type": "string",
"nullable": true
},
"archived": {
"type": "boolean",
"nullable": true
},
"created": {
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"trigger_type": {
"description": "Corresponds to the object which triggered the flow.",
"type": "string",
"enum": [
"Added to List",
"Date Based",
"Low Inventory",
"Metric",
"Price Drop",
"Unconfigured"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"flow-actions": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowActionEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
FormMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"form"
]
},
"filter": {
"description": "Optional filter on a specific list of form ids",
"$ref": "#/components/schemas/InStringArrayFilter",
"nullable": true
}
},
"required": [
"field",
"method"
]
}
GetAccountResponse
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/AccountResponseObjectResource"
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetAccountResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/AccountResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetBulkProfileSuppressionsCreateJobResponse
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/BulkProfileSuppressionsCreateJobResponseObjectResource"
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetBulkProfileSuppressionsCreateJobResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BulkProfileSuppressionsCreateJobResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetBulkProfileSuppressionsRemoveJobResponse
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/BulkProfileSuppressionsRemoveJobResponseObjectResource"
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetBulkProfileSuppressionsRemoveJobResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/BulkProfileSuppressionsRemoveJobResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetConversationResponse
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"$ref": "#/components/schemas/ConversationResponseObjectResource"
}
],
"nullable": true
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetConversationResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ConversationResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetFlowResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FlowResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetImportErrorResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ImportErrorResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListFlowTriggersRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListListResponseCollectionCompoundDocument
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ListListResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/TagResponseObjectResource"
},
{
"$ref": "#/components/schemas/FlowResponseObjectResource"
}
]
}
}
},
"required": [
"data"
]
}
GetListMemberResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ListMemberResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListProfilesRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ListResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListRetrieveResponseCompoundDocument
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"attributes": {
"properties": {
"profile_count": {
"type": "integer",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ListRetrieveResponseObjectResource"
}
]
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/TagResponseObjectResource"
},
{
"$ref": "#/components/schemas/FlowResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetListTagsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"description": "The Tag ID",
"type": "string",
"example": "abcd1234-ef56-gh78-ij90-abcdef123456"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileBulkImportJobListsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileBulkImportJobProfilesRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileConversationRelationshipResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"nullable": true,
"properties": {
"type": {
"$ref": "#/components/schemas/ConversationEnum"
},
"id": {
"type": "string"
}
},
"required": [
"type",
"id"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileConversationsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ConversationEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileImportJobResponseCollectionCompoundDocument
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileImportJobResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileImportJobResponseCompoundDocument
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfileImportJobResponseObjectResource"
},
"included": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ListResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileListsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfilePushTokensRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"description": "ID of push token",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileResponse
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ProfileResponseObjectResource"
}
],
"nullable": true
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ProfileResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileResponsePluralConversationsCollectionCompoundDocument
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ProfileResponsePluralConversationsObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ConversationResponseObjectResource"
},
{
"$ref": "#/components/schemas/PushTokenResponseObjectResource"
}
]
}
}
},
"required": [
"data"
]
}
GetProfileResponsePluralConversationsCompoundDocument
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/ProfileResponsePluralConversationsObjectResource"
}
]
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/ListResponseObjectResource"
},
{
"$ref": "#/components/schemas/SegmentResponseObjectResource"
},
{
"$ref": "#/components/schemas/ConversationResponseObjectResource"
},
{
"$ref": "#/components/schemas/PushTokenResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetProfileSegmentsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetPushTokenProfileRelationshipResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"nullable": true,
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
}
},
"required": [
"type",
"id"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetPushTokenResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PushTokenResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetPushTokenResponseCollectionCompoundDocument
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PushTokenResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
},
"included": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileResponseObjectResource"
}
}
},
"required": [
"data"
]
}
GetPushTokenResponseCompoundDocument
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PushTokenResponseObjectResource"
},
"included": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentFlowTriggersRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentListResponseCollectionCompoundDocument
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SegmentListResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/TagResponseObjectResource"
},
{
"$ref": "#/components/schemas/FlowResponseObjectResource"
}
]
}
}
},
"required": [
"data"
]
}
GetSegmentMemberResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"properties": {
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/SegmentMemberResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentProfilesRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/SegmentResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentRetrieveResponseCompoundDocument
{
"type": "object",
"properties": {
"data": {
"allOf": [
{
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"attributes": {
"properties": {
"profile_count": {
"type": "integer",
"nullable": true
}
}
}
}
},
{
"$ref": "#/components/schemas/SegmentRetrieveResponseObjectResource"
}
]
},
"included": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/TagResponseObjectResource"
},
{
"$ref": "#/components/schemas/FlowResponseObjectResource"
}
]
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetSegmentTagsRelationshipsResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"description": "The Tag ID",
"type": "string",
"example": "abcd1234-ef56-gh78-ij90-abcdef123456"
}
}
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
GetTagResponseCollection
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/TagResponseObjectResource"
}
},
"links": {
"$ref": "#/components/schemas/CollectionLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
HasEmailMarketing
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"any"
]
},
"filters": {
"nullable": true
}
},
"required": [
"subscription"
]
}
HasEmailMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"email"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
true
]
},
"consent_status": {
"oneOf": [
{
"$ref": "#/components/schemas/HasEmailMarketing"
},
{
"$ref": "#/components/schemas/HasEmailMarketingSubscribed"
},
{
"$ref": "#/components/schemas/HasEmailMarketingNeverSubscribed"
}
]
}
},
"required": [
"channel",
"can_receive_marketing",
"consent_status"
]
}
HasEmailMarketingNeverSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"never_subscribed"
]
},
"filters": {
"nullable": true
}
},
"required": [
"subscription"
]
}
HasEmailMarketingSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"subscribed"
]
},
"filters": {
"type": "array",
"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
}
},
"required": [
"subscription"
]
}
HasPushMarketing
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"any"
]
},
"filters": {
"type": "array",
"items": {
"$ref": "#/components/schemas/StatusDateFilter"
},
"nullable": true
}
},
"required": [
"subscription"
]
}
HasPushMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"push"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
true
]
},
"consent_status": {
"$ref": "#/components/schemas/HasPushMarketing"
}
},
"required": [
"channel",
"can_receive_marketing",
"consent_status"
]
}
HasSMSMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"sms"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
true
]
},
"consent_status": {
"$ref": "#/components/schemas/HasSMSMarketingSubscribed"
}
},
"required": [
"channel",
"can_receive_marketing",
"consent_status"
]
}
HasSMSMarketingSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"subscribed"
]
},
"filters": {
"type": "array",
"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
}
},
"required": [
"subscription"
]
}
ImportErrorEnum
{
"type": "string",
"enum": [
"import-error"
]
}
ImportErrorResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ImportErrorEnum"
},
"id": {
"description": "Unique identifier for the error.",
"type": "string",
"example": "e4eebb08-b055-4a6f-bb13-c8cb69c9eb94"
},
"attributes": {
"type": "object",
"properties": {
"code": {
"description": "A code for classifying the error type.",
"type": "string",
"example": "invalid"
},
"title": {
"description": "A high-level message about the error.",
"type": "string",
"example": "Invalid input"
},
"detail": {
"description": "Specific details about the error.",
"type": "string",
"example": "The payload provided in the request is invalid."
},
"source": {
"description": "Additional information on the source of the error.",
"$ref": "#/components/schemas/ErrorSource"
},
"original_payload": {
"type": "object",
"nullable": true
}
},
"required": [
"code",
"title",
"detail",
"source"
]
}
},
"required": [
"type",
"id",
"attributes"
]
}
InStringArrayFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"type": "string",
"enum": [
"in"
]
},
"value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"operator",
"value"
]
}
InboundMessageMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"inbound_message"
]
}
},
"required": [
"field",
"method"
]
}
InvalidEmailDateFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"invalid_email_date"
]
},
"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"
]
}
IsSetExistenceFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"existence"
]
},
"operator": {
"type": "string",
"enum": [
"is-set"
]
}
},
"required": [
"type",
"operator"
]
}
ListCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ListCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
ListCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter"
},
"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.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
},
"required": [
"name"
]
}
},
"required": [
"type",
"attributes"
]
}
ListEnum
{
"type": "string",
"enum": [
"list"
]
}
ListListResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"created": {
"description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
ListMemberResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
},
"joined_group_at": {
"description": "The datetime when this profile most recently joined the list.",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
}
},
"required": [
"joined_group_at"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
}
ListMembersAddQuery
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
}
},
"required": [
"data"
]
}
ListMembersDeleteQuery
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
}
},
"required": [
"data"
]
}
ListPartialUpdateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ListPartialUpdateQueryResourceObject"
}
},
"required": [
"data"
]
}
ListPartialUpdateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
}
},
"required": [
"type",
"id",
"attributes"
]
}
ListResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"created": {
"description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
ListRetrieveResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"created": {
"description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
MailboxProviderMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"mailbox_provider"
]
}
},
"required": [
"field",
"method"
]
}
ManualAddManualMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"manual_add"
]
},
"filter": {
"description": "Optional filter on a specific list of user email addresses who initiated the manual action",
"$ref": "#/components/schemas/InStringArrayFilter",
"nullable": true
}
},
"required": [
"field",
"method"
]
}
ManualImportManualMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"manual_import"
]
},
"filter": {
"description": "Optional filter on a specific list of user email addresses who initiated the manual action",
"$ref": "#/components/schemas/InStringArrayFilter",
"nullable": true
}
},
"required": [
"field",
"method"
]
}
ManualImportMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"manual_import"
]
}
},
"required": [
"field",
"method"
]
}
ManualRemoveMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"manual_remove"
]
}
},
"required": [
"field",
"method"
]
}
ManualSuppressionDateFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"manual_suppression_date"
]
},
"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"
]
}
MessageBlockedMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"message_blocked"
]
}
},
"required": [
"field",
"method"
]
}
NoEmailMarketing
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"any"
]
},
"filters": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/BounceDateFilter"
},
{
"$ref": "#/components/schemas/ManualSuppressionDateFilter"
},
{
"$ref": "#/components/schemas/InvalidEmailDateFilter"
}
]
},
"nullable": true
}
},
"required": [
"subscription"
]
}
NoEmailMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"email"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
false
]
},
"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"
]
}
NoEmailMarketingNeverSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"never_subscribed"
]
},
"filters": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/BounceDateFilter"
},
{
"$ref": "#/components/schemas/ManualSuppressionDateFilter"
},
{
"$ref": "#/components/schemas/InvalidEmailDateFilter"
}
]
}
}
},
"required": [
"subscription",
"filters"
]
}
NoEmailMarketingSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"subscribed"
]
},
"filters": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/components/schemas/BounceDateFilter"
},
{
"$ref": "#/components/schemas/ManualSuppressionDateFilter"
},
{
"$ref": "#/components/schemas/InvalidEmailDateFilter"
}
]
}
}
},
"required": [
"subscription",
"filters"
]
}
NoEmailMarketingUnsubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"unsubscribed"
]
},
"filters": {
"nullable": true,
"oneOf": [
{
"type": "array",
"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"
}
]
}
}
]
}
},
"required": [
"subscription"
]
}
NoPushMarketing
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"any"
]
}
},
"required": [
"subscription"
]
}
NoPushMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"push"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
false
]
},
"consent_status": {
"$ref": "#/components/schemas/NoPushMarketing"
}
},
"required": [
"channel",
"can_receive_marketing",
"consent_status"
]
}
NoSMSMarketing
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"any"
]
}
},
"required": [
"subscription"
]
}
NoSMSMarketingConsent
{
"type": "object",
"properties": {
"channel": {
"type": "string",
"enum": [
"sms"
]
},
"can_receive_marketing": {
"type": "boolean",
"enum": [
false
]
},
"consent_status": {
"oneOf": [
{
"$ref": "#/components/schemas/NoSMSMarketing"
},
{
"$ref": "#/components/schemas/NoSMSMarketingUnsubscribed"
},
{
"$ref": "#/components/schemas/NoSMSMarketingNeverSubscribed"
}
]
}
},
"required": [
"channel",
"can_receive_marketing",
"consent_status"
]
}
NoSMSMarketingNeverSubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"never_subscribed"
]
}
},
"required": [
"subscription"
]
}
NoSMSMarketingUnsubscribed
{
"type": "object",
"properties": {
"subscription": {
"type": "string",
"enum": [
"unsubscribed"
]
},
"filters": {
"type": "array",
"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
}
},
"required": [
"subscription"
]
}
NumericOperatorNumericFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"numeric"
]
},
"operator": {
"description": "Operators for numeric filters.",
"type": "string",
"enum": [
"equals",
"greater-than",
"greater-than-or-equal",
"less-than",
"less-than-or-equal",
"not-equals"
]
},
"value": {
"oneOf": [
{
"type": "integer"
},
{
"type": "number"
}
]
}
},
"required": [
"type",
"operator",
"value"
]
}
ObjectLinks
{
"type": "object",
"properties": {
"self": {
"type": "string",
"format": "uri"
}
},
"required": [
"self"
]
}
OneClickUnsubscribeMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"one_click_unsubscribe"
]
}
},
"required": [
"field",
"method"
]
}
OnlyRelatedLinks
{
"type": "object",
"properties": {
"related": {
"type": "string",
"format": "uri"
}
},
"required": [
"related"
]
}
OpenTrackingConsent
{
"type": "object",
"properties": {
"consent": {
"description": "The consent status for the channel.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"created_timestamp": {
"description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"metadata": {
"description": "Channel-specific metadata containing additional information about the permission.",
"type": "object",
"nullable": true
},
"can_receive": {
"description": "Whether the profile can receive messages on this channel.",
"type": "boolean"
},
"valid_until": {
"description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2024-02-21T20:07:38+00:00",
"nullable": true
}
},
"required": [
"consent",
"can_receive"
]
}
OpenTrackingSubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The open-tracking consent to grant. Currently supports \"SUBSCRIBED\".",
"type": "string",
"example": "SUBSCRIBED",
"enum": [
"SUBSCRIBED"
]
}
},
"required": [
"consent"
]
}
OpenTrackingUnsubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The open-tracking consent to revoke. Currently supports \"UNSUBSCRIBED\".",
"type": "string",
"example": "UNSUBSCRIBED",
"enum": [
"UNSUBSCRIBED"
]
}
},
"required": [
"consent"
]
}
PatchIdentifiers
{
"type": "object",
"properties": {
"append": {
"type": "object"
},
"unappend": {
"type": "object"
}
}
}
PatchListPartialUpdateResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"created": {
"description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PatchProfileResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
},
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PatchSegmentPartialUpdateResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the segment",
"type": "string",
"example": "Repeat Purchasers",
"nullable": true
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"created": {
"description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"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"
}
},
"required": [
"is_active",
"is_processing",
"is_starred"
]
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostBulkProfileSuppressionsCreateJobResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"skipped_count": {
"description": "The total number of profiles that have been skipped as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this list",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this segment",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostBulkProfileSuppressionsRemoveJobResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"skipped_count": {
"description": "The total number of profiles that have been skipped as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this list",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "Suppress/Unsuppress all profiles in this segment",
"type": "string",
"example": "Y6nRLr"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostListCreateResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Primary key that uniquely identifies this list. Generated by Klaviyo.",
"type": "string",
"example": "Y6nRLr"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the list",
"type": "string",
"example": "Newsletter",
"nullable": true
},
"created": {
"description": "Date and time when the list was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the list was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"opt_in_process": {
"description": "The opt-in process for this list. Valid values: 'double_opt_in', 'single_opt_in'.",
"type": "string",
"example": "double_opt_in",
"enum": [
"double_opt_in",
"single_opt_in"
],
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostProfileImportJobResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileBulkImportJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"failed_count": {
"description": "The total number of operations that have failed as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"expires_at": {
"description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"started_at": {
"description": "Date and time the job started processing in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "List to add the profiles to",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "IDs of the created/updated profiles",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"import-errors": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ImportErrorEnum"
},
"id": {
"description": "Errors encountering during import",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/OnlyRelatedLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostProfileMergeResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "The ID of the destination profile that was merged into",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostProfileResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
},
"subscriptions": {
"$ref": "#/components/schemas/Subscriptions",
"nullable": true
},
"predictive_analytics": {
"$ref": "#/components/schemas/PredictiveAnalytics",
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PostSegmentCreateResponse
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the segment",
"type": "string",
"example": "Repeat Purchasers",
"nullable": true
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"created": {
"description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"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"
}
},
"required": [
"is_active",
"is_processing",
"is_starred"
]
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
},
"meta": {
"$ref": "#/components/schemas/ResponseMeta"
}
},
"required": [
"data"
]
}
PredictiveAnalytics
{
"type": "object",
"properties": {
"historic_clv": {
"description": "Total value of all historically placed orders",
"type": "number",
"example": 93.87,
"nullable": true
},
"predicted_clv": {
"description": "Predicted value of all placed orders in the next 365 days",
"type": "number",
"example": 27.24,
"nullable": true
},
"total_clv": {
"description": "Sum of historic and predicted CLV",
"type": "number",
"example": 121.11,
"nullable": true
},
"historic_number_of_orders": {
"description": "Number of already placed orders",
"type": "number",
"example": 2,
"nullable": true
},
"predicted_number_of_orders": {
"description": "Predicted number of placed orders in the next 365 days",
"type": "number",
"example": 0.54,
"nullable": true
},
"average_days_between_orders": {
"description": "Average number of days between orders (None if only one order has been placed)",
"type": "number",
"example": 189,
"nullable": true
},
"average_order_value": {
"description": "Average value of placed orders",
"type": "number",
"example": 46.94,
"nullable": true
},
"churn_probability": {
"description": "Probability the customer has churned",
"type": "number",
"example": 0.89,
"nullable": true
},
"expected_date_of_next_order": {
"description": "Expected date of next order, as calculated at the time of their most recent order",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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",
"type": "array",
"items": {
"type": "string",
"enum": [
"email",
"push",
"sms",
"whatsapp"
],
"description": "Enum for channel name return values used in the V3 API for channel affinity for the field `ranked_channel_affinity`."
},
"example": [
"sms",
"email",
"push"
],
"nullable": true
}
}
}
PreferencePageFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"preference_page"
]
},
"filter": {
"description": "Optional filter on a specific subscribe page url",
"$ref": "#/components/schemas/EqualsStringFilter",
"nullable": true
}
},
"required": [
"field",
"method"
]
}
PreferencePageMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"preference_page"
]
}
},
"required": [
"field",
"method"
]
}
ProfileBulkImportJobEnum
{
"type": "string",
"enum": [
"profile-bulk-import-job"
]
}
ProfileCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfileCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
ProfileCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
}
}
}
},
"required": [
"type",
"attributes"
]
}
ProfileEnum
{
"type": "string",
"enum": [
"profile"
]
}
ProfileHasGroupMembershipCondition
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"profile-group-membership"
]
},
"is_member": {
"type": "boolean",
"enum": [
true
]
},
"group_ids": {
"type": "array",
"items": {
"type": "string"
}
},
"timeframe_filter": {
"nullable": true,
"oneOf": [
{
"$ref": "#/components/schemas/StaticDateFilter"
},
{
"$ref": "#/components/schemas/StaticDateRangeFilter"
},
{
"$ref": "#/components/schemas/RelativeDateOperatorBaseRelativeDateFilter"
},
{
"$ref": "#/components/schemas/RelativeDateRangeFilter"
}
]
}
},
"required": [
"type",
"is_member",
"group_ids"
]
}
ProfileImportJobCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfileImportJobCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
ProfileImportJobCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileBulkImportJobEnum"
},
"attributes": {
"type": "object",
"properties": {
"profiles": {
"description": "Array of profiles to create or update",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileUpsertQueryResourceObject"
}
}
},
"required": [
"data"
]
}
},
"required": [
"profiles"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Optional list to add the profiles to",
"type": "string",
"example": "VRgFBd"
}
}
}
}
}
}
}
}
},
"required": [
"type",
"attributes"
]
}
ProfileImportJobResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileBulkImportJobEnum"
},
"id": {
"description": "Unique identifier for retrieving the job. Generated by Klaviyo.",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"status": {
"description": "Status of the asynchronous job.",
"type": "string",
"example": "processing",
"enum": [
"cancelled",
"complete",
"processing",
"queued"
]
},
"created_at": {
"description": "The date and time the job was created in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"total_count": {
"description": "The total number of operations to be processed by the job. See `completed_count` for the job's current progress.",
"type": "integer",
"example": 10
},
"completed_count": {
"description": "The total number of operations that have been completed by the job.",
"type": "integer",
"example": 9,
"default": 0,
"nullable": true
},
"failed_count": {
"description": "The total number of operations that have failed as part of the job.",
"type": "integer",
"example": 1,
"default": 0,
"nullable": true
},
"completed_at": {
"description": "Date and time the job was completed in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"expires_at": {
"description": "Date and time the job expires in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"started_at": {
"description": "Date and time the job started processing in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
}
},
"required": [
"status",
"created_at",
"total_count"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "List to add the profiles to",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "IDs of the created/updated profiles",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"import-errors": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ImportErrorEnum"
},
"id": {
"description": "Errors encountering during import",
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/OnlyRelatedLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
ProfileLocation
{
"type": "object",
"properties": {
"address1": {
"description": "First line of street address",
"type": "string",
"example": "89 E 42nd St",
"nullable": true
},
"address2": {
"description": "Second line of street address",
"type": "string",
"example": "1st floor",
"nullable": true
},
"city": {
"description": "City name",
"type": "string",
"example": "New York",
"nullable": true
},
"country": {
"description": "Country name",
"type": "string",
"example": "United States",
"nullable": true
},
"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",
"type": "string",
"example": "NY",
"nullable": true
},
"zip": {
"description": "Zip code",
"type": "string",
"example": "10017",
"nullable": true
},
"timezone": {
"description": "Time zone name. We recommend using time zones from the IANA Time Zone Database.",
"type": "string",
"example": "America/New_York",
"nullable": true
},
"ip": {
"description": "IP Address",
"type": "string",
"example": "127.0.0.1",
"nullable": true
}
}
}
ProfileMarketingConsentCondition
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"profile-marketing-consent"
]
},
"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"
}
]
}
},
"required": [
"type",
"consent"
]
}
ProfileMergeEnum
{
"type": "string",
"enum": [
"profile-merge"
]
}
ProfileMergeQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfileMergeQueryResourceObject"
}
},
"required": [
"data"
]
}
ProfileMergeQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileMergeEnum"
},
"id": {
"description": "The ID of the destination profile to merge into",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "The ID of a source profile to merge into the destination profile",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4I"
}
}
}
}
}
}
},
"required": [
"profiles"
]
}
},
"required": [
"type",
"id",
"relationships"
]
}
ProfileMeta
{
"type": "object",
"properties": {
"patch_properties": {
"description": "Specify one or more patch operations to apply to existing property data",
"example": {
"append": {
"skus": "92538"
}
},
"$ref": "#/components/schemas/ProfileMetaPatchProperties",
"nullable": true
},
"patch_identifiers": {
"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"
]
}
},
"$ref": "#/components/schemas/PatchIdentifiers",
"nullable": true
}
}
}
ProfileMetaPatchProperties
{
"type": "object",
"properties": {
"append": {
"description": "Append a simple value or values to this property array",
"type": "object",
"example": {
"skus": "92538"
},
"nullable": true
},
"unappend": {
"description": "Remove a simple value or values from this property array",
"type": "object",
"example": {
"skus": "40571"
},
"nullable": true
},
"unset": {
"description": "Remove a key or keys (and their values) completely from properties",
"example": "skus",
"nullable": true,
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
]
}
}
}
ProfileModificationMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"profile_modification"
]
}
},
"required": [
"field",
"method"
]
}
ProfileNoGroupMembershipCondition
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"profile-group-membership"
]
},
"is_member": {
"type": "boolean",
"enum": [
false
]
},
"group_ids": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"is_member",
"group_ids"
]
}
ProfilePartialUpdateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfilePartialUpdateQueryResourceObject"
}
},
"required": [
"data"
]
}
ProfilePartialUpdateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H"
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
}
}
},
"meta": {
"$ref": "#/components/schemas/ProfileMeta",
"nullable": true
}
},
"required": [
"type",
"id",
"attributes"
]
}
ProfilePropertyCondition
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"profile-property"
]
},
"property": {
"description": "The profile property to check. Use one of the well-known property names (e.g. `email`, `first_name`) or, for custom profile properties, the form `properties['property name']`.",
"type": "string",
"example": "properties['Favorite Color']"
},
"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/ExistenceOperatorExistenceFilter"
}
],
"x-purplesuite-narrowed": "Narrowed to string, numeric, boolean, and existence filters. Date, relative-date, and list filters are rejected with a 400."
}
},
"required": [
"type",
"property",
"filter"
]
}
ProfileRegionCondition
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"profile-region"
]
},
"in_region": {
"type": "boolean"
},
"region": {
"description": "Regions for profile region conditions.",
"type": "string",
"enum": [
"european_union",
"united_states"
]
}
},
"required": [
"type",
"in_region",
"region"
]
}
ProfileResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
}
ProfileResponsePluralConversationsObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
}
}
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"conversations": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ConversationEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
}
ProfileSubscriptionBulkCreateJobEnum
{
"type": "string",
"enum": [
"profile-subscription-bulk-create-job"
]
}
ProfileSubscriptionBulkDeleteJobEnum
{
"type": "string",
"enum": [
"profile-subscription-bulk-delete-job"
]
}
ProfileSubscriptionCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "The ID of the profile to subscribe. If provided, this will be used to perform the lookup.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"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.",
"type": "string",
"example": "matt-kemp@klaviyo-demo.com",
"nullable": true
},
"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.",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"subscriptions": {
"description": "Specifies the channel and message types that the profile will be consented to.",
"$ref": "#/components/schemas/SubscriptionChannels"
},
"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",
"type": "string",
"format": "date",
"nullable": true
}
},
"required": [
"subscriptions"
]
}
},
"required": [
"type",
"attributes"
]
}
ProfileSubscriptionDeleteQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "The email address to unsubscribe.",
"type": "string",
"example": "matt-kemp@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "The phone number to unsubscribe. This must be in E.164 format.",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"subscriptions": {
"description": "Specifies the channel and message types that the profile will have consent revoked from.",
"$ref": "#/components/schemas/UnsubscriptionChannels"
}
},
"required": [
"subscriptions"
]
}
},
"required": [
"type",
"attributes"
]
}
ProfileSuppressionBulkCreateJobEnum
{
"type": "string",
"enum": [
"profile-suppression-bulk-create-job"
]
}
ProfileSuppressionBulkDeleteJobEnum
{
"type": "string",
"enum": [
"profile-suppression-bulk-delete-job"
]
}
ProfileSuppressionCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "The email of the profile to suppress.",
"type": "string",
"example": "matt-kemp@klaviyo-demo.com"
}
},
"required": [
"email"
]
}
},
"required": [
"type",
"attributes"
]
}
ProfileSuppressionDeleteQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "The email of the profile to unsuppress.",
"type": "string",
"example": "matt-kemp@klaviyo-demo.com"
}
},
"required": [
"email"
]
}
},
"required": [
"type",
"attributes"
]
}
ProfileUpsertQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/ProfileUpsertQueryResourceObject"
}
},
"required": [
"data"
]
}
ProfileUpsertQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"_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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
}
}
},
"meta": {
"$ref": "#/components/schemas/ProfileMeta",
"nullable": true
}
},
"required": [
"type",
"attributes"
]
}
ProvidedLandlineMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"provided_landline"
]
}
},
"required": [
"field",
"method"
]
}
ProvidedNoAgeMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"provided_no_age"
]
}
},
"required": [
"field",
"method"
]
}
PushChannel
{
"type": "object",
"properties": {
"marketing": {
"description": "The mobile push marketing subscription.",
"$ref": "#/components/schemas/PushMarketing",
"nullable": true
}
}
}
PushMarketing
{
"type": "object",
"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.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when the consent was last changed, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
}
},
"required": [
"can_receive_push_marketing",
"consent"
]
}
PushProfileUpsertQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"_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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
},
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
}
}
},
"meta": {
"$ref": "#/components/schemas/ProfileMeta",
"nullable": true
}
},
"required": [
"type",
"attributes"
]
}
PushSubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to subscribe to marketing on the \"Push\" channel.",
"$ref": "#/components/schemas/SubscriptionParameters"
},
"tokens": {
"description": "A list of push tokens to register for this profile.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PushTokenEntry"
},
"nullable": true
},
"anonymous_id": {
"description": "An anonymous identifier for push-only profiles with no email/phone.",
"type": "string",
"nullable": true
}
},
"required": [
"marketing"
]
}
PushTokenCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PushTokenCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
PushTokenCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"attributes": {
"type": "object",
"properties": {
"token": {
"description": "A push token from APNS or FCM.",
"type": "string",
"example": "1234567890"
},
"platform": {
"description": "The platform on which the push token was created.",
"type": "string",
"enum": [
"android",
"ios"
]
},
"enablement_status": {
"description": "This is the enablement status for the individual push token.",
"type": "string",
"example": "AUTHORIZED",
"default": "AUTHORIZED",
"enum": [
"AUTHORIZED",
"DENIED",
"NOT_DETERMINED",
"PROVISIONAL",
"UNAUTHORIZED"
],
"nullable": true
},
"vendor": {
"description": "The vendor of the push token.",
"type": "string",
"example": "apns",
"enum": [
"apns",
"fcm"
]
},
"background": {
"description": "The background state of the push token.",
"type": "string",
"example": "AVAILABLE",
"default": "AVAILABLE",
"enum": [
"AVAILABLE",
"DENIED",
"RESTRICTED"
],
"nullable": true
},
"device_metadata": {
"description": "Metadata about the device that created the push token",
"$ref": "#/components/schemas/DeviceMetadata",
"nullable": true
},
"profile": {
"description": "The profile associated with the push token to create/update",
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/PushProfileUpsertQueryResourceObject"
}
},
"required": [
"data"
]
}
},
"required": [
"token",
"platform",
"vendor",
"profile"
]
}
},
"required": [
"type",
"attributes"
]
}
PushTokenDeviceMetadata
{
"type": "object",
"properties": {
"device_id": {
"description": "Relatively stable ID for the device. Will update on app uninstall and reinstall",
"type": "string",
"example": "1234567890",
"nullable": true
},
"klaviyo_sdk": {
"description": "The name of the SDK used to create the push token.",
"type": "string",
"example": "swift",
"enum": [
"android",
"flutter",
"flutter_community",
"react_native",
"swift"
],
"nullable": true
},
"sdk_version": {
"description": "The version of the SDK used to create the push token",
"type": "string",
"example": "1.0.0",
"nullable": true
},
"device_model": {
"description": "The model of the device",
"type": "string",
"example": "iPhone12,1",
"nullable": true
},
"os_name": {
"description": "The name of the operating system on the device.",
"type": "string",
"example": "ios",
"enum": [
"android",
"ios",
"ipados",
"macos",
"tvos"
],
"nullable": true
},
"os_version": {
"description": "The version of the operating system on the device",
"type": "string",
"example": "14.0",
"nullable": true
},
"manufacturer": {
"description": "The manufacturer of the device",
"type": "string",
"example": "Apple",
"nullable": true
},
"app_name": {
"description": "The name of the app that created the push token",
"type": "string",
"example": "Klaviyo",
"nullable": true
},
"app_version": {
"description": "The version of the app that created the push token",
"type": "string",
"example": "1.0.0",
"nullable": true
},
"app_build": {
"description": "The build of the app that created the push token",
"type": "string",
"example": "1",
"nullable": true
},
"app_id": {
"description": "The ID of the app that created the push token",
"type": "string",
"example": "com.klaviyo.app",
"nullable": true
},
"environment": {
"description": "The environment in which the push token was created",
"type": "string",
"example": "release",
"enum": [
"debug",
"release"
],
"nullable": true
}
}
}
PushTokenEntry
{
"type": "object",
"properties": {
"token": {
"description": "A push token from APNS or FCM.",
"type": "string",
"example": "1234567890abcdef"
},
"platform": {
"description": "The platform on which the push token was created. Either \"ios\" or \"android\".",
"type": "string",
"enum": [
"android",
"ios"
]
},
"vendor": {
"description": "The vendor of the push token. Either \"apns\" or \"fcm\".",
"type": "string",
"example": "apns",
"enum": [
"apns",
"fcm"
]
},
"enablement_status": {
"description": "The enablement status for the push token.",
"type": "string",
"example": "AUTHORIZED",
"enum": [
"AUTHORIZED",
"DENIED",
"NOT_DETERMINED",
"PROVISIONAL",
"UNAUTHORIZED"
],
"nullable": true
},
"background": {
"description": "The background state of the push token.",
"type": "string",
"example": "AVAILABLE",
"enum": [
"AVAILABLE",
"DENIED",
"RESTRICTED"
],
"nullable": true
},
"device_metadata": {
"description": "Metadata about the device that created the push token.",
"$ref": "#/components/schemas/PushTokenDeviceMetadata",
"nullable": true
}
},
"required": [
"token",
"platform",
"vendor"
]
}
PushTokenEnum
{
"type": "string",
"enum": [
"push-token"
]
}
PushTokenResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"description": "ID of push token",
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"created": {
"description": "The time at which the token was created",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"token": {
"description": "The push token",
"type": "string"
},
"enablement_status": {
"description": "The enablement status of the push token",
"type": "string",
"enum": [
"AUTHORIZED",
"DENIED",
"NOT_DETERMINED",
"PROVISIONAL",
"UNAUTHORIZED"
]
},
"platform": {
"description": "The platform of the push token('ios', 'android')",
"type": "string",
"enum": [
"android",
"ios"
]
},
"vendor": {
"description": "The vendor of the push token('APNs', 'FCM')",
"type": "string"
},
"background": {
"description": "The background state of the push token",
"type": "string"
},
"recorded_date": {
"description": "The date the push token was recorded",
"type": "string"
},
"metadata": {
"description": "Metadata of device",
"$ref": "#/components/schemas/DeviceMetadata",
"nullable": true
}
},
"required": [
"created",
"token",
"enablement_status",
"platform",
"vendor",
"background",
"recorded_date"
]
},
"relationships": {
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "The profile associated with the push token",
"type": "string"
}
},
"required": [
"type",
"id"
]
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
PushUnsubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to unsubscribe from marketing on the \"Push\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters"
},
"tokens": {
"description": "A list of push tokens to unsubscribe/remove.",
"type": "array",
"items": {
"$ref": "#/components/schemas/PushTokenEntry"
}
}
},
"required": [
"marketing",
"tokens"
]
}
RelationshipLinks
{
"type": "object",
"properties": {
"self": {
"type": "string",
"format": "uri"
},
"related": {
"type": "string",
"format": "uri"
}
},
"required": [
"self",
"related"
]
}
RelativeAnniversaryDateFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for relative date filters.\n\ne.g. \"anniversary in the last 10 days\"",
"type": "string",
"enum": [
"anniversary-last",
"anniversary-next"
]
},
"unit": {
"description": "Units for relative date filters.",
"type": "string",
"enum": [
"day",
"hour",
"week"
]
},
"quantity": {
"type": "integer"
}
},
"required": [
"type",
"operator",
"unit",
"quantity"
]
}
RelativeDateOperatorBaseRelativeDateFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for relative date filters.\n\ne.g. \"in the last 10 days\"",
"type": "string",
"enum": [
"at-least",
"in-the-last",
"in-the-next"
]
},
"unit": {
"description": "Units for relative date filters.",
"type": "string",
"enum": [
"day",
"hour",
"week"
]
},
"quantity": {
"type": "integer"
}
},
"required": [
"type",
"operator",
"unit",
"quantity"
]
}
RelativeDateRangeFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for relative date range filters.\n\ne.g. \"between 10 and 20 days ago\"",
"type": "string",
"enum": [
"between"
]
},
"start": {
"type": "integer"
},
"end": {
"type": "integer"
},
"unit": {
"description": "Units for relative date filters.",
"type": "string",
"enum": [
"day",
"hour",
"week"
]
}
},
"required": [
"type",
"operator",
"start",
"end",
"unit"
]
}
ResponseMeta
{
"description": "Response-level metadata",
"type": "object",
"properties": {
"agent_hints": {
"$ref": "#/components/schemas/AgentHints"
}
}
}
SMSChannel
{
"type": "object",
"properties": {
"marketing": {
"description": "The SMS marketing subscription.",
"$ref": "#/components/schemas/SMSMarketing",
"nullable": true
},
"transactional": {
"description": "The SMS transactional subscription.",
"$ref": "#/components/schemas/SMSTransactional",
"nullable": true
}
}
}
SMSMarketing
{
"type": "object",
"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.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for SMS marketing, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"method": {
"description": "The method by which the profile was subscribed to SMS marketing.",
"type": "string",
"example": "TEXT",
"nullable": true
},
"method_detail": {
"description": "Additional details about the method which the profile was subscribed to SMS marketing. This may be empty if no details were provided.",
"type": "string",
"example": "JOIN",
"default": "",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the SMS consent record was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
}
},
"required": [
"can_receive_sms_marketing",
"consent"
]
}
SMSSubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to subscribe to marketing on the \"SMS\" Channel.",
"$ref": "#/components/schemas/SubscriptionParameters",
"nullable": true
},
"transactional": {
"description": "The parameters to subscribe to transactional messaging on the \"SMS\" Channel.",
"$ref": "#/components/schemas/SubscriptionParameters",
"nullable": true
}
}
}
SMSTransactional
{
"type": "object",
"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.",
"type": "string",
"example": "SUBSCRIBED"
},
"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).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"method": {
"description": "The method by which the profile was subscribed to Transactional SMS messaging .",
"type": "string",
"example": "TEXT",
"nullable": true
},
"method_detail": {
"description": "Additional details about the method which the profile was subscribed to Transactional SMS messaging. This may be empty if no details were provided.",
"type": "string",
"example": "JOIN",
"default": "",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the SMS consent record was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
}
},
"required": [
"can_receive_sms_transactional",
"consent"
]
}
SMSUnsubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to unsubscribe from marketing on the \"SMS\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
},
"transactional": {
"description": "The parameters to unsubscribe from transactional messaging on the \"SMS\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
}
}
}
SegmentCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SegmentCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
SegmentCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition"
},
"is_starred": {
"type": "boolean",
"default": false,
"nullable": true
}
},
"required": [
"name",
"definition"
]
}
},
"required": [
"type",
"attributes"
]
}
SegmentDefinition
{
"type": "object",
"properties": {
"condition_groups": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ConditionGroup"
}
}
},
"required": [
"condition_groups"
]
}
SegmentEnum
{
"type": "string",
"enum": [
"segment"
]
}
SegmentListResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the segment",
"type": "string",
"example": "Repeat Purchasers",
"nullable": true
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"created": {
"description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"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"
}
},
"required": [
"is_active",
"is_processing",
"is_starred"
]
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
SegmentMemberResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"description": "Primary key that uniquely identifies this profile. Generated by Klaviyo.",
"type": "string",
"example": "01GDDKASAP8TKDDA2GRZDSVP4H",
"nullable": true
},
"attributes": {
"type": "object",
"properties": {
"email": {
"description": "Individual's email address",
"type": "string",
"example": "sarah.mason@klaviyo-demo.com",
"nullable": true
},
"phone_number": {
"description": "Individual's phone number in E.164 format",
"type": "string",
"example": "+15005550006",
"nullable": true
},
"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.",
"type": "string",
"nullable": true
},
"first_name": {
"description": "Individual's first name",
"type": "string",
"example": "Sarah",
"nullable": true
},
"last_name": {
"description": "Individual's last name",
"type": "string",
"example": "Mason",
"nullable": true
},
"organization": {
"description": "Name of the company or organization within the company for whom the individual works",
"type": "string",
"example": "Example Corporation",
"nullable": true
},
"locale": {
"description": "The locale of the profile, in the IETF BCP 47 language tag format like (ISO 639-1/2)-(ISO 3166 alpha-2)",
"type": "string",
"example": "en-US",
"nullable": true
},
"title": {
"description": "Individual's job title",
"type": "string",
"example": "Regional Manager",
"nullable": true
},
"image": {
"description": "URL pointing to the location of a profile image",
"type": "string",
"example": "https://images.pexels.com/photos/3760854/pexels-photo-3760854.jpeg",
"nullable": true
},
"created": {
"description": "Date and time when the profile was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the profile was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"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)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"location": {
"$ref": "#/components/schemas/ProfileLocation",
"nullable": true
},
"properties": {
"description": "An object containing key/value pairs for any custom properties assigned to this profile",
"type": "object",
"example": {
"pseudonym": "Dr. Octopus"
},
"nullable": true
},
"joined_group_at": {
"description": "The datetime when this profile most recently joined the segment.",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
}
},
"required": [
"joined_group_at"
]
},
"relationships": {
"type": "object",
"properties": {
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"push-tokens": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/PushTokenEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"attributes",
"links"
]
}
SegmentPartialUpdateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SegmentPartialUpdateQueryResourceObject"
}
},
"required": [
"data"
]
}
SegmentPartialUpdateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"name": {
"type": "string",
"nullable": true
},
"is_starred": {
"type": "boolean",
"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.",
"type": "boolean",
"nullable": true
}
}
}
},
"required": [
"type",
"id",
"attributes"
]
}
SegmentResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the segment",
"type": "string",
"example": "Repeat Purchasers",
"nullable": true
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"created": {
"description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"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"
}
},
"required": [
"is_active",
"is_processing",
"is_starred"
]
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
SegmentRetrieveResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "A helpful name to label the segment",
"type": "string",
"example": "Repeat Purchasers",
"nullable": true
},
"definition": {
"$ref": "#/components/schemas/SegmentDefinition",
"nullable": true
},
"created": {
"description": "Date and time when the segment was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"nullable": true
},
"updated": {
"description": "Date and time when the segment was last updated, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm)",
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00",
"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"
}
},
"required": [
"is_active",
"is_processing",
"is_starred"
]
},
"relationships": {
"type": "object",
"properties": {
"profiles": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"tags": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flow-triggers": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
SftpMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"sftp"
]
}
},
"required": [
"field",
"method"
]
}
ShopifyIntegrationFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"type": "string",
"enum": [
"in"
]
},
"value": {
"type": "array",
"items": {
"enum": [
"shopify"
],
"type": "string"
}
}
},
"required": [
"type",
"operator",
"value"
]
}
ShopifyIntegrationMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"integration"
]
},
"filter": {
"$ref": "#/components/schemas/ShopifyIntegrationFilter"
}
},
"required": [
"field",
"method",
"filter"
]
}
SpamComplaintMethodFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"method"
]
},
"method": {
"type": "string",
"enum": [
"spam_complaint"
]
}
},
"required": [
"field",
"method"
]
}
StaticDateFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for static date filters.\n\nE.g. \"before 2023-01-01\"",
"type": "string",
"enum": [
"after",
"before"
]
},
"date": {
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
}
},
"required": [
"type",
"operator",
"date"
]
}
StaticDateRangeFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"date"
]
},
"operator": {
"description": "Operators for static date range filters.\n\nE.g. \"between 2023-01-01 and 2023-02-01\"",
"type": "string",
"enum": [
"between-static"
]
},
"start": {
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
},
"end": {
"type": "string",
"format": "date-time",
"example": "2022-11-08T00:00:00+00:00"
}
},
"required": [
"type",
"operator",
"start",
"end"
]
}
StatusDateFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"status_date"
]
},
"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"
]
}
StreetAddress
{
"type": "object",
"properties": {
"address1": {
"type": "string",
"example": "125 Summer Street",
"nullable": true
},
"address2": {
"type": "string",
"example": "5th Floor",
"nullable": true
},
"city": {
"type": "string",
"example": "Boston",
"nullable": true
},
"region": {
"description": "State, province, or region.",
"type": "string",
"example": "MA",
"nullable": true
},
"country": {
"description": "Two-letter [ISO country code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes)",
"type": "string",
"example": "US",
"nullable": true
},
"zip": {
"type": "string",
"example": "04323",
"nullable": true
}
}
}
StringArrayOperatorStringArrayFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"description": "Operators for string-in-array filters.",
"type": "string",
"enum": [
"in",
"not-in"
]
},
"value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"operator",
"value"
]
}
StringOperatorStringFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"operator": {
"description": "Operators for string filters.",
"type": "string",
"enum": [
"contains",
"ends-with",
"equals",
"not-contains",
"not-ends-with",
"not-equals",
"not-starts-with",
"nregex",
"regex",
"starts-with"
]
},
"value": {
"type": "string",
"nullable": true
}
},
"required": [
"type",
"operator",
"value"
]
}
StringPhoneOperatorStringArrayFilter
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"string"
]
},
"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 }",
"type": "string",
"enum": [
"phone-country-code-in",
"phone-country-code-not-in"
]
},
"value": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"operator",
"value"
]
}
SubscribedSMSIsRcsCapableFilter
{
"type": "object",
"properties": {
"field": {
"type": "string",
"enum": [
"is_rcs_capable"
]
},
"filter": {
"$ref": "#/components/schemas/BooleanFilter"
}
},
"required": [
"field",
"filter"
]
}
SubscriptionChannels
{
"type": "object",
"properties": {
"email": {
"description": "The subscription parameters to subscribe to on the \"EMAIL\" Channel.",
"$ref": "#/components/schemas/EmailSubscriptionParameters",
"nullable": true
},
"sms": {
"description": "The subscription parameters to subscribe to on the \"SMS\" Channel.",
"$ref": "#/components/schemas/SMSSubscriptionParameters",
"nullable": true
},
"whatsapp": {
"description": "The subscription parameters to subscribe to on the \"WhatsApp\" Channel.",
"$ref": "#/components/schemas/WhatsAppSubscriptionParameters",
"nullable": true
},
"push": {
"description": "The subscription parameters to subscribe to on the \"Push\" Channel.",
"$ref": "#/components/schemas/PushSubscriptionParameters",
"nullable": true
}
}
}
SubscriptionCreateJobCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SubscriptionCreateJobCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
SubscriptionCreateJobCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSubscriptionBulkCreateJobEnum"
},
"attributes": {
"type": "object",
"properties": {
"custom_source": {
"description": "A custom method detail or source to store on the consent records.",
"type": "string",
"example": "Marketing Event",
"nullable": true
},
"profiles": {
"description": "The profile(s) to subscribe",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileSubscriptionCreateQueryResourceObject"
}
}
},
"required": [
"data"
]
},
"historical_import": {
"description": "Whether this subscription is part of a historical import. If true, the consented_at field must be provided for each profile.",
"type": "boolean",
"default": false,
"nullable": true
}
},
"required": [
"profiles"
]
},
"relationships": {
"type": "object",
"properties": {
"list": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "The list to add the newly subscribed profiles to",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
}
}
}
},
"required": [
"type",
"attributes"
]
}
SubscriptionDeleteJobCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SubscriptionDeleteJobCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
SubscriptionDeleteJobCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSubscriptionBulkDeleteJobEnum"
},
"attributes": {
"type": "object",
"properties": {
"profiles": {
"description": "The profile(s) to unsubscribe",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileSubscriptionDeleteQueryResourceObject"
}
}
},
"required": [
"data"
]
}
},
"required": [
"profiles"
]
},
"relationships": {
"type": "object",
"properties": {
"list": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "The list to remove the profiles from",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
}
}
}
},
"required": [
"type",
"attributes"
]
}
SubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The Consent status to be set as part of the subscribe call. Currently supports \"SUBSCRIBED\".",
"type": "string",
"example": "SUBSCRIBED",
"enum": [
"SUBSCRIBED"
]
},
"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.",
"type": "string",
"format": "date-time",
"nullable": true
}
},
"required": [
"consent"
]
}
Subscriptions
{
"type": "object",
"properties": {
"email": {
"description": "The email channel subscription.",
"$ref": "#/components/schemas/EmailChannel",
"nullable": true
},
"sms": {
"description": "The SMS channel subscription.",
"$ref": "#/components/schemas/SMSChannel",
"nullable": true
},
"mobile_push": {
"description": "The mobile push channel subscription.",
"$ref": "#/components/schemas/PushChannel",
"nullable": true
},
"whatsapp": {
"description": "The whatsapp channel subscription.",
"$ref": "#/components/schemas/WhatsappChannel",
"nullable": true
}
}
}
SuppressionCreateJobCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SuppressionCreateJobCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
SuppressionCreateJobCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkCreateJobEnum"
},
"attributes": {
"type": "object",
"properties": {
"profiles": {
"description": "The profile(s) to create suppressions for.",
"type": "object",
"nullable": true,
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileSuppressionCreateQueryResourceObject"
}
}
},
"required": [
"data"
]
}
}
},
"relationships": {
"type": "object",
"properties": {
"list": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "Suppress all profiles in this list",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
},
"segment": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "Suppress all profiles in this segment",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
}
}
}
},
"required": [
"type",
"attributes"
]
}
SuppressionDeleteJobCreateQuery
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/SuppressionDeleteJobCreateQueryResourceObject"
}
},
"required": [
"data"
]
}
SuppressionDeleteJobCreateQueryResourceObject
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ProfileSuppressionBulkDeleteJobEnum"
},
"attributes": {
"type": "object",
"properties": {
"profiles": {
"description": "The profile(s) to remove suppressions for.",
"type": "object",
"nullable": true,
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ProfileSuppressionDeleteQueryResourceObject"
}
}
},
"required": [
"data"
]
}
}
},
"relationships": {
"type": "object",
"properties": {
"list": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"description": "The list to pull the profiles to remove suppressions from",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
},
"segment": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"description": "The segment to pull the profiles to remove suppressions from",
"type": "string",
"example": "Y6nRLr"
}
},
"required": [
"type",
"id"
]
}
}
}
}
}
},
"required": [
"type",
"attributes"
]
}
TagEnum
{
"type": "string",
"enum": [
"tag"
]
}
TagGroupEnum
{
"type": "string",
"enum": [
"tag-group"
]
}
TagResponseObjectResource
{
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/TagEnum"
},
"id": {
"description": "The Tag ID",
"type": "string",
"example": "abcd1234-ef56-gh78-ij90-abcdef123456"
},
"attributes": {
"type": "object",
"properties": {
"name": {
"description": "The Tag name",
"type": "string",
"example": "My Tag"
}
},
"required": [
"name"
]
},
"relationships": {
"type": "object",
"properties": {
"tag-group": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"$ref": "#/components/schemas/TagGroupEnum"
},
"id": {
"type": "string"
}
},
"required": [
"type",
"id"
]
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"lists": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/ListEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"segments": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/SegmentEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"campaigns": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/CampaignEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
},
"flows": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"id"
],
"properties": {
"type": {
"$ref": "#/components/schemas/FlowEnum"
},
"id": {
"type": "string"
}
}
}
},
"links": {
"$ref": "#/components/schemas/RelationshipLinks"
}
}
}
}
},
"links": {
"$ref": "#/components/schemas/ObjectLinks"
}
},
"required": [
"type",
"id",
"attributes",
"links"
]
}
UnsubscriptionChannels
{
"type": "object",
"properties": {
"email": {
"description": "The subscription parameters to unsubscribe from the \"EMAIL\" Channel.",
"$ref": "#/components/schemas/EmailUnsubscriptionParameters",
"nullable": true
},
"sms": {
"description": "The subscription parameters to unsubscribe from the \"SMS\" Channel.",
"$ref": "#/components/schemas/SMSUnsubscriptionParameters",
"nullable": true
},
"whatsapp": {
"description": "The subscription parameters to unsubscribe from the \"WhatsApp\" Channel.",
"$ref": "#/components/schemas/WhatsAppUnsubscriptionParameters",
"nullable": true
},
"push": {
"description": "The subscription parameters to unsubscribe from the \"Push\" Channel.",
"$ref": "#/components/schemas/PushUnsubscriptionParameters",
"nullable": true
}
}
}
UnsubscriptionParameters
{
"type": "object",
"properties": {
"consent": {
"description": "The Consent status to be set as part of the unsubscribe call. Currently supports \"UNSUBSCRIBED\".",
"type": "string",
"example": "UNSUBSCRIBED",
"enum": [
"UNSUBSCRIBED"
]
}
},
"required": [
"consent"
]
}
WhatsAppSubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to subscribe to marketing on the \"WhatsApp\" Channel.",
"$ref": "#/components/schemas/SubscriptionParameters",
"nullable": true
},
"transactional": {
"description": "The parameters to subscribe to transactional messaging on the \"WhatsApp\" Channel.",
"$ref": "#/components/schemas/SubscriptionParameters",
"nullable": true
}
}
}
WhatsAppUnsubscriptionParameters
{
"type": "object",
"properties": {
"marketing": {
"description": "The parameters to unsubscribe from marketing on the \"WhatsApp\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
},
"transactional": {
"description": "The parameters to unsubscribe from transactional messaging on the \"WhatsApp\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
},
"conversational": {
"description": "The parameters to unsubscribe from conversational messaging on the \"WhatsApp\" channel.",
"$ref": "#/components/schemas/UnsubscriptionParameters",
"nullable": true
}
}
}
WhatsappChannel
{
"type": "object",
"properties": {
"marketing": {
"description": "The Whatsapp marketing subscription.",
"$ref": "#/components/schemas/WhatsappMarketingChannel",
"nullable": true
},
"transactional": {
"description": "The Whatsapp transactional subscription.",
"$ref": "#/components/schemas/WhatsappTransactionalChannel",
"nullable": true
},
"conversational": {
"description": "The Whatsapp conversational subscription.",
"$ref": "#/components/schemas/WhatsappConversationalChannel",
"nullable": true
}
}
}
WhatsappConversationalChannel
{
"type": "object",
"properties": {
"consent": {
"description": "The consent status for the channel.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"created_timestamp": {
"description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"metadata": {
"description": "Channel-specific metadata containing additional information about the permission.",
"type": "object",
"nullable": true
},
"can_receive": {
"description": "Whether the profile can receive messages on this channel.",
"type": "boolean"
},
"valid_until": {
"description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2024-02-21T20:07:38+00:00",
"nullable": true
},
"phone_number": {
"description": "Phone number to which the consent was granted for.",
"type": "string",
"nullable": true
}
},
"required": [
"consent",
"can_receive"
]
}
WhatsappMarketingChannel
{
"type": "object",
"properties": {
"consent": {
"description": "The consent status for the channel.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"created_timestamp": {
"description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"metadata": {
"description": "Channel-specific metadata containing additional information about the permission.",
"type": "object",
"nullable": true
},
"can_receive": {
"description": "Whether the profile can receive messages on this channel.",
"type": "boolean"
},
"valid_until": {
"description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2024-02-21T20:07:38+00:00",
"nullable": true
},
"phone_number": {
"description": "Phone number to which the consent was granted for.",
"type": "string",
"nullable": true
}
},
"required": [
"consent",
"can_receive"
]
}
WhatsappTransactionalChannel
{
"type": "object",
"properties": {
"consent": {
"description": "The consent status for the channel.",
"type": "string",
"example": "SUBSCRIBED"
},
"consent_timestamp": {
"description": "The timestamp when consent was recorded or updated for the channel, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"last_updated": {
"description": "The timestamp when the channel was last modified, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"created_timestamp": {
"description": "The timestamp when the channel was created, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2023-02-21T20:07:38+00:00",
"nullable": true
},
"metadata": {
"description": "Channel-specific metadata containing additional information about the permission.",
"type": "object",
"nullable": true
},
"can_receive": {
"description": "Whether the profile can receive messages on this channel.",
"type": "boolean"
},
"valid_until": {
"description": "Optional expiration date for the permission, in ISO 8601 format (YYYY-MM-DDTHH:MM:SS.mmmmmm).",
"type": "string",
"format": "date-time",
"example": "2024-02-21T20:07:38+00:00",
"nullable": true
},
"phone_number": {
"description": "Phone number to which the consent was granted for.",
"type": "string",
"nullable": true
}
},
"required": [
"consent",
"can_receive"
]
}