Marketing campaigns, marketing events, and subscriptions.
Queries
searchMarketingEvents
Searches MarketingEvents
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)range(DateRangeInput) — A date range to filter resultssearch(String) — A search query to filter resultssortBy(SortMarketingEventsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: MarketingEventConnection! — A connection to a list of items.
searchMarketingSubscriptions
Searches MarketingSubscriptions
Arguments
after(String) — A cursor to search after (only include first & after or last & before)before(String) — A cursor to search before (only include first & after or last & before)filters([SearchFilterInput!]) — A set of filters to applyfirst(Int) — The number of results to fetch when searching forward (only include first & after or last & before)last(Int) — The number of results to fetch when searching backward (only include first & after or last & before)search(String) — A search query to filter resultssortBy(SortMarketingSubscriptionsBy) — The sort keysortDir(SortDirection) — The sort direction
Returns: MarketingSubscriptionConnection! — A connection to a list of items.
Objects
Campaign
Fields
created_at(DateTime!) — The date the Campaign was createddeleted_at(DateTime) — The date the Campaign was deletddescription(String!) — The description of the Campaignid(ID!) — The unique identifier of the Campaignstatistics(CampaignStatistics) — The statistics of the Campaignstatistics_updated_at(DateTime) — The date the Campaign statistics were last updatedstatus(CampaignStatus!) — The status of the Campaigntags([String!]!) — The tags of the Campaigntitle(String!) — The title of the Campaignupdated_at(DateTime!) — The date the Campaign was last updatedutm_code(String!) — The UTM code of the Campaignversion(Int!) — The campaign versionweb_url(URL!) — The URL to the Campaign inside the web application — 🚧 Deprecated: No longer supported
CampaignDraft
A draft variation of a Campaign
Fields
campaign(Campaign!) — The Campaign that the CampaignDraft belongs tocreated_at(DateTime!) — The date and time the CampaignDraft was createddeleted_at(DateTime) — The date and time the CampaignDraft was deletedid(ID!) — The ID of the CampaignDraftis_default(Boolean) — 🚧 Deprecated: There's no longer a concept of a default draftupdated_at(DateTime!) — The date and time the CampaignDraft was last updatedvariation_name(String) — The name of the CampaignDraft variationvariation_utm_code(String) — The UTM code of the CampaignDraft variation
CampaignStatistics
Fields
audience_size(NonNegativeInt!)
EmailMarketingSubscription
The marketing consent status of an email address
Fields
created_at(DateTime!) — The date the MarketingSubscription was createddeleted_at(DateTime) — The date the MarketingSubscription was deletedemail_address(String!) — The email address of the MarketingSubscriptionexternal_id(ID!) — The unique identifier of the MarketingSubscriptionid(ID!) — The unique identifier of the MarketingSubscriptionintegration(Integration!) — The integration that the MarketingSubscription belongs tosource_integrated_customer(IntegratedCustomer) — The IntegratedCustomer that the MarketingSubscription was generated fromstatus(MarketingSubscriptionStatus!) — The status of the MarketingSubscriptionsuppression_reason(MessagingSubscriptionSuppressionReason) — The reason the MarketingSubscription was suppressedunsubscribe_reason(MessagingSubscriptionUnsubscribeReason) — The reason the MarketingSubscription was unsubscribedupdated_at(DateTime!) — The date the MarketingSubscription was last updated
InboundEmailMarketingEvent
An inbound email
Fields
body(String) — The body of the MarketingEventcampaign_name(String) — The campaign name of the MarketingEventcreated_at(DateTime!) — The date the MarketingEvent was createddeleted_at(DateTime) — The date the MarketingEvent was deletedemail_address(String!) — The email address of the MarketingEventid(ID!) — The unique identifier of the MarketingEventintegration(Integration!) — The integration that the MarketingEvent belongs tosubject(String) — The subject of the MarketingEventupdated_at(DateTime!) — The date the MarketingEvent was last updated
InboundSmsMarketingEvent
An inbound sms
Fields
body(String) — The body of the MarketingEventcampaign_name(String) — The campaign name of the MarketingEventcreated_at(DateTime!) — The date the MarketingEvent was createddeleted_at(DateTime) — The date the MarketingEvent was deletedid(ID!) — The unique identifier of the MarketingEventintegration(Integration!) — The integration that the MarketingEvent belongs tophone_number(String!) — The phone number of the MarketingEventupdated_at(DateTime!) — The date the MarketingEvent was last updated
MarketingEventConnection
A connection to a list of items.
Fields
edges([MarketingEventEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
MarketingEventEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(MarketingEvent) — The item at the end of the edge
MarketingSubscriptionConnection
A connection to a list of items.
Fields
edges([MarketingSubscriptionEdge]) — A list of edges.pageInfo(PageInfo!) — Information to aid in pagination.total(Int)
MarketingSubscriptionEdge
An edge in a connection.
Fields
cursor(String!) — A cursor for use in paginationnode(MarketingSubscription) — The item at the end of the edge
MessagingSubscription
The messaging subscription status of an email address or phone number
Fields
brand(Brand!) — The brand of the MessagingSubscriptioncaused_by_message(Message) — The Message that triggered the latest change to the MessagingSubscriptionconcurrency_key(String!) — The concurrency key of the MessagingSubscriptioncontact(String!) — The email address or phone number of the MessagingSubscriptioncreated_at(DateTime!) — The date the MessagingSubscription was createdid(ID!) — The unique identifier of the MessagingSubscription — 🚧 Deprecated: Use contact insteadpreviously_subscribed_at(DateTime) — The date the MessagingSubscription was last subscribedreason(MessagingSubscriptionSuppressionReason) — The reason the MessagingSubscription was suppressed — 🚧 Deprecated: Use suppression_reason insteadstatus(MessagingSubscriptionStatus!) — The status of the MessagingSubscriptionstatus_updated_at(DateTime!) — The date the MessagingSubscription status change occurredsuppression_reason(MessagingSubscriptionSuppressionReason) — The reason the MessagingSubscription was suppressedsuppression_status_updated_at(DateTime) — The date the MessagingSubscription suppression status change occurredtype(MessagingSubscriptionContactType!) — The contact type of the MessagingSubscriptionunsubscribe_reason(MessagingSubscriptionUnsubscribeReason) — The reason the MessagingSubscription was unsubscribedupdated_at(DateTime!) — The date the MessagingSubscription was last updated
OutboundEmailMarketingEvent
An outbound email
Fields
body(String) — The body of the MarketingEventcampaign_name(String) — The campaign name of the MarketingEventcreated_at(DateTime!) — The date the MarketingEvent was createddeleted_at(DateTime) — The date the MarketingEvent was deletedemail_address(String!) — The email address of the MarketingEventid(ID!) — The unique identifier of the MarketingEventintegration(Integration!) — The integration that the MarketingEvent belongs tosubject(String) — The subject of the MarketingEventupdated_at(DateTime!) — The date the MarketingEvent was last updated
OutboundSmsMarketingEvent
An outbound sms
Fields
body(String) — The body of the MarketingEventcampaign_name(String) — The campaign name of the MarketingEventcreated_at(DateTime!) — The date the MarketingEvent was createddeleted_at(DateTime) — The date the MarketingEvent was deletedid(ID!) — The unique identifier of the MarketingEventintegration(Integration!) — The integration that the MarketingEvent belongs tophone_number(String!) — The phone number of the MarketingEventsubject(String) — The subject of the MarketingEventupdated_at(DateTime!) — The date the MarketingEvent was last updated
SmsMarketingSubscription
The marketing consent status of an phone number
Fields
created_at(DateTime!) — The date the MarketingSubscription was createddeleted_at(DateTime) — The date the MarketingSubscription was deletedexternal_id(ID!) — The unique identifier of the MarketingSubscriptionid(ID!) — The unique identifier of the MarketingSubscriptionintegration(Integration!) — The integration that the MarketingSubscription belongs tophone_number(String!) — The phone number of the MarketingSubscriptionsource_integrated_customer(IntegratedCustomer) — The IntegratedCustomer that the MarketingSubscription was generated fromstatus(MarketingSubscriptionStatus!) — The status of the MarketingSubscriptionsuppression_reason(MessagingSubscriptionSuppressionReason) — The reason the MarketingSubscription was suppressedunsubscribe_reason(MessagingSubscriptionUnsubscribeReason) — The reason the MarketingSubscription was unsubscribedupdated_at(DateTime!) — The date the MarketingSubscription was last updated
Interfaces
MarketingEventInterface
Fields
created_at(DateTime!) — The date the MarketingEvent was createddeleted_at(DateTime) — The date the MarketingEvent was deletedid(ID!) — The unique identifier of the MarketingEventintegration(Integration!) — The integration that the MarketingEvent belongs toupdated_at(DateTime!) — The date the MarketingEvent was last updated
Implemented by
InboundEmailMarketingEventInboundSmsMarketingEventOutboundEmailMarketingEventOutboundSmsMarketingEvent
MarketingSubscriptionInterface
Fields
created_at(DateTime!) — The date the MarketingSubscription was createddeleted_at(DateTime) — The date the MarketingSubscription was deletedexternal_id(ID!) — The unique identifier of the MarketingSubscriptionid(ID!) — The unique identifier of the MarketingSubscriptionintegration(Integration!) — The integration that the MarketingSubscription belongs tosource_integrated_customer(IntegratedCustomer) — The IntegratedCustomer that the MarketingSubscription was generated fromstatus(MarketingSubscriptionStatus!) — The status of the MarketingSubscriptionsuppression_reason(MessagingSubscriptionSuppressionReason) — The reason the MarketingSubscription was suppressedunsubscribe_reason(MessagingSubscriptionUnsubscribeReason) — The reason the MarketingSubscription was unsubscribedupdated_at(DateTime!) — The date the MarketingSubscription was last updated
Implemented by
Unions
MarketingEvent
Possible types
InboundEmailMarketingEventInboundSmsMarketingEventOutboundEmailMarketingEventOutboundSmsMarketingEvent
MarketingSubscription
Possible types
Input Objects
ExternalMarketingEventInput
An ExternalMarketingEvent to be added/updated
Fields
body(String) — The body of the ExternalMarketingEventcampaign_name(String) — The campaign name of the ExternalMarketingEventcreated_at(DateTime!) — The date the ExternalMarketingEvent was createdcustomer_id(ID) — The unique identifier of the ExternalCustomer associated with the ExternalMarketingEventdeleted_at(DateTime) — The date the ExternalMarketingEvent was deleteddirection(ExternalMarketingEventDirection!) — The direction of the ExternalMarketingEventemail_address(String) — The email address of the ExternalMarketingEventid(ID!) — The unique identifier of the ExternalMarketingEventphone_number(String) — The phone number of the ExternalMarketingEventsubject(String) — The subject of the ExternalMarketingEventupdated_at(DateTime) — The date the ExternalMarketingEvent was last updated
ExternalMarketingSubscriptionInput
An ExternalMarketingSubscription to be added/updated
Fields
created_at(DateTime!) — The date the ExternalMarketingSubscription was createddeleted_at(DateTime) — The date the ExternalMarketingSubscription was deletedemail_address(EmailAddress) — The email address of the ExternalMarketingSubscriptionphone_number(String) — The phone number of the ExternalMarketingSubscriptionstatus(ExternalMarketingSubscriptionStatus!) — The status of the ExternalMarketingSubscriptionupdated_at(DateTime!) — The date the ExternalMarketingSubscription was last updated
Enums
CampaignStatus
Values
ACTIVEPAUSED
ExternalMarketingEventDirection
Values
INBOUNDOUTBOUND
ExternalMarketingSubscriptionStatus
Values
SUBSCRIBEDUNSUBSCRIBED
MarketingSubscriptionStatus
Values
NOT_DEFINED— The customer's marketing state is not defined.SUBSCRIBED— The customer is subscribed to marketing.SUPPRESSED— The customer is suppressed from marketing and can't be re-subscribed without an explicit override.UNSUBSCRIBED— The customer isn't currently subscribed to marketing but was previously subscribed or has been suppressed.
MessagingSubscriptionContactType
Values
EMAIL_ADDRESSPHONE_NUMBER
MessagingSubscriptionStatus
Values
NOT_DEFINED— The customer is not subscribed to marketing.SUBSCRIBED— The customer is subscribed to marketing.SUPPRESSED— The customer is suppressed from marketing and can't be re-subscribed without an explicit override.UNSUBSCRIBED— The customer is unsubscribed from marketing.
MessagingSubscriptionSuppressionReason
Values
DATA_DELETION_REQUEST— The email address or phone number was suppressed due to a data deletion request.MANUAL_SUPPRESSION— The email address or phone number was manually suppressed.
MessagingSubscriptionUnsubscribeReason
Values
CUSTOMER_INITIATED_NON_REVERSIBLE— The customer unsubscribed from marketing and cannot be re-subscribed.CUSTOMER_INITIATED_REVERSIBLE— The customer unsubscribed from marketing and can be re-subscribed.HARD_BOUNCE— The email address or phone number is unable to receive messages.MANUAL_UNSUBSCRIBE— The email address or phone number was manually unsubscribed.SPAM_COMPLAINT— The owner of the email address or phone number reported a message as spam.
SortMarketingEventsBy
The available keys to sort MarketingEvents
Values
CREATED_ATUPDATED_AT
SortMarketingSubscriptionsBy
The available keys to sort MarketingSubscriptions
Values
CREATED_ATUPDATED_AT
