hubspot.marketing.emails
Module hubspot.marketing.emails
API
Definitions
ballerinax/hubspot.marketing.emails Ballerina library
Overview
HubSpot is an AI-powered customer relationship management (CRM) platform.
The ballerinax/hubspot.marketing.emails package offers APIs to connect and interact with the HubSpot Marketing Emails API endpoints, specifically based on the HubSpot REST API.
Using this API, users can develop applications easily that enables you to track marketing emails.
Setup guide
To use the HubSpot Marketing Events connector, you must have access to the HubSpot API through a HubSpot developer account and a HubSpot App under it. Therefore you need to register for a developer account at HubSpot if you don't have one already.
Step 1: Create/Login to a HubSpot Developer Account
If you have an account already, go to the HubSpot developer portal
If you don't have a HubSpot Developer Account you can sign up to a free account here
Step 2 (Optional): Create a Developer Test Account under your account
Within app developer accounts, you can create a developer test account under your account to test apps and integrations without affecting any real HubSpot data.
Note: These accounts are only for development and testing purposes. In production you should not use Developer Test Accounts.
-
Go to Test Account section from the left sidebar.

-
Click Create developer test account.

-
In the dialogue box, give a name to your test account and click create.

Step 3: Create a HubSpot App under your account.
-
In your developer account, navigate to the "Apps" section. Click on "Create App"

-
Provide the necessary details, including the app name and description.
Step 4: Configure the Authentication Flow.
-
Move to the Auth Tab. (Second tab next to App Info)

-
In the Scopes section, add the following scope for your app using the "Add new scope" button.
contenttransactional-email(Optional, see note below)marketing-email(Optional, see note below)
Note: To use the
publishandunpublishendpoints add one oftransactional-emailormarketing-emailscopes. However a Hubspot Enterprise Account or Trasactional Email Add-on enabled is required to use these two endpoints.

-
Add your Redirect URI in the relevant section. You can also use
localhostaddresses for local development purposes. Click Create App.
Step 5: Get your Client ID and Client Secret
-
Navigate to the Auth section of your app. Make sure to save the provided Client ID and Client Secret.

Step 6: Setup Authentication Flow
Before proceeding with the Quickstart, ensure you have obtained the Access Token using the following steps:
-
Create an authorization URL using the following format:
https://app.hubspot.com/oauth/authorize?client_id=<YOUR_CLIENT_ID>&scope=<YOUR_SCOPES>&redirect_uri=<YOUR_REDIRECT_URI>Replace the
<YOUR_CLIENT_ID>,<YOUR_REDIRECT_URI>and<YOUR_SCOPES>with your specific value.
Note: If you are using a
localhostredirect url, make sure to have a listener running at the relevant port before executing the next step.
-
Paste it in the browser and select your developer test account to install the app when prompted.

-
A code will be displayed in the browser. Copy the code.
-
Run the following curl command. Replace the
<YOUR_CLIENT_ID>,<YOUR_REDIRECT_URI> and<YOUR_CLIENT_SECRET>with your specific value. Use the code you received in the above step 3 as the<CODE>.-
Linux/macOS
curl --request POST \ --url https://api.hubapi.com/oauth/v1/token \ --header 'content-type: application/x-www-form-urlencoded' \ --data 'grant_type=authorization_code&code=<CODE>&redirect_uri=<YOUR_REDIRECT_URI>&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>' -
Windows
curl --request POST ^ --url https://api.hubapi.com/oauth/v1/token ^ --header 'content-type: application/x-www-form-urlencoded' ^ --data 'grant_type=authorization_code&code=<CODE>&redirect_uri=<YOUR_REDIRECT_URI>&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>'
This command will return the access token necessary for API calls.
{ "token_type": "bearer", "refresh_token": "<Refresh Token>", "access_token": "<Access Token>", "expires_in": 1800 } -
-
Store the access token securely for use in your application.
Quickstart
To use the HubSpot Marketing Emails connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
Import the hubspot.marketing.emails module and oauth2 module.
import ballerinax/hubspot.marketing.emails as hsmemails; import ballerina/oauth2;
Step 2: Instantiate a new connector
-
Create a
Config.tomlfile and, configure the obtained credentials in the above steps as follows:clientId = <Client Id> clientSecret = <Client Secret> refreshToken = <Refresh Token> -
Instantiate a
hsmevents:ConnectionConfigwith the obtained credentials and initialize the connector with it.configurable string clientId = ?; configurable string clientSecret = ?; configurable string refreshToken = ?; OAuth2RefreshTokenGrantConfig auth = { clientId, clientSecret, refreshToken, credentialBearer: oauth2:POST_BODY_BEARER }; final hsmemails:Client hsmemailClient = check new ({auth});
Step 3: Invoke the connector operation
Now, utilize the available connector operations. A sample usecase is shown below.
Get statistics for Marketing Emails
public function main() returns error? { hsmemails:AggregateEmailStatistics emailStatistics = check hsmemailClient->/statistics/list({}, { startTimestamp: "2024-12-12T04:27:02Z", endTimestamp: "2024-12-19T04:27:02Z" }); }
Examples
The Hubspot Marketing Emails connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering use cases:
-
Bulk Change Reply To Email - Change the Reply To and Custom Reply To email address of all draft emails
-
Marketing Email Statistics Logger - Retrieve and log the statistics of marketing emails during a specific time period.
Clients
hubspot.marketing.emails: Client
Constructor
Gets invoked to initialize the connector.
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.hubapi.com/marketing/v3/emails" - URL of the target service
get statistics/list
function get statistics/list(map<string|string[]> headers, *GetStatisticsListQueries queries) returns AggregateEmailStatistics|errorGet aggregated statistics.
Parameters
- queries *GetStatisticsListQueries - Queries to be sent with the request
Return Type
- AggregateEmailStatistics|error - successful operation
post [string emailId]/publish
Publish or send a marketing email.
Return Type
- error? - No content
post ab-test/create-variation
function post ab\-test/create\-variation(AbTestCreateRequestVNext payload, map<string|string[]> headers) returns PublicEmail|errorCreate an A/B test variation of a marketing email.
Parameters
- payload AbTestCreateRequestVNext -
Return Type
- PublicEmail|error - successful operation
get statistics/histogram
function get statistics/histogram(map<string|string[]> headers, *GetStatisticsHistogramQueries queries) returns CollectionResponseWithTotalEmailStatisticIntervalNoPaging|errorGet aggregated statistic intervals.
Parameters
- queries *GetStatisticsHistogramQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalEmailStatisticIntervalNoPaging|error - successful operation
get [string emailId]/ab-test/get-variation
function get [string emailId]/ab\-test/get\-variation(map<string|string[]> headers) returns PublicEmail|errorGet the variation of a an A/B marketing email
Return Type
- PublicEmail|error - successful operation
post [string emailId]/draft/reset
Reset Draft
Return Type
- error? - No content
post [string emailId]/revisions/[int revisionId]/restore-to-draft
function post [string emailId]/revisions/[int revisionId]/restore\-to\-draft(map<string|string[]> headers) returns PublicEmail|errorRestore a revision of a marketing email to DRAFT state
Return Type
- PublicEmail|error - successful operation
get [string emailId]/draft
function get [string emailId]/draft(map<string|string[]> headers) returns PublicEmail|errorGet draft version of a marketing email
Return Type
- PublicEmail|error - successful operation
patch [string emailId]/draft
function patch [string emailId]/draft(EmailUpdateRequest payload, map<string|string[]> headers) returns PublicEmail|errorCreate or update draft version
Parameters
- payload EmailUpdateRequest - A marketing email object with properties that should overwrite the corresponding properties in the email's current draft
Return Type
- PublicEmail|error - successful operation
get [string emailId]/revisions
function get [string emailId]/revisions(map<string|string[]> headers, *GetEmailIdRevisionsQueries queries) returns CollectionResponseWithTotalVersionPublicEmail|errorGet revisions of a marketing email
Parameters
- queries *GetEmailIdRevisionsQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalVersionPublicEmail|error - successful operation
post [string emailId]/unpublish
Unpublish or cancel a marketing email.
Return Type
- error? - No content
get [string emailId]/revisions/[string revisionId]
function get [string emailId]/revisions/[string revisionId](map<string|string[]> headers) returns VersionPublicEmail|errorGet a revision of a marketing email.
Return Type
- VersionPublicEmail|error - successful operation
post clone
function post clone(ContentCloneRequestVNext payload, map<string|string[]> headers) returns PublicEmail|errorClone a marketing email.
Parameters
- payload ContentCloneRequestVNext -
Return Type
- PublicEmail|error - successful operation
get .
function get .(map<string|string[]> headers, *GetQueries queries) returns CollectionResponseWithTotalPublicEmailForwardPaging|errorGet all marketing emails for a HubSpot account.
Parameters
- queries *GetQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalPublicEmailForwardPaging|error - successful operation
post .
function post .(EmailCreateRequest payload, map<string|string[]> headers) returns PublicEmail|errorCreate a new marketing email.
Parameters
- payload EmailCreateRequest -
Return Type
- PublicEmail|error - successful operation
post [string emailId]/revisions/[string revisionId]/restore
function post [string emailId]/revisions/[string revisionId]/restore(map<string|string[]> headers) returns error?Restore a revision of a marketing email
Return Type
- error? - No content
get [string emailId]
function get [string emailId](map<string|string[]> headers, *GetEmailIdQueries queries) returns PublicEmail|errorGet the details of a specified marketing email.
Parameters
- queries *GetEmailIdQueries - Queries to be sent with the request
Return Type
- PublicEmail|error - successful operation
delete [string emailId]
function delete [string emailId](map<string|string[]> headers, *DeleteEmailIdQueries queries) returns error?Delete a marketing email.
Parameters
- queries *DeleteEmailIdQueries - Queries to be sent with the request
Return Type
- error? - No content
patch [string emailId]
function patch [string emailId](EmailUpdateRequest payload, map<string|string[]> headers, *PatchEmailIdQueries queries) returns PublicEmail|errorUpdate a marketing email.
Parameters
- payload EmailUpdateRequest - A marketing email object with properties that should overwrite the corresponding properties of the marketing email
- queries *PatchEmailIdQueries - Queries to be sent with the request
Return Type
- PublicEmail|error - successful operation
Records
hubspot.marketing.emails: AbTestCreateRequestVNext
Request body object for creating A/B tests
Fields
- variationName string -
- contentId string - ID of the object to test
hubspot.marketing.emails: AggregateEmailStatistics
Aggregated statistics for the given interval, plus the IDs of emails that were sent during that interval
Fields
- emails? int[] - List of email IDs that were sent during the time span
- campaignAggregations? record { EmailStatisticsData... } - The aggregated statistics per campaign
- aggregate? EmailStatisticsData -
hubspot.marketing.emails: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- privateAppLegacy string -
hubspot.marketing.emails: CollectionResponseWithTotalEmailStatisticIntervalNoPaging
Response object for collections of EmailStatisticIntervals
Fields
- total Signed32 - Total number of objects
- results EmailStatisticInterval[] - Collection of objects
hubspot.marketing.emails: CollectionResponseWithTotalPublicEmailForwardPaging
Response object for collections of marketing emails with pagination information
Fields
- total Signed32 - Total number of content emails
- paging? ForwardPaging -
- results PublicEmail[] - Collection of emails
hubspot.marketing.emails: CollectionResponseWithTotalVersionPublicEmail
Response object for collections of marketing emails with pagination information
Fields
- total Signed32 - Total number of content emails
- paging? Paging - Contains information pagination of results
- results VersionPublicEmail[] - Collection of emails
hubspot.marketing.emails: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint.
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig|ApiKeysConfig - Provides Auth configurations needed when communicating with a remote HTTP endpoint.
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default.
hubspot.marketing.emails: ContentCloneRequestVNext
Request body object for cloning marketing emails
Fields
- cloneName? string - Name of the cloned email
- id string - ID of the email to be cloned
hubspot.marketing.emails: DeleteEmailIdQueries
Represents the Queries record for the operation: delete-/{emailId}
Fields
- archived? boolean - Whether to return only results that have been archived
hubspot.marketing.emails: EmailCreateRequest
Properties of a marketing email you can set when creating a marketing email
Fields
- feedbackSurveyId? string - The ID of the feedback survey linked to the email
- rssData? PublicRssEmailDetails - RSS related data if it is a blog or rss email
- subject? string - The subject of the email
- testing? PublicEmailTestingDetails - AB testing related data. This property is only returned for AB type emails
- publishDate? string - The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails
- language? "af"|"af-na"|"af-za"|"agq"|"agq-cm"|"ak"|"ak-gh"|"am"|"am-et"|"ann"|"ann-ng"|"ar"|"ar-001"|"ar-ae"|"ar-bh"|"ar-dj"|"ar-dz"|"ar-eg"|"ar-eh"|"ar-er"|"ar-il"|"ar-iq"|"ar-jo"|"ar-km"|"ar-kw"|"ar-lb"|"ar-ly"|"ar-ma"|"ar-mr"|"ar-om"|"ar-ps"|"ar-qa"|"ar-sa"|"ar-sd"|"ar-so"|"ar-ss"|"ar-sy"|"ar-td"|"ar-tn"|"ar-ye"|"as"|"asa"|"asa-tz"|"ast"|"ast-es"|"as-in"|"az"|"az-az"|"bas"|"bas-cm"|"be"|"bem"|"bem-zm"|"bez"|"bez-tz"|"be-by"|"bg"|"bgc"|"bgc-in"|"bg-bg"|"bho"|"bho-in"|"bm"|"bm-ml"|"bn"|"bn-bd"|"bn-in"|"bo"|"bo-cn"|"bo-in"|"br"|"brx"|"brx-in"|"br-fr"|"bs"|"bs-ba"|"ca"|"ca-ad"|"ca-es"|"ca-fr"|"ca-it"|"ccp"|"ccp-bd"|"ccp-in"|"ce"|"ceb"|"ceb-ph"|"ce-ru"|"cgg"|"cgg-ug"|"chr"|"chr-us"|"ckb"|"ckb-iq"|"ckb-ir"|"cs"|"cs-cz"|"cu"|"cu-ru"|"cv"|"cv-ru"|"cy"|"cy-gb"|"da"|"dav"|"dav-ke"|"da-dk"|"da-gl"|"de"|"de-at"|"de-be"|"de-ch"|"de-de"|"de-gr"|"de-it"|"de-li"|"de-lu"|"dje"|"dje-ne"|"doi"|"doi-in"|"dsb"|"dsb-de"|"dua"|"dua-cm"|"dyo"|"dyo-sn"|"dz"|"dz-bt"|"ebu"|"ebu-ke"|"ee"|"ee-gh"|"ee-tg"|"el"|"el-cy"|"el-gr"|"en"|"en-001"|"en-150"|"en-ae"|"en-ag"|"en-ai"|"en-as"|"en-at"|"en-au"|"en-bb"|"en-be"|"en-bi"|"en-bm"|"en-bs"|"en-bw"|"en-bz"|"en-ca"|"en-cc"|"en-ch"|"en-ck"|"en-cm"|"en-cn"|"en-cx"|"en-cy"|"en-de"|"en-dg"|"en-dk"|"en-dm"|"en-ee"|"en-er"|"en-fi"|"en-fj"|"en-fk"|"en-fm"|"en-fr"|"en-gb"|"en-gd"|"en-gg"|"en-gh"|"en-gi"|"en-gm"|"en-gu"|"en-gy"|"en-hk"|"en-ie"|"en-il"|"en-im"|"en-in"|"en-io"|"en-je"|"en-jm"|"en-ke"|"en-ki"|"en-kn"|"en-ky"|"en-lc"|"en-lr"|"en-ls"|"en-lu"|"en-mg"|"en-mh"|"en-mo"|"en-mp"|"en-ms"|"en-mt"|"en-mu"|"en-mv"|"en-mw"|"en-mx"|"en-my"|"en-na"|"en-nf"|"en-ng"|"en-nl"|"en-nr"|"en-nu"|"en-nz"|"en-pg"|"en-ph"|"en-pk"|"en-pn"|"en-pr"|"en-pw"|"en-rw"|"en-sb"|"en-sc"|"en-sd"|"en-se"|"en-sg"|"en-sh"|"en-si"|"en-sl"|"en-ss"|"en-sx"|"en-sz"|"en-tc"|"en-tk"|"en-to"|"en-tt"|"en-tv"|"en-tz"|"en-ug"|"en-um"|"en-us"|"en-vc"|"en-vg"|"en-vi"|"en-vu"|"en-ws"|"en-za"|"en-zm"|"en-zw"|"eo"|"eo-001"|"es"|"es-419"|"es-ar"|"es-bo"|"es-br"|"es-bz"|"es-cl"|"es-co"|"es-cr"|"es-cu"|"es-do"|"es-ea"|"es-ec"|"es-es"|"es-gq"|"es-gt"|"es-hn"|"es-ic"|"es-mx"|"es-ni"|"es-pa"|"es-pe"|"es-ph"|"es-pr"|"es-py"|"es-sv"|"es-us"|"es-uy"|"es-ve"|"et"|"et-ee"|"eu"|"eu-es"|"ewo"|"ewo-cm"|"fa"|"fa-af"|"fa-ir"|"ff"|"ff-bf"|"ff-cm"|"ff-gh"|"ff-gm"|"ff-gn"|"ff-gw"|"ff-lr"|"ff-mr"|"ff-ne"|"ff-ng"|"ff-sl"|"ff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ae-ch"|"wo"|"wo-sn"|"xh"|"xh-za"|"xog"|"xog-ug"|"yav"|"yav-cm"|"yo"|"yo-bj"|"yo-ng"|"yrl"|"yrl-br"|"yrl-co"|"yrl-ve"|"yue"|"yue-cn"|"yue-hk"|"zgh"|"zgh-ma"|"zh"|"zh-cn"|"zh-hans"|"zh-hant"|"zh-hk"|"zh-mo"|"zh-sg"|"zh-tw"|"zu"|"zu-za" -
- businessUnitId? int -
- content? PublicEmailContent - Data structure representing the content of the email
- webversion? PublicWebversionDetails -
- archived? boolean - Determines if the email is archived or not
- subscriptionDetails? PublicEmailSubscriptionDetails - Data structure representing the subscription fields of the email
- activeDomain? string - The active domain of the email
- name string - The name of the email, as displayed on the email dashboard
- campaign? string - The ID of the campaign this email is associated to
- 'from? PublicEmailFromDetails - Data structure representing the from fields on the email
- jitterSendTime? boolean -
- state? "AUTOMATED"|"AUTOMATED_DRAFT"|"AUTOMATED_SENDING"|"AUTOMATED_FOR_FORM"|"AUTOMATED_FOR_FORM_BUFFER"|"AUTOMATED_FOR_FORM_DRAFT"|"AUTOMATED_FOR_FORM_LEGACY"|"BLOG_EMAIL_DRAFT"|"BLOG_EMAIL_PUBLISHED"|"DRAFT"|"DRAFT_AB"|"DRAFT_AB_VARIANT"|"ERROR"|"LOSER_AB_VARIANT"|"PAGE_STUB"|"PRE_PROCESSING"|"PROCESSING"|"PUBLISHED"|"PUBLISHED_AB"|"PUBLISHED_AB_VARIANT"|"PUBLISHED_OR_SCHEDULED"|"RSS_TO_EMAIL_DRAFT"|"RSS_TO_EMAIL_PUBLISHED"|"SCHEDULED"|"SCHEDULED_AB"|"SCHEDULED_OR_PUBLISHED"|"AUTOMATED_AB"|"AUTOMATED_AB_VARIANT"|"AUTOMATED_DRAFT_AB"|"AUTOMATED_DRAFT_ABVARIANT"|"AUTOMATED_LOSER_ABVARIANT" - The email state
- to? PublicEmailToDetails - Data structure representing the to fields of the email
- subcategory? "ab_master"|"ab_variant"|"ab_loser_variant"|"page_stub"|"landing_page"|"site_page"|"legacy_page"|"ab_master_site_page"|"ab_variant_site_page"|"ab_loser_variant_site_page"|"performable_landing_page"|"performable_landing_page_cutover"|"staged_page"|"automated"|"automated_for_deal"|"automated_for_form"|"automated_for_form_legacy"|"automated_for_form_buffer"|"automated_for_form_draft"|"rss_to_email"|"rss_to_email_child"|"blog_email"|"blog_email_child"|"optin_email"|"optin_followup_email"|"batch"|"resubscribe_email"|"unsubscribe_confirmation_email"|"resubscribe_confirmation_email"|"single_send_api"|"marketing_single_send_api"|"smtp_token"|"localtime"|"automated_for_ticket"|"automated_for_leadflow"|"automated_for_feedback_ces"|"automated_for_feedback_nps"|"automated_for_feedback_custom"|"membership_registration"|"membership_password_saved"|"membership_password_reset"|"membership_otp_login"|"membership_passwordless_auth"|"membership_email_verification"|"membership_registration_follow_up"|"membership_verification"|"membership_follow_up"|"ticket_closed_kickback_email"|"ticket_opened_kickback_email"|"automated_for_custom_survey"|"discardable_stub"|"normal_blog_post"|"legacy_blog_post"|"imported_blog_post"|"automated_ab_master"|"automated_ab_variant"|"web_interactive"|"portal_content"|"page_instance_layout"|"kb_article_instance_layout"|"kb_listing"|"kb_search_results"|"kb_support_form"|"case_study"|"case_study_listing"|"case_study_instance_layout"|"UNKNOWN" - The email subcategory
- sendOnPublish? boolean - Determines whether the email will be sent immediately on publish
hubspot.marketing.emails: EmailStatisticInterval
Fields
- interval? Interval -
- aggregations? EmailStatisticsData -
hubspot.marketing.emails: EmailStatisticsData
Fields
- deviceBreakdown record { record { int... }... } - Statistics by device
- qualifierStats record { record { int... }... } - Number of emails that were dropped and bounced
- counters record { int... } - Counters like number of
sent,openordelivered
- ratios record { float... } - Ratios like
openratioorclickratio
hubspot.marketing.emails: EmailUpdateRequest
Properties of a marketing email you can update via the API
Fields
- rssData? PublicRssEmailDetails - RSS related data if it is a blog or rss email
- subject? string - The subject of the email
- testing? PublicEmailTestingDetails - AB testing related data. This property is only returned for AB type emails
- publishDate? string - The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails
- language? "af"|"af-na"|"af-za"|"agq"|"agq-cm"|"ak"|"ak-gh"|"am"|"am-et"|"ann"|"ann-ng"|"ar"|"ar-001"|"ar-ae"|"ar-bh"|"ar-dj"|"ar-dz"|"ar-eg"|"ar-eh"|"ar-er"|"ar-il"|"ar-iq"|"ar-jo"|"ar-km"|"ar-kw"|"ar-lb"|"ar-ly"|"ar-ma"|"ar-mr"|"ar-om"|"ar-ps"|"ar-qa"|"ar-sa"|"ar-sd"|"ar-so"|"ar-ss"|"ar-sy"|"ar-td"|"ar-tn"|"ar-ye"|"as"|"asa"|"asa-tz"|"ast"|"ast-es"|"as-in"|"az"|"az-az"|"bas"|"bas-cm"|"be"|"bem"|"bem-zm"|"bez"|"bez-tz"|"be-by"|"bg"|"bgc"|"bgc-in"|"bg-bg"|"bho"|"bho-in"|"bm"|"bm-ml"|"bn"|"bn-bd"|"bn-in"|"bo"|"bo-cn"|"bo-in"|"br"|"brx"|"brx-in"|"br-fr"|"bs"|"bs-ba"|"ca"|"ca-ad"|"ca-es"|"ca-fr"|"ca-it"|"ccp"|"ccp-bd"|"ccp-in"|"ce"|"ceb"|"ceb-ph"|"ce-ru"|"cgg"|"cgg-ug"|"chr"|"chr-us"|"ckb"|"ckb-iq"|"ckb-ir"|"cs"|"cs-cz"|"cu"|"cu-ru"|"cv"|"cv-ru"|"cy"|"cy-gb"|"da"|"dav"|"dav-ke"|"da-dk"|"da-gl"|"de"|"de-at"|"de-be"|"de-ch"|"de-de"|"de-gr"|"de-it"|"de-li"|"de-lu"|"dje"|"dje-ne"|"doi"|"doi-in"|"dsb"|"dsb-de"|"dua"|"dua-cm"|"dyo"|"dyo-sn"|"dz"|"dz-bt"|"ebu"|"ebu-ke"|"ee"|"ee-gh"|"ee-tg"|"el"|"el-cy"|"el-gr"|"en"|"en-001"|"en-150"|"en-ae"|"en-ag"|"en-ai"|"en-as"|"en-at"|"en-au"|"en-bb"|"en-be"|"en-bi"|"en-bm"|"en-bs"|"en-bw"|"en-bz"|"en-ca"|"en-cc"|"en-ch"|"en-ck"|"en-cm"|"en-cn"|"en-cx"|"en-cy"|"en-de"|"en-dg"|"en-dk"|"en-dm"|"en-ee"|"en-er"|"en-fi"|"en-fj"|"en-fk"|"en-fm"|"en-fr"|"en-gb"|"en-gd"|"en-gg"|"en-gh"|"en-gi"|"en-gm"|"en-gu"|"en-gy"|"en-hk"|"en-ie"|"en-il"|"en-im"|"en-in"|"en-io"|"en-je"|"en-jm"|"en-ke"|"en-ki"|"en-kn"|"en-ky"|"en-lc"|"en-lr"|"en-ls"|"en-lu"|"en-mg"|"en-mh"|"en-mo"|"en-mp"|"en-ms"|"en-mt"|"en-mu"|"en-mv"|"en-mw"|"en-mx"|"en-my"|"en-na"|"en-nf"|"en-ng"|"en-nl"|"en-nr"|"en-nu"|"en-nz"|"en-pg"|"en-ph"|"en-pk"|"en-pn"|"en-pr"|"en-pw"|"en-rw"|"en-sb"|"en-sc"|"en-sd"|"en-se"|"en-sg"|"en-sh"|"en-si"|"en-sl"|"en-ss"|"en-sx"|"en-sz"|"en-tc"|"en-tk"|"en-to"|"en-tt"|"en-tv"|"en-tz"|"en-ug"|"en-um"|"en-us"|"en-vc"|"en-vg"|"en-vi"|"en-vu"|"en-ws"|"en-za"|"en-zm"|"en-zw"|"eo"|"eo-001"|"es"|"es-419"|"es-ar"|"es-bo"|"es-br"|"es-bz"|"es-cl"|"es-co"|"es-cr"|"es-cu"|"es-do"|"es-ea"|"es-ec"|"es-es"|"es-gq"|"es-gt"|"es-hn"|"es-ic"|"es-mx"|"es-ni"|"es-pa"|"es-pe"|"es-ph"|"es-pr"|"es-py"|"es-sv"|"es-us"|"es-uy"|"es-ve"|"et"|"et-ee"|"eu"|"eu-es"|"ewo"|"ewo-cm"|"fa"|"fa-af"|"fa-ir"|"ff"|"ff-bf"|"ff-cm"|"ff-gh"|"ff-gm"|"ff-gn"|"ff-gw"|"ff-lr"|"ff-mr"|"ff-ne"|"ff-ng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un-tz"|"wae"|"wae-ch"|"wo"|"wo-sn"|"xh"|"xh-za"|"xog"|"xog-ug"|"yav"|"yav-cm"|"yo"|"yo-bj"|"yo-ng"|"yrl"|"yrl-br"|"yrl-co"|"yrl-ve"|"yue"|"yue-cn"|"yue-hk"|"zgh"|"zgh-ma"|"zh"|"zh-cn"|"zh-hans"|"zh-hant"|"zh-hk"|"zh-mo"|"zh-sg"|"zh-tw"|"zu"|"zu-za" -
- businessUnitId? int -
- content? PublicEmailContent - Data structure representing the content of the email
- webversion? PublicWebversionDetails -
- archived? boolean - Determines if the email is archived or not
- subscriptionDetails? PublicEmailSubscriptionDetails - Data structure representing the subscription fields of the email
- activeDomain? string - The active domain of the email
- name? string - The name of the email, as displayed on the email dashboard
- campaign? string - The ID of the campaign this email is associated to
- 'from? PublicEmailFromDetails - Data structure representing the from fields on the email
- jitterSendTime? boolean -
- state? "AUTOMATED"|"AUTOMATED_DRAFT"|"AUTOMATED_SENDING"|"AUTOMATED_FOR_FORM"|"AUTOMATED_FOR_FORM_BUFFER"|"AUTOMATED_FOR_FORM_DRAFT"|"AUTOMATED_FOR_FORM_LEGACY"|"BLOG_EMAIL_DRAFT"|"BLOG_EMAIL_PUBLISHED"|"DRAFT"|"DRAFT_AB"|"DRAFT_AB_VARIANT"|"ERROR"|"LOSER_AB_VARIANT"|"PAGE_STUB"|"PRE_PROCESSING"|"PROCESSING"|"PUBLISHED"|"PUBLISHED_AB"|"PUBLISHED_AB_VARIANT"|"PUBLISHED_OR_SCHEDULED"|"RSS_TO_EMAIL_DRAFT"|"RSS_TO_EMAIL_PUBLISHED"|"SCHEDULED"|"SCHEDULED_AB"|"SCHEDULED_OR_PUBLISHED"|"AUTOMATED_AB"|"AUTOMATED_AB_VARIANT"|"AUTOMATED_DRAFT_AB"|"AUTOMATED_DRAFT_ABVARIANT"|"AUTOMATED_LOSER_ABVARIANT" - The email state
- to? PublicEmailToDetails - Data structure representing the to fields of the email
- subcategory? "ab_master"|"ab_variant"|"ab_loser_variant"|"page_stub"|"landing_page"|"site_page"|"legacy_page"|"ab_master_site_page"|"ab_variant_site_page"|"ab_loser_variant_site_page"|"performable_landing_page"|"performable_landing_page_cutover"|"staged_page"|"automated"|"automated_for_deal"|"automated_for_form"|"automated_for_form_legacy"|"automated_for_form_buffer"|"automated_for_form_draft"|"rss_to_email"|"rss_to_email_child"|"blog_email"|"blog_email_child"|"optin_email"|"optin_followup_email"|"batch"|"resubscribe_email"|"unsubscribe_confirmation_email"|"resubscribe_confirmation_email"|"single_send_api"|"marketing_single_send_api"|"smtp_token"|"localtime"|"automated_for_ticket"|"automated_for_leadflow"|"automated_for_feedback_ces"|"automated_for_feedback_nps"|"automated_for_feedback_custom"|"membership_registration"|"membership_password_saved"|"membership_password_reset"|"membership_otp_login"|"membership_passwordless_auth"|"membership_email_verification"|"membership_registration_follow_up"|"membership_verification"|"membership_follow_up"|"ticket_closed_kickback_email"|"ticket_opened_kickback_email"|"automated_for_custom_survey"|"discardable_stub"|"normal_blog_post"|"legacy_blog_post"|"imported_blog_post"|"automated_ab_master"|"automated_ab_variant"|"web_interactive"|"portal_content"|"page_instance_layout"|"kb_article_instance_layout"|"kb_listing"|"kb_search_results"|"kb_support_form"|"case_study"|"case_study_listing"|"case_study_instance_layout"|"UNKNOWN" - The email subcategory
- sendOnPublish? boolean - Determines whether the email will be sent immediately on publish
hubspot.marketing.emails: ForwardPaging
Fields
- next? NextPage - Contains information about the next page
hubspot.marketing.emails: GetEmailIdQueries
Represents the Queries record for the operation: get-/{emailId}
Fields
- workflowNames? boolean -
- archived? boolean - Whether to return only results that have been archived
- marketingCampaignNames? boolean -
- includeStats? boolean - Include statistics with email
- includedProperties? string[] -
hubspot.marketing.emails: GetEmailIdRevisionsQueries
Represents the Queries record for the operation: get-/{emailId}/revisions
Fields
- before? string - The cursor token value to get the previous set of results. You can get this from the
paging.prev.beforeJSON property of a paged response containing more results
- 'limit? Signed32 - The maximum number of results to return. Default is 100
- after? string - The cursor token value to get the next set of results. You can get this from the
paging.next.afterJSON property of a paged response containing more results
hubspot.marketing.emails: GetQueries
Represents the Queries record for the operation: get-/
Fields
- updatedAfter? string - Only return emails last updated after the specified time
- isPublished? boolean - Filter by published/draft emails. All emails will be returned if not present
- sort? string[] - Specifies which fields to use for sorting results. Valid fields are
name,createdAt,updatedAt,createdBy,updatedBy.createdAtwill be used by default
- createdAfter? string - Only return emails created after the specified time
- 'type? "AB_EMAIL"|"BATCH_EMAIL"|"LOCALTIME_EMAIL"|"AUTOMATED_AB_EMAIL"|"BLOG_EMAIL"|"BLOG_EMAIL_CHILD"|"RSS_EMAIL"|"RSS_EMAIL_CHILD"|"RESUBSCRIBE_EMAIL"|"OPTIN_EMAIL"|"OPTIN_FOLLOWUP_EMAIL"|"AUTOMATED_EMAIL"|"FEEDBACK_CES_EMAIL"|"FEEDBACK_CUSTOM_EMAIL"|"FEEDBACK_CUSTOM_SURVEY_EMAIL"|"FEEDBACK_NPS_EMAIL"|"FOLLOWUP_EMAIL"|"LEADFLOW_EMAIL"|"SINGLE_SEND_API"|"MARKETING_SINGLE_SEND_API"|"SMTP_TOKEN"|"TICKET_EMAIL"|"MEMBERSHIP_REGISTRATION_EMAIL"|"MEMBERSHIP_PASSWORD_SAVED_EMAIL"|"MEMBERSHIP_PASSWORD_RESET_EMAIL"|"MEMBERSHIP_EMAIL_VERIFICATION_EMAIL"|"MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL"|"MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL"|"MEMBERSHIP_OTP_LOGIN_EMAIL"|"MEMBERSHIP_FOLLOW_UP_EMAIL"|"MEMBERSHIP_VERIFICATION_EMAIL" - Email types to be filtered by. Multiple types can be included. All emails will be returned if not present
- includedProperties? string[] -
- workflowNames? boolean -
- createdAt? string - Only return emails created at exactly the specified time
- updatedBefore? string - Only return emails last updated before the specified time
- archived? boolean - Specifies whether to return archived emails. Defaults to
false
- marketingCampaignNames? boolean -
- includeStats? boolean - Include statistics with emails
- 'limit? Signed32 - The maximum number of results to return. Default is 100
- createdBefore? string - Only return emails created before the specified time
- after? string - The cursor token value to get the next set of results. You can get this from the
paging.next.afterJSON property of a paged response containing more results
- updatedAt? string - Only return emails last updated at exactly the specified time
hubspot.marketing.emails: GetStatisticsHistogramQueries
Represents the Queries record for the operation: get-/statistics/histogram
Fields
- emailIds? int[] - Filter by email IDs. Only include statistics of emails with these IDs
- interval? "YEAR"|"QUARTER"|"MONTH"|"WEEK"|"DAY"|"HOUR"|"QUARTER_HOUR"|"MINUTE"|"SECOND" - The interval to aggregate statistics for
- endTimestamp? string - The end timestamp of the time span, in ISO8601 representation
- startTimestamp? string - The start timestamp of the time span, in ISO8601 representation
hubspot.marketing.emails: GetStatisticsListQueries
Represents the Queries record for the operation: get-/statistics/list
Fields
- emailIds? int[] - Filter by email IDs. Only include statistics of emails with these IDs
- property? string - Specifies which email properties should be returned. All properties will be returned by default
- endTimestamp? string - The end timestamp of the time span, in ISO8601 representation
- startTimestamp? string - The start timestamp of the time span, in ISO8601 representation
hubspot.marketing.emails: Interval
Fields
- 'start string -
- end string -
hubspot.marketing.emails: NextPage
Contains information about the next page
Fields
- link? string - The link to the next page
- after string - The cursor token value to get the next set of results. Use this value as query parameter (&after=...) to obtain the next page
hubspot.marketing.emails: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://api.hubapi.com/oauth/v1/token") - Refresh URL
hubspot.marketing.emails: Paging
Contains information pagination of results
Fields
- next NextPage - Contains information about the next page
- prev? PreviousPage - Contains information about the previous page
hubspot.marketing.emails: PatchEmailIdQueries
Represents the Queries record for the operation: patch-/{emailId}
Fields
- archived? boolean - Whether to return only results that have been archived
hubspot.marketing.emails: PreviousPage
Contains information about the previous page
Fields
- before string - The cursor token value to get the previous set of results. Use this value as query parameter (&before=...) to obtain the previous page
- link? string - The link to the previous page
hubspot.marketing.emails: PublicButtonStyleSettings
Fields
- backgroundColor? string -
- fontStyle? PublicFontStyle -
- cornerRadius? Signed32 -
hubspot.marketing.emails: PublicDividerStyleSettings
Fields
- color? record {} -
- lineType? string -
- height? Signed32 -
hubspot.marketing.emails: PublicEmail
A marketing email
Fields
- feedbackSurveyId? string - The ID of the feedback survey linked to the email
- subject string - The subject of the email
- publishDate? string - The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails
- isTransactional? boolean - Returns whether the email is a transactional email or not. This is read only
- language? "af"|"af-na"|"af-za"|"agq"|"agq-cm"|"ak"|"ak-gh"|"am"|"am-et"|"ann"|"ann-ng"|"ar"|"ar-001"|"ar-ae"|"ar-bh"|"ar-dj"|"ar-dz"|"ar-eg"|"ar-eh"|"ar-er"|"ar-il"|"ar-iq"|"ar-jo"|"ar-km"|"ar-kw"|"ar-lb"|"ar-ly"|"ar-ma"|"ar-mr"|"ar-om"|"ar-ps"|"ar-qa"|"ar-sa"|"ar-sd"|"ar-so"|"ar-ss"|"ar-sy"|"ar-td"|"ar-tn"|"ar-ye"|"as"|"asa"|"asa-tz"|"ast"|"ast-es"|"as-in"|"az"|"az-az"|"bas"|"bas-cm"|"be"|"bem"|"bem-zm"|"bez"|"bez-tz"|"be-by"|"bg"|"bgc"|"bgc-in"|"bg-bg"|"bho"|"bho-in"|"bm"|"bm-ml"|"bn"|"bn-bd"|"bn-in"|"bo"|"bo-cn"|"bo-in"|"br"|"brx"|"brx-in"|"br-fr"|"bs"|"bs-ba"|"ca"|"ca-ad"|"ca-es"|"ca-fr"|"ca-it"|"ccp"|"ccp-bd"|"ccp-in"|"ce"|"ceb"|"ceb-ph"|"ce-ru"|"cgg"|"cgg-ug"|"chr"|"chr-us"|"ckb"|"ckb-iq"|"ckb-ir"|"cs"|"cs-cz"|"cu"|"cu-ru"|"cv"|"cv-ru"|"cy"|"cy-gb"|"da"|"dav"|"dav-ke"|"da-dk"|"da-gl"|"de"|"de-at"|"de-be"|"de-ch"|"de-de"|"de-gr"|"de-it"|"de-li"|"de-lu"|"dje"|"dje-ne"|"doi"|"doi-in"|"dsb"|"dsb-de"|"dua"|"dua-cm"|"dyo"|"dyo-sn"|"dz"|"dz-bt"|"ebu"|"ebu-ke"|"ee"|"ee-gh"|"ee-tg"|"el"|"el-cy"|"el-gr"|"en"|"en-001"|"en-150"|"en-ae"|"en-ag"|"en-ai"|"en-as"|"en-at"|"en-au"|"en-bb"|"en-be"|"en-bi"|"en-bm"|"en-bs"|"en-bw"|"en-bz"|"en-ca"|"en-cc"|"en-ch"|"en-ck"|"en-cm"|"en-cn"|"en-cx"|"en-cy"|"en-de"|"en-dg"|"en-dk"|"en-dm"|"en-ee"|"en-er"|"en-fi"|"en-fj"|"en-fk"|"en-fm"|"en-fr"|"en-gb"|"en-gd"|"en-gg"|"en-gh"|"en-gi"|"en-gm"|"en-gu"|"en-gy"|"en-hk"|"en-ie"|"en-il"|"en-im"|"en-in"|"en-io"|"en-je"|"en-jm"|"en-ke"|"en-ki"|"en-kn"|"en-ky"|"en-lc"|"en-lr"|"en-ls"|"en-lu"|"en-mg"|"en-mh"|"en-mo"|"en-mp"|"en-ms"|"en-mt"|"en-mu"|"en-mv"|"en-mw"|"en-mx"|"en-my"|"en-na"|"en-nf"|"en-ng"|"en-nl"|"en-nr"|"en-nu"|"en-nz"|"en-pg"|"en-ph"|"en-pk"|"en-pn"|"en-pr"|"en-pw"|"en-rw"|"en-sb"|"en-sc"|"en-sd"|"en-se"|"en-sg"|"en-sh"|"en-si"|"en-sl"|"en-ss"|"en-sx"|"en-sz"|"en-tc"|"en-tk"|"en-to"|"en-tt"|"en-tv"|"en-tz"|"en-ug"|"en-um"|"en-us"|"en-vc"|"en-vg"|"en-vi"|"en-vu"|"en-ws"|"en-za"|"en-zm"|"en-zw"|"eo"|"eo-001"|"es"|"es-419"|"es-ar"|"es-bo"|"es-br"|"es-bz"|"es-cl"|"es-co"|"es-cr"|"es-cu"|"es-do"|"es-ea"|"es-ec"|"es-es"|"es-gq"|"es-gt"|"es-hn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ti-er"|"ti-et"|"tk"|"tk-tm"|"tl"|"to"|"tok"|"tok-001"|"to-to"|"tr"|"tr-cy"|"tr-tr"|"tt"|"tt-ru"|"twq"|"twq-ne"|"tzm"|"tzm-ma"|"ug"|"ug-cn"|"uk"|"uk-ua"|"ur"|"ur-in"|"ur-pk"|"uz"|"uz-af"|"uz-uz"|"vai"|"vai-lr"|"vi"|"vi-vn"|"vo"|"vo-001"|"vun"|"vun-tz"|"wae"|"wae-ch"|"wo"|"wo-sn"|"xh"|"xh-za"|"xog"|"xog-ug"|"yav"|"yav-cm"|"yo"|"yo-bj"|"yo-ng"|"yrl"|"yrl-br"|"yrl-co"|"yrl-ve"|"yue"|"yue-cn"|"yue-hk"|"zgh"|"zgh-ma"|"zh"|"zh-cn"|"zh-hans"|"zh-hant"|"zh-hk"|"zh-mo"|"zh-sg"|"zh-tw"|"zu"|"zu-za" -
- 'type? "AB_EMAIL"|"BATCH_EMAIL"|"LOCALTIME_EMAIL"|"AUTOMATED_AB_EMAIL"|"BLOG_EMAIL"|"BLOG_EMAIL_CHILD"|"RSS_EMAIL"|"RSS_EMAIL_CHILD"|"RESUBSCRIBE_EMAIL"|"OPTIN_EMAIL"|"OPTIN_FOLLOWUP_EMAIL"|"AUTOMATED_EMAIL"|"FEEDBACK_CES_EMAIL"|"FEEDBACK_CUSTOM_EMAIL"|"FEEDBACK_CUSTOM_SURVEY_EMAIL"|"FEEDBACK_NPS_EMAIL"|"FOLLOWUP_EMAIL"|"LEADFLOW_EMAIL"|"SINGLE_SEND_API"|"MARKETING_SINGLE_SEND_API"|"SMTP_TOKEN"|"TICKET_EMAIL"|"MEMBERSHIP_REGISTRATION_EMAIL"|"MEMBERSHIP_PASSWORD_SAVED_EMAIL"|"MEMBERSHIP_PASSWORD_RESET_EMAIL"|"MEMBERSHIP_EMAIL_VERIFICATION_EMAIL"|"MEMBERSHIP_PASSWORDLESS_AUTH_EMAIL"|"MEMBERSHIP_REGISTRATION_FOLLOW_UP_EMAIL"|"MEMBERSHIP_OTP_LOGIN_EMAIL"|"MEMBERSHIP_FOLLOW_UP_EMAIL"|"MEMBERSHIP_VERIFICATION_EMAIL" - The email type, this is derived from other properties on the email such as subcategory
- content PublicEmailContent - Data structure representing the content of the email
- businessUnitId? string -
- webversion? PublicWebversionDetails -
- workflowNames? string[] -
- archived? boolean - Determines if the email is archived or not
- createdAt? string - The date and time of the email's creation, in ISO8601 representation
- stats? EmailStatisticsData -
- jitterSendTime? boolean -
- 'from PublicEmailFromDetails - Data structure representing the from fields on the email
- id string - The email ID
- state "AUTOMATED"|"AUTOMATED_DRAFT"|"AUTOMATED_SENDING"|"AUTOMATED_FOR_FORM"|"AUTOMATED_FOR_FORM_BUFFER"|"AUTOMATED_FOR_FORM_DRAFT"|"AUTOMATED_FOR_FORM_LEGACY"|"BLOG_EMAIL_DRAFT"|"BLOG_EMAIL_PUBLISHED"|"DRAFT"|"DRAFT_AB"|"DRAFT_AB_VARIANT"|"ERROR"|"LOSER_AB_VARIANT"|"PAGE_STUB"|"PRE_PROCESSING"|"PROCESSING"|"PUBLISHED"|"PUBLISHED_AB"|"PUBLISHED_AB_VARIANT"|"PUBLISHED_OR_SCHEDULED"|"RSS_TO_EMAIL_DRAFT"|"RSS_TO_EMAIL_PUBLISHED"|"SCHEDULED"|"SCHEDULED_AB"|"SCHEDULED_OR_PUBLISHED"|"AUTOMATED_AB"|"AUTOMATED_AB_VARIANT"|"AUTOMATED_DRAFT_AB"|"AUTOMATED_DRAFT_ABVARIANT"|"AUTOMATED_LOSER_ABVARIANT" - The email state
- createdById? string - The id of the user who created the email
- updatedAt? string - The date and time of the last update to the email, in ISO8601 representation
- rssData? PublicRssEmailDetails - RSS related data if it is a blog or rss email
- publishedAt? string - The date and time the email was published at, in ISO8601 representation
- publishedById? string -
- isPublished? boolean - Returns the published status of the email. This is read only
- testing? PublicEmailTestingDetails - AB testing related data. This property is only returned for AB type emails
- updatedById? string - The id of the user who last updated the email
- folderId? int -
- subscriptionDetails? PublicEmailSubscriptionDetails - Data structure representing the subscription fields of the email
- deletedAt? string -
- name string - The name of the email, as displayed on the email dashboard
- activeDomain? string - The active domain of the email
- campaign? string - The campaign id on the email
- to PublicEmailToDetails - Data structure representing the to fields of the email
- subcategory string - The email subcategory
- campaignName? string -
- sendOnPublish? boolean - Determines whether the email will be sent immediately on publish
hubspot.marketing.emails: PublicEmailContent
Data structure representing the content of the email
Fields
- smartFields? record { SmartEmailField... } -
- themeSettingsValues? record { record {}... } -
- flexAreas? record { record {}... } -
- widgets? record { record {}... } -
- plainTextVersion? string -
- templatePath? string -
- widgetContainers? record { record {}... } -
- styleSettings? PublicEmailStyleSettings -
hubspot.marketing.emails: PublicEmailFromDetails
Data structure representing the from fields on the email
Fields
- customReplyTo? string - The reply to recipients will see
- fromName? string - The name recipients will see
- replyTo? string - The from address and reply to email address (if no customReplyTo defined) recipients will see
hubspot.marketing.emails: PublicEmailRecipients
Data structure representing lists of IDs that should be included and excluded
Fields
- include? string[] - Included IDs
- exclude? string[] - Excluded IDs
hubspot.marketing.emails: PublicEmailStyleSettings
Fields
- emailBodyPadding? string -
- colorPickerFavorite5? string -
- bodyColor? string -
- colorPickerFavorite6? string -
- backgroundImage? string -
- emailBodyWidth? string -
- secondaryFont? string -
- primaryAccentColor? string -
- colorPickerFavorite3? string -
- primaryFontLineHeight? string -
- colorPickerFavorite4? string -
- secondaryFontColor? string -
- colorPickerFavorite1? string -
- colorPickerFavorite2? string -
- bodyBorderColor? string -
- bodyBorderWidth? Signed32 -
- linksFont? PublicFontStyle -
- backgroundColor? string -
- backgroundImageType? string -
- dividerStyleSettings? PublicDividerStyleSettings -
- secondaryAccentColor? string -
- secondaryFontLineHeight? string -
- primaryFontSize? Signed32 -
- secondaryFontSize? Signed32 -
- primaryFontColor? string -
- headingOneFont? PublicFontStyle -
- primaryFont? string -
- headingTwoFont? PublicFontStyle -
- buttonStyleSettings? PublicButtonStyleSettings -
- bodyBorderColorChoice? string -
hubspot.marketing.emails: PublicEmailSubscriptionDetails
Data structure representing the subscription fields of the email
Fields
- officeLocationId? string - ID of the selected office location
- preferencesGroupId? string -
- subscriptionId? string - ID of the subscription
hubspot.marketing.emails: PublicEmailTestingDetails
AB testing related data. This property is only returned for AB type emails
Fields
- abSamplingDefault? "master"|"variant"|"loser_variant"|"mab_master"|"mab_variant"|"automated_master"|"automated_variant"|"automated_loser_variant" - Version of the email that should be sent if the results are inconclusive after the test period, master or variant
- abSampleSizeDefault? "master"|"variant"|"loser_variant"|"mab_master"|"mab_variant"|"automated_master"|"automated_variant"|"automated_loser_variant" - Version of the email that should be sent if there are too few recipients to conduct an AB test
- abStatus? "master"|"variant"|"loser_variant"|"mab_master"|"mab_variant"|"automated_master"|"automated_variant"|"automated_loser_variant" - Status of the AB test
- abTestPercentage? Signed32 - The size of your test group
- hoursToWait? Signed32 - Time limit on gathering test results. After this time is up, the winning version will be sent to the remaining contacts
- testId? string - The ID of the AB test
- abSuccessMetric? "CLICKS_BY_OPENS"|"CLICKS_BY_DELIVERED"|"OPENS_BY_DELIVERED" - Metric to determine the version that will be sent to the remaining contacts
hubspot.marketing.emails: PublicEmailToDetails
Data structure representing the to fields of the email
Fields
- contactIlsLists? PublicEmailRecipients - Data structure representing lists of IDs that should be included and excluded
- limitSendFrequency? boolean -
- suppressGraymail? boolean -
- contactIds? PublicEmailRecipients - Data structure representing lists of IDs that should be included and excluded
- contactLists? PublicEmailRecipients - Data structure representing lists of IDs that should be included and excluded
hubspot.marketing.emails: PublicFontStyle
Fields
- size? Signed32 -
- color? string -
- underline? boolean -
- bold? boolean -
- italic? boolean -
- font? string -
hubspot.marketing.emails: PublicRssEmailDetails
RSS related data if it is a blog or rss email
Fields
- blogImageMaxWidth? Signed32 -
- blogEmailType? string -
- hubspotBlogId? string -
- rssEntryTemplate? string -
- timing? record { record {}... } -
- maxEntries? Signed32 -
- useHeadlineAsSubject? boolean -
- blogLayout? string -
- url? string -
hubspot.marketing.emails: PublicWebversionDetails
Fields
- domain? string -
- redirectToPageId? string -
- isPageRedirected? boolean -
- redirectToUrl? string -
- title? string -
- metaDescription? string -
- pageExpiryEnabled? boolean -
- slug? string -
- url? string -
- expiresAt? string -
hubspot.marketing.emails: SmartEmailField
An email field whose value is controlled by one or more smart rules
hubspot.marketing.emails: VersionPublicEmail
Model definition for a marketing email version. Contains metadata describing the version of the marketing email. It can be used to view edit history of a marketing email
Fields
- id string - ID of this marketing email version
- user VersionUser - Model definition for a version user. Contains addition information about the user who created a version
- updated string -
- 'object PublicEmail - A marketing email
hubspot.marketing.emails: VersionUser
Model definition for a version user. Contains addition information about the user who created a version
Fields
- fullName string - The user's full name
- id string - The user ID
- email string - The user email
Import
import ballerinax/hubspot.marketing.emails;Other versions
1.0.0
0.1.0Metadata
Released date: 14 days ago
Version: 1.0.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.12.2
GraalVM compatible: Yes
Pull count
Total: 11
Current verison: 0
Weekly downloads
Keywords
marketing
emails
Vendor/HubSpot
Area/CRM
Type/Connector
Contributors