{ "openapi" : "3.0.1", "info" : { "title" : "Marketing Emails V3", "version" : "v3", "x-hubspot-product-tier-requirements" : { "marketing" : "FREE", "sales" : "FREE", "service" : "FREE", "cms" : "FREE" }, "x-hubspot-api-use-case" : "You want to programmatically create marketing emails, then retrieve their send statistics at a later time.", "x-hubspot-related-documentation" : [ { "name" : "Marketing Emails Guide", "url" : "https://developers.hubspot.com/docs/guides/api/marketing/emails/marketing-emails" } ], "x-hubspot-introduction" : "Use the marketing email API to create, manage, and retrieve details about marketing emails. You can also this use API to retrieve statistics related to email sends, similar to what you can see in HubSpot." }, "servers" : [ { "url" : "https://api.hubapi.com" } ], "tags" : [ { "name" : "Public_VNext_Emails" }, { "name" : "Marketing Emails" }, { "name" : "Statistics" } ], "paths" : { "/marketing/v3/emails/statistics/list" : { "get" : { "tags" : [ "Statistics" ], "summary" : "Get aggregated statistics", "description" : "Use this endpoint to get aggregated statistics of emails sent in a specified time span. It also returns the list of emails that were sent during the time span.", "operationId" : "get-/marketing/v3/emails/statistics/list", "parameters" : [ ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/AggregateEmailStatistics" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/publish" : { "post" : { "tags" : [ "Public_VNext_Emails" ], "operationId" : "post-/marketing/v3/emails/{emailId}/publish", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "marketing-email" ] }, { "private_apps" : [ "marketing-email" ] }, { "oauth2" : [ "transactional-email" ] }, { "private_apps" : [ "transactional-email" ] } ], "x-hubspot-rate-limit-exemptions" : [ "ten-secondly" ] } }, "/marketing/v3/emails/ab-test/create-variation" : { "post" : { "tags" : [ "Public_VNext_Emails" ], "summary" : "Create an A/B test variation", "description" : "Create a new variation for an email A/B test", "operationId" : "post-/marketing/v3/emails/ab-test/create-variation", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/AbTestCreateRequestVNext" } } }, "required" : true }, "responses" : { "201" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/statistics/histogram" : { "get" : { "tags" : [ "Statistics" ], "summary" : "Get aggregated statistic intervals", "description" : "Get aggregated statistics in intervals for a specified time span. Each interval contains aggregated statistics of the emails that were sent in that time.", "operationId" : "get-/marketing/v3/emails/statistics/histogram", "parameters" : [ ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/CollectionResponseWithTotalEmailStatisticIntervalNoPaging" }, "example" : { "results" : [ { "aggregateStatistic" : { "counters" : { "bounce" : 0, "click" : 8, "contactslost" : 0, "delivered" : 704, "dropped" : 1, "hardbounced" : 0, "notsent" : 1, "open" : 443, "pending" : 0, "selected" : 705, "sent" : 704, "softbounced" : 0, "spamreport" : 0, "suppressed" : 0, "unsubscribed" : 0 }, "deviceBreakdown" : { "click_device_type" : { "computer" : 6, "mobile" : 2, "unknown" : 0 }, "open_device_type" : { "computer" : 44, "mobile" : 8, "unknown" : 391 } }, "qualifierStats" : { }, "ratios" : { "bounceratio" : 0, "clickratio" : 1.136, "clickthroughratio" : 1.806, "contactslostratio" : 0, "deliveredratio" : 100, "hardbounceratio" : 0, "notsentratio" : 0.142, "openratio" : 62.926, "pendingratio" : 0, "softbounceratio" : 0, "spamreportratio" : 0, "unsubscribedratio" : 0 } }, "interval" : { "end" : "2020-06-01T04:00:00Z", "start" : "2020-05-01T04:00:00Z" } }, { "aggregations" : { "counters" : { "bounce" : 1, "click" : 0, "contactslost" : 1, "delivered" : 4, "dropped" : 1, "hardbounced" : 1, "notsent" : 1, "open" : 4, "pending" : 0, "selected" : 6, "sent" : 5, "softbounced" : 0, "spamreport" : 0, "suppressed" : 0, "unsubscribed" : 0 }, "deviceBreakdown" : { "click_device_type" : { "computer" : 0, "mobile" : 0, "unknown" : 0 }, "open_device_type" : { "computer" : 0, "mobile" : 0, "unknown" : 4 } }, "qualifierStats" : { }, "ratios" : { "bounceratio" : 20, "clickratio" : 0, "clickthroughratio" : 0, "contactslostratio" : 20, "deliveredratio" : 80, "hardbounceratio" : 20, "notsentratio" : 16.667, "openratio" : 100, "pendingratio" : 0, "softbounceratio" : 0, "spamreportratio" : 0, "unsubscribedratio" : 0 } }, "interval" : { "end" : "2020-07-01T04:00:00Z", "start" : "2020-06-01T04:00:00Z" } }, { "aggregations" : { "counters" : { }, "deviceBreakdown" : { }, "qualifierStats" : { }, "ratios" : { } }, "interval" : { "end" : "2020-07-02T00:00:00Z", "start" : "2020-07-01T04:00:00Z" } } ], "total" : 3 } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/ab-test/get-variation" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get the variation of a an A/B marketing email", "description" : "This endpoint lets you obtain the variation of an A/B marketing email. If the email is variation A (master) it will return variation B (variant) and vice versa.", "operationId" : "get-/marketing/v3/emails/{emailId}/ab-test/get-variation", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/draft/reset" : { "post" : { "tags" : [ "Marketing Emails" ], "summary" : "Reset Draft", "description" : "Resets the draft back to a copy of the live object.", "operationId" : "post-/marketing/v3/emails/{emailId}/draft/reset", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft" : { "post" : { "tags" : [ "Marketing Emails" ], "summary" : "Restore a revision of a marketing email to DRAFT state", "description" : "Restores a previous revision of a marketing email to DRAFT state. If there is currently something in the draft for that object, it is overwritten. ", "operationId" : "post-/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } }, { "name" : "revisionId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/draft" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get draft version of a marketing email", "description" : "Get the draft version of an email (if it exists). If no draft version exists, the published email is returned.", "operationId" : "get-/marketing/v3/emails/{emailId}/draft", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] }, "patch" : { "tags" : [ "Marketing Emails" ], "summary" : "Create or update draft version", "description" : "Create or update the draft version of a marketing email. If no draft exists, the system creates a draft from the current “live” email then applies the request body to that draft. The draft version only lives on the buffer—the email is not cloned.", "operationId" : "patch-/marketing/v3/emails/{emailId}/draft", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "requestBody" : { "description" : "A marketing email object with properties that should overwrite the corresponding properties in the email's current draft.", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/EmailUpdateRequest" } } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/revisions" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get revisions of a marketing email", "description" : "Get a list of all versions of a marketing email, with each entry including the full state of that particular version. The current revision has the ID -1.", "operationId" : "get-/marketing/v3/emails/{emailId}/revisions", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/CollectionResponseWithTotalVersionPublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/unpublish" : { "post" : { "tags" : [ "Public_VNext_Emails" ], "operationId" : "post-/marketing/v3/emails/{emailId}/unpublish", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "style" : "simple", "explode" : false, "schema" : { "type" : "string" } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "marketing-email" ] }, { "private_apps" : [ "marketing-email" ] }, { "oauth2" : [ "transactional-email" ] }, { "private_apps" : [ "transactional-email" ] } ], "x-hubspot-rate-limit-exemptions" : [ "ten-secondly" ] } }, "/marketing/v3/emails/{emailId}/revisions/{revisionId}" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get a revision of a marketing email.", "description" : "Get a specific revision of a marketing email.", "operationId" : "get-/marketing/v3/emails/{emailId}/revisions/{revisionId}", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } }, { "name" : "revisionId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/VersionPublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/clone" : { "post" : { "tags" : [ "Public_VNext_Emails" ], "summary" : "Clone an email", "description" : "Clone an existing email", "operationId" : "post-/marketing/v3/emails/clone", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/EmailCloneRequestVNext" } } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get all marketing emails for a HubSpot account.", "description" : "The results can be filtered, allowing you to find a specific set of emails. See the table below for a full list of filtering options.", "operationId" : "get-/marketing/v3/emails/", "parameters" : [ ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/CollectionResponseWithTotalPublicEmailForwardPaging" }, "example" : { "paging" : { "next" : { "after" : "MjA%3D", "link" : "https://api.hubapi.com/marketing/v3/emails/emails?after=MjA%3D" }, "prev" : { "before" : "MTA%3D", "link" : "https://api.hubapi.com/marketing/v3/emails/emails?after=MTA%3D" } }, "results" : [ { "activeDomain" : "", "archived" : false, "content" : { "templatePath" : "generated_layouts/4701002617.html", "widgets" : { "Social_Sharing" : { "body" : { }, "child_css" : { }, "css" : { }, "id" : "Social_Sharing", "label" : "Social Sharing", "name" : "Social_Sharing", "type" : "social_sharing" }, "column1" : { "body" : { "html" : "" }, "child_css" : { }, "css" : { }, "id" : "column1", "label" : "Column Above Body", "name" : "column1", "type" : "rich_text" }, "hs_email_body" : { "body" : { "html" : "

Hi {{contact.firstname}},

\n

This is an example of an email in HubSpot. You can add and format text, include your own images, and even personalize the message with details about the recipient, like their {{contact.company}} or {{contact.city}}.

\n

In HubSpot, the Email tool is closely linked with the Lists and Workflows tools. You can create a list of recipients on the \"Sending\" tab up above. If you want this email to be part of a nurturing series, you can make it part of a workflow.

\n

Need help? Check out the documentation on creating an email, creating a list, or creating a workflow.

" }, "child_css" : { }, "css" : { }, "id" : "hs_email_body", "label" : "Main Email Body", "name" : "hs_email_body", "type" : "rich_text" }, "logo_image" : { "body" : { "alt" : "vast.png", "height" : 135, "link" : "", "override_inherited_src" : false, "src" : "", "suppress_company_name" : false, "width" : 413 }, "child_css" : { }, "css" : { }, "id" : "logo_image", "label" : "Logo", "name" : "logo_image", "type" : "logo" }, "module_148465958537693" : { "body" : { "html" : "

Something Powerful

\n

Tell The Reader More

\n

The headline and subheader tells us what you're offering, and the form header closes the deal. Over here you can explain why your offer is so great it's worth filling out a form for.

\n

Remember:

\n" }, "child_css" : { }, "css" : { }, "id" : "module_148465958537693", "label" : "Rich Text", "name" : "module_148465958537693", "type" : "rich_text" }, "preview_text" : { "body" : { "value" : "" }, "child_css" : { }, "css" : { }, "id" : "preview_text", "label" : "Preview Text This will be used as the preview text that displays in some email clients", "name" : "preview_text", "type" : "text" }, "social_sharing_label" : { "body" : { }, "child_css" : { }, "css" : { }, "id" : "social_sharing_label", "label" : "Social Sharing Label", "name" : "social_sharing_label", "type" : "text" } } }, "createdAt" : "2017-02-16T13:05:18.390Z", "createdById" : 2983922, "from" : { "fromName" : "Bruce Wayne", "replyTo" : "test@yahoo.com" }, "id" : "4613448134", "isPublished" : true, "isTransactional" : false, "name" : "Fail dmarc", "sendOnPublish" : true, "state" : "PUBLISHED", "stats" : { "counters" : { "bounce" : 1, "click" : 0, "contactslost" : 0, "delivered" : 0, "dropped" : 0, "hardbounced" : 0, "notsent" : 0, "open" : 0, "pending" : 0, "reply" : 0, "selected" : 1, "sent" : 1, "softbounced" : 1, "spamreport" : 0, "suppressed" : 0, "unsubscribed" : 0 }, "deviceBreakdown" : { "click_device_type" : { "computer" : 0, "mobile" : 0, "unknown" : 0 }, "open_device_type" : { "computer" : 0, "mobile" : 0, "unknown" : 0 } }, "qualifierStats" : { }, "ratios" : { "bounceratio" : 100, "clickratio" : 0, "clickthroughratio" : 0, "contactslostratio" : 0, "deliveredratio" : 0, "hardbounceratio" : 0, "notsentratio" : 0, "openratio" : 0, "pendingratio" : 0, "replyratio" : 0, "softbounceratio" : 100, "spamreportratio" : 0, "unsubscribedratio" : 0 } }, "subcategory" : "batch", "subject" : "Subject", "subscriptionDetails" : { "officeLocationId" : "4701002382", "subscriptionId" : 1264909 }, "to" : { "contactIds" : { "include" : [ 51 ] }, "contactIlsLists" : { }, "suppressGraymail" : true }, "type" : "BATCH_EMAIL", "updatedAt" : "2017-02-16T13:08:24.853Z", "updatedById" : 2983922 } ], "total" : 1 } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] }, "post" : { "tags" : [ "Marketing Emails" ], "summary" : "Create a new marketing email.", "description" : "Use this endpoint to create a new marketing email.", "operationId" : "post-/marketing/v3/emails/", "parameters" : [ ], "requestBody" : { "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/EmailCreateRequest" } } }, "required" : true }, "responses" : { "201" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore" : { "post" : { "tags" : [ "Marketing Emails" ], "summary" : "Restore a revision of a marketing email", "description" : "Restores a previous revision of a marketing email. The current revision becomes old, and the restored revision is given a new version number.", "operationId" : "post-/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } }, { "name" : "revisionId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } }, "/marketing/v3/emails/{emailId}" : { "get" : { "tags" : [ "Marketing Emails" ], "summary" : "Get the details of a specified marketing email.", "description" : "Get the details for a marketing email.", "operationId" : "get-/marketing/v3/emails/{emailId}", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] }, "delete" : { "tags" : [ "Marketing Emails" ], "summary" : "Delete an email", "description" : "Delete an existing marketing email.", "operationId" : "delete-/marketing/v3/emails/{emailId}", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "responses" : { "204" : { "description" : "No content", "content" : { } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] }, "patch" : { "tags" : [ "Marketing Emails" ], "summary" : "Update a marketing email.", "description" : "Change properties of a marketing email.", "operationId" : "patch-/marketing/v3/emails/{emailId}", "parameters" : [ { "name" : "emailId", "in" : "path", "required" : true, "schema" : { "pattern" : ".+", "type" : "string" } } ], "requestBody" : { "description" : "A marketing email object with properties that should overwrite the corresponding properties of the marketing email.", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/EmailUpdateRequest" } } }, "required" : true }, "responses" : { "200" : { "description" : "successful operation", "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/PublicEmail" } } } }, "default" : { "$ref" : "#/components/responses/Error" } }, "security" : [ { "oauth2" : [ "content" ] }, { "private_apps" : [ "content" ] } ] } } }, "components" : { "schemas" : { "PublicEmailToDetails" : { "type" : "object", "properties" : { "contactIlsLists" : { "$ref" : "#/components/schemas/PublicEmailRecipients" }, "limitSendFrequency" : { "type" : "boolean" }, "suppressGraymail" : { "type" : "boolean" }, "contactIds" : { "$ref" : "#/components/schemas/PublicEmailRecipients" }, "contactLists" : { "$ref" : "#/components/schemas/PublicEmailRecipients" } }, "description" : "Data structure representing the to fields of the email." }, "PublicDividerStyleSettings" : { "type" : "object", "properties" : { "height" : { "type" : "integer", "format" : "int32" }, "color" : { "type" : "object", "properties" : { } }, "lineType" : { "type" : "string" } } }, "CollectionResponseWithTotalVersionPublicEmail" : { "required" : [ "results", "total" ], "type" : "object", "properties" : { "total" : { "type" : "integer", "description" : "Total number of content emails.", "format" : "int32" }, "paging" : { "$ref" : "#/components/schemas/Paging" }, "results" : { "type" : "array", "description" : "Collection of emails.", "items" : { "$ref" : "#/components/schemas/VersionPublicEmail" } } }, "description" : "Response object for collections of marketing emails with pagination information." }, "PublicEmail" : { "type" : "object", "properties" : { "feedbackSurveyId" : { "type" : "string", "description" : "The ID of the feedback survey linked to the email." }, "subject" : { "type" : "string", "description" : "The subject of the email." }, "publishedByEmail" : { "type" : "string" }, "publishDate" : { "type" : "string", "description" : "The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails.", "format" : "date-time" }, "isTransactional" : { "type" : "boolean", "description" : "Returns whether the email is a transactional email or not. This is read only." }, "language" : { "type" : "string", "enum" : [ "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-eg", "en-er", "en-es", "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-tn", "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-sn", "fi", "fil", "fil-ph", "fi-fi", "fo", "fo-dk", "fo-fo", "fr", "frr", "frr-de", "fr-be", "fr-bf", "fr-bi", "fr-bj", "fr-bl", "fr-ca", "fr-cd", "fr-cf", "fr-cg", "fr-ch", "fr-ci", "fr-cm", "fr-dj", "fr-dz", "fr-fr", "fr-ga", "fr-gf", "fr-gn", "fr-gp", "fr-gq", "fr-ht", "fr-km", "fr-lu", "fr-ma", "fr-mc", "fr-mf", "fr-mg", "fr-ml", "fr-mq", "fr-mr", "fr-mu", "fr-nc", "fr-ne", "fr-pf", "fr-pm", "fr-re", "fr-rw", "fr-sc", "fr-sn", "fr-sy", "fr-td", "fr-tg", "fr-tn", "fr-vu", "fr-wf", "fr-yt", "fur", "fur-it", "fy", "fy-nl", "ga", "ga-gb", "ga-ie", "gd", "gd-gb", "gl", "gl-es", "gsw", "gsw-ch", "gsw-fr", "gsw-li", "gu", "guz", "guz-ke", "gu-in", "gv", "gv-im", "ha", "haw", "haw-us", "ha-gh", "ha-ne", "ha-ng", "he", "he-il", "hi", "hi-in", "hr", "hr-ba", "hr-hr", "hsb", "hsb-de", "hu", "hu-hu", "hy", "hy-am", "ia", "ia-001", "id", "ig", "ig-ng", "ii", "ii-cn", "id-id", "is", "is-is", "it", "it-ch", "it-it", "it-sm", "it-va", "ja", "ja-jp", "jgo", "jgo-cm", "yi", "yi-001", "jmc", "jmc-tz", "jv", "jv-id", "ka", "kab", "kab-dz", "kam", "kam-ke", "ka-ge", "kde", "kde-tz", "kea", "kea-cv", "kgp", "kgp-br", "khq", "khq-ml", "ki", "ki-ke", "kk", "kkj", "kkj-cm", "kk-kz", "kl", "kln", "kln-ke", "kl-gl", "km", "km-kh", "kn", "kn-in", "ko", "kok", "kok-in", "ko-kp", "ko-kr", "ks", "ksb", "ksb-tz", "ksf", "ksf-cm", "ksh", "ksh-de", "ks-in", "ku", "ku-tr", "kw", "kw-gb", "ky", "ky-kg", "lag", "lag-tz", "lb", "lb-lu", "lg", "lg-ug", "lkt", "lkt-us", "ln", "ln-ao", "ln-cd", "ln-cf", "ln-cg", "lo", "lo-la", "lrc", "lrc-iq", "lrc-ir", "lt", "lt-lt", "lu", "luo", "luo-ke", "luy", "luy-ke", "lu-cd", "lv", "lv-lv", "mai", "mai-in", "mas", "mas-ke", "mas-tz", "mdf", "mdf-ru", "mer", "mer-ke", "mfe", "mfe-mu", "mg", "mgh", "mgh-mz", "mgo", "mgo-cm", "mg-mg", "mi", "mi-nz", "mk", "mk-mk", "ml", "ml-in", "mn", "mni", "mni-in", "mn-mn", "mr", "mr-in", "ms", "ms-bn", "ms-id", "ms-my", "ms-sg", "mt", "mt-mt", "mua", "mua-cm", "my", "my-mm", "mzn", "mzn-ir", "naq", "naq-na", "nb", "nb-no", "nb-sj", "nd", "nds", "nds-de", "nds-nl", "nd-zw", "ne", "ne-in", "ne-np", "nl", "nl-aw", "nl-be", "nl-bq", "nl-ch", "nl-cw", "nl-lu", "nl-nl", "nl-sr", "nl-sx", "nmg", "nmg-cm", "nn", "nnh", "nnh-cm", "nn-no", "no", "no-no", "nus", "nus-ss", "nyn", "nyn-ug", "oc", "oc-es", "oc-fr", "om", "om-et", "om-ke", "or", "or-in", "os", "os-ge", "os-ru", "pa", "pa-in", "pa-pk", "pcm", "pcm-ng", "pis", "pis-sb", "pl", "pl-pl", "prg", "prg-001", "ps", "ps-af", "ps-pk", "pt", "pt-ao", "pt-br", "pt-ch", "pt-cv", "pt-gq", "pt-gw", "pt-lu", "pt-mo", "pt-mz", "pt-pt", "pt-st", "pt-tl", "qu", "qu-bo", "qu-ec", "qu-pe", "raj", "raj-in", "rm", "rm-ch", "rn", "rn-bi", "ro", "rof", "rof-tz", "ro-md", "ro-ro", "ru", "ru-by", "ru-kg", "ru-kz", "ru-md", "ru-ru", "ru-ua", "rw", "rwk", "rwk-tz", "rw-rw", "sa", "sah", "sah-ru", "saq", "saq-ke", "sat", "sat-in", "sa-in", "sbp", "sbp-tz", "sc", "sc-it", "sd", "sd-in", "sd-pk", "se", "seh", "seh-mz", "ses", "ses-ml", "se-fi", "se-no", "se-se", "sg", "sg-cf", "shi", "shi-ma", "si", "si-lk", "sk", "sk-sk", "sl", "sl-si", "smn", "smn-fi", "sms", "sms-fi", "sn", "sn-zw", "so", "so-dj", "so-et", "so-ke", "so-so", "sq", "sq-al", "sq-mk", "sq-xk", "sr", "sr-ba", "sr-cs", "sr-me", "sr-rs", "sr-xk", "su", "su-id", "sv", "sv-ax", "sv-fi", "sv-se", "sw", "sw-cd", "sw-ke", "sw-tz", "sw-ug", "sy", "ta", "ta-in", "ta-lk", "ta-my", "ta-sg", "te", "teo", "teo-ke", "teo-ug", "te-in", "tg", "tg-tj", "th", "th-th", "ti", "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" : { "type" : "string", "description" : "The email type, this is derived from other properties on the email such as subcategory.", "enum" : [ "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" ] }, "campaignUtm" : { "type" : "string" }, "content" : { "$ref" : "#/components/schemas/PublicEmailContent" }, "businessUnitId" : { "type" : "string" }, "webversion" : { "$ref" : "#/components/schemas/PublicWebversionDetails" }, "workflowNames" : { "type" : "array", "items" : { "type" : "string" } }, "archived" : { "type" : "boolean", "description" : "Determines if the email is archived or not." }, "publishedByName" : { "type" : "string" }, "createdAt" : { "type" : "string", "description" : "The date and time of the email's creation, in ISO8601 representation.", "format" : "date-time" }, "unpublishedAt" : { "type" : "string", "format" : "date-time" }, "stats" : { "$ref" : "#/components/schemas/EmailStatisticsData" }, "jitterSendTime" : { "type" : "boolean" }, "from" : { "$ref" : "#/components/schemas/PublicEmailFromDetails" }, "allEmailCampaignIds" : { "type" : "array", "items" : { "type" : "string" } }, "isAb" : { "type" : "boolean" }, "id" : { "type" : "string", "description" : "The email ID." }, "state" : { "type" : "string", "description" : "The email state.", "enum" : [ "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", "AGENT_GENERATED" ] }, "primaryEmailCampaignId" : { "type" : "string" }, "createdById" : { "type" : "string", "description" : "The id of the user who created the email." }, "updatedAt" : { "type" : "string", "description" : "The date and time of the last update to the email, in ISO8601 representation.", "format" : "date-time" }, "clonedFrom" : { "type" : "string" }, "rssData" : { "$ref" : "#/components/schemas/PublicRssEmailDetails" }, "publishedAt" : { "type" : "string", "description" : "The date and time the email was published at, in ISO8601 representation.", "format" : "date-time" }, "publishedById" : { "type" : "string" }, "isPublished" : { "type" : "boolean", "description" : "Returns the published status of the email. This is read only." }, "testing" : { "$ref" : "#/components/schemas/PublicEmailTestingDetails" }, "updatedById" : { "type" : "string", "description" : "The id of the user who last updated the email." }, "folderId" : { "type" : "integer", "format" : "int64" }, "emailCampaignGroupId" : { "type" : "string" }, "subscriptionDetails" : { "$ref" : "#/components/schemas/PublicEmailSubscriptionDetails" }, "deletedAt" : { "type" : "string", "format" : "date-time" }, "previewKey" : { "type" : "string" }, "name" : { "type" : "string", "description" : "The name of the email, as displayed on the email dashboard." }, "activeDomain" : { "type" : "string", "description" : "The active domain of the email." }, "campaign" : { "type" : "string", "description" : "The ID of the campaign this email is associated to." }, "to" : { "$ref" : "#/components/schemas/PublicEmailToDetails" }, "subcategory" : { "type" : "string", "description" : "The email subcategory." }, "campaignName" : { "type" : "string" }, "sendOnPublish" : { "type" : "boolean", "description" : "Determines whether the email will be sent immediately on publish." } }, "description" : "A marketing email", "example" : { "activeDomain" : "test.hs-sites.com", "archived" : false, "campaign" : "1b7f51a6-33c1-44d6-ba28-fe81f655dced", "content" : { "flexAreas" : { "main" : { "boxed" : false, "isSingleColumnFullWidth" : false, "sections" : [ { "columns" : [ { "id" : "column_1606761806181_0", "widgets" : [ "module_160676180617911" ], "width" : 12 } ], "id" : "section_1606761806181", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT" } }, { "columns" : [ { "id" : "column-0-1", "widgets" : [ "module-0-1-1" ], "width" : 12 } ], "id" : "section-0", "style" : { "backgroundType" : "CONTENT", "paddingBottom" : "40px", "paddingTop" : "40px" } }, { "columns" : [ { "id" : "column-1-1", "widgets" : [ "module-1-1-1" ], "width" : 12 } ], "id" : "section-1", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT", "paddingBottom" : "0px", "paddingTop" : "0px" } } ] } }, "plainTextVersion" : "This is custom! View in browser ({{view_as_page_url}})\n\nHello {{ contact.firstname }},\n\nPlain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.\n\nEvery email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.\n\nLink text\n\nNow it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.\n\nAll the best,\n\nYour full name\n\nYour job title\n\nOther contact information\n\n{{site_settings.company_name}}, {{site_settings.company_street_address_1}}, {{site_settings.company_street_address_2}}, {{site_settings.company_city}}, {{site_settings.company_state}} {{site_settings.company_zip}}, {{site_settings.company_country}}, {{site_settings.company_phone}}\n\nUnsubscribe ({{unsubscribe_link_all}})\n\nManage preferences ({{unsubscribe_link}})", "styleSettings" : { }, "templatePath" : "@hubspot/email/dnd/plain_text.html", "widgets" : { "module-0-1-1" : { "body" : { "css_class" : "dnd-module", "html" : "

Hello {{ contact.firstname }},

Plain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.

Every email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.

Link text

Now it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.

All the best,
Your full name
Your job title
Other contact information

", "i18nKey" : "richText.plainText", "path" : "@hubspot/rich_text", "schema_version" : 2 }, "child_css" : { }, "css" : { }, "id" : "module-0-1-1", "module_id" : 1155639, "name" : "module-0-1-1", "order" : 2, "styles" : { }, "type" : "module" }, "module-1-1-1" : { "body" : { "align" : "center", "css_class" : "dnd-module", "font" : { "color" : "#23496d", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 } }, "link_font" : { "color" : "#00a4bd", "font" : "Helvetica,Arial,sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "path" : "@hubspot/email_footer", "schema_version" : 2, "unsubscribe_link_type" : "both" }, "child_css" : { }, "css" : { }, "id" : "module-1-1-1", "module_id" : 2869621, "name" : "module-1-1-1", "order" : 3, "styles" : { }, "type" : "module" }, "module_160676180617911" : { "body" : { "font" : { "color" : "#00a4bd", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "hs_enable_module_padding" : false, "hs_wrapper_css" : { } }, "child_css" : { }, "css" : { }, "id" : "module_160676180617911", "module_id" : 2794854, "name" : "module_160676180617911", "styles" : { }, "type" : "module" }, "preview_text" : { "body" : { "value" : "" }, "child_css" : { }, "css" : { }, "id" : "preview_text", "label" : "Preview Text This will be used as the preview text that displays in some email clients", "name" : "preview_text", "order" : 0, "styles" : { }, "type" : "text" } } }, "createdAt" : "2020-11-30T18:43:17.136Z", "createdById" : 3739732, "from" : { "fromName" : "Bruce Wayne", "replyTo" : "test@hubspot.com" }, "id" : "38175169118", "isPublished" : false, "isTransactional" : false, "language" : "en", "name" : "My subject", "publishDate" : "2020-11-30T18:44:20.387Z", "sendOnPublish" : true, "state" : "DRAFT", "subcategory" : "batch", "subject" : "My subject", "subscriptionDetails" : { "officeLocationId" : "5449392956" }, "to" : { "contactIds" : { }, "contactIlsLists" : { "exclude" : [ 1 ], "include" : [ 5 ] }, "suppressGraymail" : true }, "type" : "BATCH_EMAIL", "updatedAt" : "2020-11-30T18:44:20.384Z", "updatedById" : 3739732, "webversion" : { "expiresAt" : "2020-11-30T18:44:20.387Z", "metaDescription" : "", "redirectToPageId" : 0, "redirectToUrl" : "http://www.example.org" } } }, "AbTestCreateRequestVNext" : { "required" : [ "contentId", "variationName" ], "type" : "object", "properties" : { "variationName" : { "type" : "string" }, "contentId" : { "type" : "string", "description" : "ID of the object to test." } }, "description" : "Request body object for creating A/B tests.", "example" : { "contentId" : "7", "variantName" : "AB Test - Number 7" } }, "EmailStatisticInterval" : { "required" : [ "aggregations", "interval" ], "type" : "object", "properties" : { "interval" : { "$ref" : "#/components/schemas/Interval" }, "aggregations" : { "$ref" : "#/components/schemas/EmailStatisticsData" } } }, "ErrorDetail" : { "required" : [ "message" ], "type" : "object", "properties" : { "subCategory" : { "type" : "string", "description" : "A specific category that contains more specific detail about the error" }, "code" : { "type" : "string", "description" : "The status code associated with the error detail" }, "in" : { "type" : "string", "description" : "The name of the field or parameter in which the error was found." }, "context" : { "type" : "object", "additionalProperties" : { "type" : "array", "items" : { "type" : "string" } }, "description" : "Context about the error condition", "example" : "{\"missingScopes\":[\"scope1\",\"scope2\"]}" }, "message" : { "type" : "string", "description" : "A human readable message describing the error along with remediation steps where appropriate" } } }, "CollectionResponseWithTotalPublicEmailForwardPaging" : { "required" : [ "results", "total" ], "type" : "object", "properties" : { "total" : { "type" : "integer", "description" : "Total number of content emails.", "format" : "int32" }, "paging" : { "$ref" : "#/components/schemas/ForwardPaging" }, "results" : { "type" : "array", "description" : "Collection of emails.", "items" : { "$ref" : "#/components/schemas/PublicEmail" } } }, "description" : "Response object for collections of marketing emails with pagination information." }, "ForwardPaging" : { "type" : "object", "properties" : { "next" : { "$ref" : "#/components/schemas/NextPage" } } }, "PublicButtonStyleSettings" : { "type" : "object", "properties" : { "backgroundColor" : { "type" : "object", "properties" : { } }, "cornerRadius" : { "type" : "integer", "format" : "int32" }, "fontStyle" : { "$ref" : "#/components/schemas/PublicFontStyle" } } }, "EmailUpdateRequest" : { "type" : "object", "properties" : { "rssData" : { "$ref" : "#/components/schemas/PublicRssEmailDetails" }, "subject" : { "type" : "string", "description" : "The subject of the email." }, "testing" : { "$ref" : "#/components/schemas/PublicEmailTestingDetails" }, "publishDate" : { "type" : "string", "description" : "The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails.", "format" : "date-time" }, "language" : { "type" : "string", "enum" : [ "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-eg", "en-er", "en-es", "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-tn", "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-sn", "fi", "fil", "fil-ph", "fi-fi", "fo", "fo-dk", "fo-fo", "fr", "frr", "frr-de", "fr-be", "fr-bf", "fr-bi", "fr-bj", "fr-bl", "fr-ca", "fr-cd", "fr-cf", "fr-cg", "fr-ch", "fr-ci", "fr-cm", "fr-dj", "fr-dz", "fr-fr", "fr-ga", "fr-gf", "fr-gn", "fr-gp", "fr-gq", "fr-ht", "fr-km", "fr-lu", "fr-ma", "fr-mc", "fr-mf", "fr-mg", "fr-ml", "fr-mq", "fr-mr", "fr-mu", "fr-nc", "fr-ne", "fr-pf", "fr-pm", "fr-re", "fr-rw", "fr-sc", "fr-sn", "fr-sy", "fr-td", "fr-tg", "fr-tn", "fr-vu", "fr-wf", "fr-yt", "fur", "fur-it", "fy", "fy-nl", "ga", "ga-gb", "ga-ie", "gd", "gd-gb", "gl", "gl-es", "gsw", "gsw-ch", "gsw-fr", "gsw-li", "gu", "guz", "guz-ke", "gu-in", "gv", "gv-im", "ha", "haw", "haw-us", "ha-gh", "ha-ne", "ha-ng", "he", "he-il", "hi", "hi-in", "hr", "hr-ba", "hr-hr", "hsb", "hsb-de", "hu", "hu-hu", "hy", "hy-am", "ia", "ia-001", "id", "ig", "ig-ng", "ii", "ii-cn", "id-id", "is", "is-is", "it", "it-ch", "it-it", "it-sm", "it-va", "ja", "ja-jp", "jgo", "jgo-cm", "yi", "yi-001", "jmc", "jmc-tz", "jv", "jv-id", "ka", "kab", "kab-dz", "kam", "kam-ke", "ka-ge", "kde", "kde-tz", "kea", "kea-cv", "kgp", "kgp-br", "khq", "khq-ml", "ki", "ki-ke", "kk", "kkj", "kkj-cm", "kk-kz", "kl", "kln", "kln-ke", "kl-gl", "km", "km-kh", "kn", "kn-in", "ko", "kok", "kok-in", "ko-kp", "ko-kr", "ks", "ksb", "ksb-tz", "ksf", "ksf-cm", "ksh", "ksh-de", "ks-in", "ku", "ku-tr", "kw", "kw-gb", "ky", "ky-kg", "lag", "lag-tz", "lb", "lb-lu", "lg", "lg-ug", "lkt", "lkt-us", "ln", "ln-ao", "ln-cd", "ln-cf", "ln-cg", "lo", "lo-la", "lrc", "lrc-iq", "lrc-ir", "lt", "lt-lt", "lu", "luo", "luo-ke", "luy", "luy-ke", "lu-cd", "lv", "lv-lv", "mai", "mai-in", "mas", "mas-ke", "mas-tz", "mdf", "mdf-ru", "mer", "mer-ke", "mfe", "mfe-mu", "mg", "mgh", "mgh-mz", "mgo", "mgo-cm", "mg-mg", "mi", "mi-nz", "mk", "mk-mk", "ml", "ml-in", "mn", "mni", "mni-in", "mn-mn", "mr", "mr-in", "ms", "ms-bn", "ms-id", "ms-my", "ms-sg", "mt", "mt-mt", "mua", "mua-cm", "my", "my-mm", "mzn", "mzn-ir", "naq", "naq-na", "nb", "nb-no", "nb-sj", "nd", "nds", "nds-de", "nds-nl", "nd-zw", "ne", "ne-in", "ne-np", "nl", "nl-aw", "nl-be", "nl-bq", "nl-ch", "nl-cw", "nl-lu", "nl-nl", "nl-sr", "nl-sx", "nmg", "nmg-cm", "nn", "nnh", "nnh-cm", "nn-no", "no", "no-no", "nus", "nus-ss", "nyn", "nyn-ug", "oc", "oc-es", "oc-fr", "om", "om-et", "om-ke", "or", "or-in", "os", "os-ge", "os-ru", "pa", "pa-in", "pa-pk", "pcm", "pcm-ng", "pis", "pis-sb", "pl", "pl-pl", "prg", "prg-001", "ps", "ps-af", "ps-pk", "pt", "pt-ao", "pt-br", "pt-ch", "pt-cv", "pt-gq", "pt-gw", "pt-lu", "pt-mo", "pt-mz", "pt-pt", "pt-st", "pt-tl", "qu", "qu-bo", "qu-ec", "qu-pe", "raj", "raj-in", "rm", "rm-ch", "rn", "rn-bi", "ro", "rof", "rof-tz", "ro-md", "ro-ro", "ru", "ru-by", "ru-kg", "ru-kz", "ru-md", "ru-ru", "ru-ua", "rw", "rwk", "rwk-tz", "rw-rw", "sa", "sah", "sah-ru", "saq", "saq-ke", "sat", "sat-in", "sa-in", "sbp", "sbp-tz", "sc", "sc-it", "sd", "sd-in", "sd-pk", "se", "seh", "seh-mz", "ses", "ses-ml", "se-fi", "se-no", "se-se", "sg", "sg-cf", "shi", "shi-ma", "si", "si-lk", "sk", "sk-sk", "sl", "sl-si", "smn", "smn-fi", "sms", "sms-fi", "sn", "sn-zw", "so", "so-dj", "so-et", "so-ke", "so-so", "sq", "sq-al", "sq-mk", "sq-xk", "sr", "sr-ba", "sr-cs", "sr-me", "sr-rs", "sr-xk", "su", "su-id", "sv", "sv-ax", "sv-fi", "sv-se", "sw", "sw-cd", "sw-ke", "sw-tz", "sw-ug", "sy", "ta", "ta-in", "ta-lk", "ta-my", "ta-sg", "te", "teo", "teo-ke", "teo-ug", "te-in", "tg", "tg-tj", "th", "th-th", "ti", "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" ] }, "businessUnitId" : { "type" : "integer", "format" : "int64" }, "content" : { "$ref" : "#/components/schemas/PublicEmailContent" }, "webversion" : { "$ref" : "#/components/schemas/PublicWebversionDetails" }, "archived" : { "type" : "boolean", "description" : "Determines if the email is archived or not." }, "subscriptionDetails" : { "$ref" : "#/components/schemas/PublicEmailSubscriptionDetails" }, "activeDomain" : { "type" : "string", "description" : "The active domain of the email." }, "name" : { "type" : "string", "description" : "The name of the email, as displayed on the email dashboard." }, "campaign" : { "type" : "string", "description" : "The ID of the campaign this email is associated to." }, "from" : { "$ref" : "#/components/schemas/PublicEmailFromDetails" }, "jitterSendTime" : { "type" : "boolean" }, "state" : { "type" : "string", "description" : "The email state.", "enum" : [ "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", "AGENT_GENERATED" ] }, "to" : { "$ref" : "#/components/schemas/PublicEmailToDetails" }, "subcategory" : { "type" : "string", "description" : "The email subcategory.", "enum" : [ "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", "kb_404_page", "case_study", "case_study_listing", "case_study_instance_layout", "scp_static_page", "scp_instance_layout_page", "podcast_instance_layout", "podcast_listing", "blog_article_instance_layout", "blog_article_listing", "blog_author_detail", "UNKNOWN" ] }, "sendOnPublish" : { "type" : "boolean", "description" : "Determines whether the email will be sent immediately on publish." } }, "description" : "Properties of a marketing email you can update via the API.", "example" : { "activeDomain" : "test.hs-sites.com", "archived" : false, "campaign" : "1b7f51a6-33c1-44d6-ba28-fe81f655dced", "content" : { "flexAreas" : { "main" : { "boxed" : false, "isSingleColumnFullWidth" : false, "sections" : [ { "columns" : [ { "id" : "column_1606761806181_0", "widgets" : [ "module_160676180617911" ], "width" : 12 } ], "id" : "section_1606761806181", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT" } }, { "columns" : [ { "id" : "column-0-1", "widgets" : [ "module-0-1-1" ], "width" : 12 } ], "id" : "section-0", "style" : { "backgroundType" : "CONTENT", "paddingBottom" : "40px", "paddingTop" : "40px" } }, { "columns" : [ { "id" : "column-1-1", "widgets" : [ "module-1-1-1" ], "width" : 12 } ], "id" : "section-1", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT", "paddingBottom" : "0px", "paddingTop" : "0px" } } ] } }, "plainTextVersion" : "This is custom! View in browser ({{view_as_page_url}})\n\nHello {{ contact.firstname }},\n\nPlain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.\n\nEvery email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.\n\nLink text\n\nNow it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.\n\nAll the best,\n\nYour full name\n\nYour job title\n\nOther contact information\n\n{{site_settings.company_name}}, {{site_settings.company_street_address_1}}, {{site_settings.company_street_address_2}}, {{site_settings.company_city}}, {{site_settings.company_state}} {{site_settings.company_zip}}, {{site_settings.company_country}}, {{site_settings.company_phone}}\n\nUnsubscribe ({{unsubscribe_link_all}})\n\nManage preferences ({{unsubscribe_link}})", "styleSettings" : { }, "widgets" : { "module-0-1-1" : { "body" : { "css_class" : "dnd-module", "html" : "

Hello {{ contact.firstname }},

Plain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.

Every email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.

Link text

Now it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.

All the best,
Your full name
Your job title
Other contact information

", "i18nKey" : "richText.plainText", "path" : "@hubspot/rich_text", "schema_version" : 2 }, "child_css" : { }, "css" : { }, "id" : "module-0-1-1", "module_id" : 1155639, "name" : "module-0-1-1", "order" : 2, "styles" : { }, "type" : "module" }, "module-1-1-1" : { "body" : { "align" : "center", "css_class" : "dnd-module", "font" : { "color" : "#23496d", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 } }, "link_font" : { "color" : "#00a4bd", "font" : "Helvetica,Arial,sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "path" : "@hubspot/email_footer", "schema_version" : 2, "unsubscribe_link_type" : "both" }, "child_css" : { }, "css" : { }, "id" : "module-1-1-1", "module_id" : 2869621, "name" : "module-1-1-1", "order" : 3, "styles" : { }, "type" : "module" }, "module_160676180617911" : { "body" : { "font" : { "color" : "#00a4bd", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "hs_enable_module_padding" : false, "hs_wrapper_css" : { } }, "child_css" : { }, "css" : { }, "id" : "module_160676180617911", "module_id" : 2794854, "name" : "module_160676180617911", "styles" : { }, "type" : "module" }, "preview_text" : { "body" : { "value" : "" }, "child_css" : { }, "css" : { }, "id" : "preview_text", "label" : "Preview Text This will be used as the preview text that displays in some email clients", "name" : "preview_text", "order" : 0, "styles" : { }, "type" : "text" } } }, "createdAt" : "2020-11-30T18:43:17.136Z", "createdById" : 3739732, "from" : { "fromName" : "Bruce Wayne", "replyTo" : "test@hubspot.com" }, "name" : "My subject", "publishDate" : "2023-11-30T18:44:20.387Z", "sendOnPublish" : true, "state" : "DRAFT", "subcategory" : "batch", "subject" : "My subject", "subscriptionDetails" : { "officeLocationId" : "5449392956" }, "to" : { "contactIds" : { }, "contactIlsLists" : { "exclude" : [ 1 ], "include" : [ 5 ] }, "suppressGraymail" : true }, "webversion" : { "expiresAt" : "2020-11-30T18:44:20.387Z", "metaDescription" : "", "redirectToPageId" : 0, "redirectToUrl" : "http://www.example.org" } } }, "PublicEmailSubscriptionDetails" : { "type" : "object", "properties" : { "officeLocationId" : { "type" : "string", "description" : "ID of the selected office location." }, "subscriptionName" : { "type" : "string" }, "preferencesGroupId" : { "type" : "string" }, "subscriptionId" : { "type" : "string", "description" : "ID of the subscription." } }, "description" : "Data structure representing the subscription fields of the email." }, "EmailCreateRequest" : { "required" : [ "name" ], "type" : "object", "properties" : { "feedbackSurveyId" : { "type" : "string", "description" : "The ID of the feedback survey linked to the email." }, "rssData" : { "$ref" : "#/components/schemas/PublicRssEmailDetails" }, "subject" : { "type" : "string", "description" : "The subject of the email." }, "testing" : { "$ref" : "#/components/schemas/PublicEmailTestingDetails" }, "publishDate" : { "type" : "string", "description" : "The date and time the email is scheduled for, in ISO8601 representation. This is only used in local time or scheduled emails.", "format" : "date-time" }, "language" : { "type" : "string", "enum" : [ "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-eg", "en-er", "en-es", "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-tn", "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-sn", "fi", "fil", "fil-ph", "fi-fi", "fo", "fo-dk", "fo-fo", "fr", "frr", "frr-de", "fr-be", "fr-bf", "fr-bi", "fr-bj", "fr-bl", "fr-ca", "fr-cd", "fr-cf", "fr-cg", "fr-ch", "fr-ci", "fr-cm", "fr-dj", "fr-dz", "fr-fr", "fr-ga", "fr-gf", "fr-gn", "fr-gp", "fr-gq", "fr-ht", "fr-km", "fr-lu", "fr-ma", "fr-mc", "fr-mf", "fr-mg", "fr-ml", "fr-mq", "fr-mr", "fr-mu", "fr-nc", "fr-ne", "fr-pf", "fr-pm", "fr-re", "fr-rw", "fr-sc", "fr-sn", "fr-sy", "fr-td", "fr-tg", "fr-tn", "fr-vu", "fr-wf", "fr-yt", "fur", "fur-it", "fy", "fy-nl", "ga", "ga-gb", "ga-ie", "gd", "gd-gb", "gl", "gl-es", "gsw", "gsw-ch", "gsw-fr", "gsw-li", "gu", "guz", "guz-ke", "gu-in", "gv", "gv-im", "ha", "haw", "haw-us", "ha-gh", "ha-ne", "ha-ng", "he", "he-il", "hi", "hi-in", "hr", "hr-ba", "hr-hr", "hsb", "hsb-de", "hu", "hu-hu", "hy", "hy-am", "ia", "ia-001", "id", "ig", "ig-ng", "ii", "ii-cn", "id-id", "is", "is-is", "it", "it-ch", "it-it", "it-sm", "it-va", "ja", "ja-jp", "jgo", "jgo-cm", "yi", "yi-001", "jmc", "jmc-tz", "jv", "jv-id", "ka", "kab", "kab-dz", "kam", "kam-ke", "ka-ge", "kde", "kde-tz", "kea", "kea-cv", "kgp", "kgp-br", "khq", "khq-ml", "ki", "ki-ke", "kk", "kkj", "kkj-cm", "kk-kz", "kl", "kln", "kln-ke", "kl-gl", "km", "km-kh", "kn", "kn-in", "ko", "kok", "kok-in", "ko-kp", "ko-kr", "ks", "ksb", "ksb-tz", "ksf", "ksf-cm", "ksh", "ksh-de", "ks-in", "ku", "ku-tr", "kw", "kw-gb", "ky", "ky-kg", "lag", "lag-tz", "lb", "lb-lu", "lg", "lg-ug", "lkt", "lkt-us", "ln", "ln-ao", "ln-cd", "ln-cf", "ln-cg", "lo", "lo-la", "lrc", "lrc-iq", "lrc-ir", "lt", "lt-lt", "lu", "luo", "luo-ke", "luy", "luy-ke", "lu-cd", "lv", "lv-lv", "mai", "mai-in", "mas", "mas-ke", "mas-tz", "mdf", "mdf-ru", "mer", "mer-ke", "mfe", "mfe-mu", "mg", "mgh", "mgh-mz", "mgo", "mgo-cm", "mg-mg", "mi", "mi-nz", "mk", "mk-mk", "ml", "ml-in", "mn", "mni", "mni-in", "mn-mn", "mr", "mr-in", "ms", "ms-bn", "ms-id", "ms-my", "ms-sg", "mt", "mt-mt", "mua", "mua-cm", "my", "my-mm", "mzn", "mzn-ir", "naq", "naq-na", "nb", "nb-no", "nb-sj", "nd", "nds", "nds-de", "nds-nl", "nd-zw", "ne", "ne-in", "ne-np", "nl", "nl-aw", "nl-be", "nl-bq", "nl-ch", "nl-cw", "nl-lu", "nl-nl", "nl-sr", "nl-sx", "nmg", "nmg-cm", "nn", "nnh", "nnh-cm", "nn-no", "no", "no-no", "nus", "nus-ss", "nyn", "nyn-ug", "oc", "oc-es", "oc-fr", "om", "om-et", "om-ke", "or", "or-in", "os", "os-ge", "os-ru", "pa", "pa-in", "pa-pk", "pcm", "pcm-ng", "pis", "pis-sb", "pl", "pl-pl", "prg", "prg-001", "ps", "ps-af", "ps-pk", "pt", "pt-ao", "pt-br", "pt-ch", "pt-cv", "pt-gq", "pt-gw", "pt-lu", "pt-mo", "pt-mz", "pt-pt", "pt-st", "pt-tl", "qu", "qu-bo", "qu-ec", "qu-pe", "raj", "raj-in", "rm", "rm-ch", "rn", "rn-bi", "ro", "rof", "rof-tz", "ro-md", "ro-ro", "ru", "ru-by", "ru-kg", "ru-kz", "ru-md", "ru-ru", "ru-ua", "rw", "rwk", "rwk-tz", "rw-rw", "sa", "sah", "sah-ru", "saq", "saq-ke", "sat", "sat-in", "sa-in", "sbp", "sbp-tz", "sc", "sc-it", "sd", "sd-in", "sd-pk", "se", "seh", "seh-mz", "ses", "ses-ml", "se-fi", "se-no", "se-se", "sg", "sg-cf", "shi", "shi-ma", "si", "si-lk", "sk", "sk-sk", "sl", "sl-si", "smn", "smn-fi", "sms", "sms-fi", "sn", "sn-zw", "so", "so-dj", "so-et", "so-ke", "so-so", "sq", "sq-al", "sq-mk", "sq-xk", "sr", "sr-ba", "sr-cs", "sr-me", "sr-rs", "sr-xk", "su", "su-id", "sv", "sv-ax", "sv-fi", "sv-se", "sw", "sw-cd", "sw-ke", "sw-tz", "sw-ug", "sy", "ta", "ta-in", "ta-lk", "ta-my", "ta-sg", "te", "teo", "teo-ke", "teo-ug", "te-in", "tg", "tg-tj", "th", "th-th", "ti", "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" ] }, "businessUnitId" : { "type" : "integer", "format" : "int64" }, "content" : { "$ref" : "#/components/schemas/PublicEmailContent" }, "webversion" : { "$ref" : "#/components/schemas/PublicWebversionDetails" }, "archived" : { "type" : "boolean", "description" : "Determines if the email is archived or not." }, "subscriptionDetails" : { "$ref" : "#/components/schemas/PublicEmailSubscriptionDetails" }, "activeDomain" : { "type" : "string", "description" : "The active domain of the email." }, "name" : { "type" : "string", "description" : "The name of the email, as displayed on the email dashboard." }, "campaign" : { "type" : "string", "description" : "The ID of the campaign this email is associated to." }, "from" : { "$ref" : "#/components/schemas/PublicEmailFromDetails" }, "jitterSendTime" : { "type" : "boolean" }, "state" : { "type" : "string", "description" : "The email state.", "enum" : [ "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", "AGENT_GENERATED" ] }, "to" : { "$ref" : "#/components/schemas/PublicEmailToDetails" }, "subcategory" : { "type" : "string", "description" : "The email subcategory.", "enum" : [ "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", "kb_404_page", "case_study", "case_study_listing", "case_study_instance_layout", "scp_static_page", "scp_instance_layout_page", "podcast_instance_layout", "podcast_listing", "blog_article_instance_layout", "blog_article_listing", "blog_author_detail", "UNKNOWN" ] }, "sendOnPublish" : { "type" : "boolean", "description" : "Determines whether the email will be sent immediately on publish." } }, "description" : "Properties of a marketing email you can set when creating a marketing email.", "example" : { "activeDomain" : "test.hs-sites.com", "archived" : false, "campaign" : "1b7f51a6-33c1-44d6-ba28-fe81f655dced", "content" : { "flexAreas" : { "main" : { "boxed" : false, "isSingleColumnFullWidth" : false, "sections" : [ { "columns" : [ { "id" : "column_1606761806181_0", "widgets" : [ "module_160676180617911" ], "width" : 12 } ], "id" : "section_1606761806181", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT" } }, { "columns" : [ { "id" : "column-0-1", "widgets" : [ "module-0-1-1" ], "width" : 12 } ], "id" : "section-0", "style" : { "backgroundType" : "CONTENT", "paddingBottom" : "40px", "paddingTop" : "40px" } }, { "columns" : [ { "id" : "column-1-1", "widgets" : [ "module-1-1-1" ], "width" : 12 } ], "id" : "section-1", "style" : { "backgroundColor" : "", "backgroundType" : "CONTENT", "paddingBottom" : "0px", "paddingTop" : "0px" } } ] } }, "plainTextVersion" : "This is custom! View in browser ({{view_as_page_url}})\n\nHello {{ contact.firstname }},\n\nPlain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.\n\nEvery email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.\n\nLink text\n\nNow it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.\n\nAll the best,\n\nYour full name\n\nYour job title\n\nOther contact information\n\n{{site_settings.company_name}}, {{site_settings.company_street_address_1}}, {{site_settings.company_street_address_2}}, {{site_settings.company_city}}, {{site_settings.company_state}} {{site_settings.company_zip}}, {{site_settings.company_country}}, {{site_settings.company_phone}}\n\nUnsubscribe ({{unsubscribe_link_all}})\n\nManage preferences ({{unsubscribe_link}})", "styleSettings" : { }, "widgets" : { "module-0-1-1" : { "body" : { "css_class" : "dnd-module", "html" : "

Hello {{ contact.firstname }},

Plain text emails have minimal formatting so your reader can really focus on what you have to say. Introduce yourself and explain why you’re reaching out.

Every email should try to lead the reader to some kind of action. Use this space to describe why the reader should want to click on the link below. Put the link on its own line to really draw their eye to it.

Link text

Now it’s time to wrap up your email. Before your signature, thank the recipient for reading. You can also invite them to send this email to any of their colleagues who might be interested.

All the best,
Your full name
Your job title
Other contact information

", "i18nKey" : "richText.plainText", "path" : "@hubspot/rich_text", "schema_version" : 2 }, "child_css" : { }, "css" : { }, "id" : "module-0-1-1", "module_id" : 1155639, "name" : "module-0-1-1", "order" : 2, "styles" : { }, "type" : "module" }, "module-1-1-1" : { "body" : { "align" : "center", "css_class" : "dnd-module", "font" : { "color" : "#23496d", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 } }, "link_font" : { "color" : "#00a4bd", "font" : "Helvetica,Arial,sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "path" : "@hubspot/email_footer", "schema_version" : 2, "unsubscribe_link_type" : "both" }, "child_css" : { }, "css" : { }, "id" : "module-1-1-1", "module_id" : 2869621, "name" : "module-1-1-1", "order" : 3, "styles" : { }, "type" : "module" }, "module_160676180617911" : { "body" : { "font" : { "color" : "#00a4bd", "font" : "Arial, sans-serif", "size" : { "units" : "px", "value" : 12 }, "styles" : { "bold" : false, "italic" : false, "underline" : true } }, "hs_enable_module_padding" : false, "hs_wrapper_css" : { } }, "child_css" : { }, "css" : { }, "id" : "module_160676180617911", "module_id" : 2794854, "name" : "module_160676180617911", "styles" : { }, "type" : "module" }, "preview_text" : { "body" : { "value" : "" }, "child_css" : { }, "css" : { }, "id" : "preview_text", "label" : "Preview Text This will be used as the preview text that displays in some email clients", "name" : "preview_text", "order" : 0, "styles" : { }, "type" : "text" } } }, "createdAt" : "2020-11-30T18:43:17.136Z", "createdById" : 3739732, "from" : { "fromName" : "Bruce Wayne", "replyTo" : "test@hubspot.com" }, "name" : "My subject", "publishDate" : "2023-11-30T18:44:20.387Z", "sendOnPublish" : true, "state" : "DRAFT", "subcategory" : "batch", "subject" : "My subject", "subscriptionDetails" : { "officeLocationId" : "5449392956" }, "to" : { "contactIds" : { }, "contactIlsLists" : { "exclude" : [ 1 ], "include" : [ 5 ] }, "suppressGraymail" : true }, "webversion" : { "expiresAt" : "2020-11-30T18:44:20.387Z", "metaDescription" : "", "redirectToPageId" : 0, "redirectToUrl" : "http://www.example.org" } } }, "VersionPublicEmail" : { "required" : [ "id", "object", "updatedAt", "user" ], "type" : "object", "properties" : { "id" : { "type" : "string", "description" : "ID of this marketing email version." }, "user" : { "$ref" : "#/components/schemas/VersionUser" }, "object" : { "$ref" : "#/components/schemas/PublicEmail" }, "updatedAt" : { "type" : "string", "format" : "date-time" } }, "description" : "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." }, "VersionUser" : { "required" : [ "email", "fullName", "id" ], "type" : "object", "properties" : { "fullName" : { "type" : "string", "description" : "First and last name of the user." }, "id" : { "type" : "string", "description" : "ID of the user." }, "email" : { "type" : "string", "description" : "Email address of the user." } }, "description" : "Model definition for a version user. Contains addition information about the user who created a version." }, "CollectionResponseWithTotalEmailStatisticIntervalNoPaging" : { "required" : [ "results", "total" ], "type" : "object", "properties" : { "total" : { "type" : "integer", "description" : "Total number of objects.", "format" : "int32" }, "results" : { "type" : "array", "description" : "Collection of objects.", "items" : { "$ref" : "#/components/schemas/EmailStatisticInterval" } } }, "description" : "Response object for collections of EmailStatisticIntervals." }, "PublicEmailRecipients" : { "type" : "object", "properties" : { "include" : { "type" : "array", "description" : "Included IDs.", "items" : { "type" : "string" } }, "exclude" : { "type" : "array", "description" : "Excluded IDs.", "items" : { "type" : "string" } } }, "description" : "Data structure representing lists of IDs that should be included and excluded." }, "PublicFontStyle" : { "type" : "object", "properties" : { "font" : { "type" : "string" }, "size" : { "type" : "integer", "format" : "int32" }, "color" : { "type" : "string" }, "underline" : { "type" : "boolean" }, "bold" : { "type" : "boolean" }, "italic" : { "type" : "boolean" } } }, "Paging" : { "type" : "object", "properties" : { "next" : { "$ref" : "#/components/schemas/NextPage" }, "prev" : { "$ref" : "#/components/schemas/PreviousPage" } }, "description" : "Contains information pagination of results." }, "Error" : { "required" : [ "category", "correlationId", "message" ], "type" : "object", "properties" : { "subCategory" : { "type" : "string", "description" : "A specific category that contains more specific detail about the error" }, "context" : { "type" : "object", "additionalProperties" : { "type" : "array", "items" : { "type" : "string" } }, "description" : "Context about the error condition", "example" : "{\"missingScopes\":[\"scope1\",\"scope2\"],\"invalidPropertyName\":[\"propertyValue\"]}" }, "correlationId" : { "type" : "string", "description" : "A unique identifier for the request. Include this value with any error reports or support tickets", "format" : "uuid", "example" : "aeb5f871-7f07-4993-9211-075dc63e7cbf" }, "links" : { "type" : "object", "additionalProperties" : { "type" : "string" }, "description" : "A map of link names to associated URIs containing documentation about the error or recommended remediation steps" }, "message" : { "type" : "string", "description" : "A human readable message describing the error along with remediation steps where appropriate", "example" : "An error occurred" }, "category" : { "type" : "string", "description" : "The error category" }, "errors" : { "type" : "array", "description" : "further information about the error", "items" : { "$ref" : "#/components/schemas/ErrorDetail" } } }, "example" : { "message" : "Invalid input (details will vary based on the error)", "correlationId" : "aeb5f871-7f07-4993-9211-075dc63e7cbf", "category" : "VALIDATION_ERROR", "links" : { "knowledge-base" : "https://www.hubspot.com/products/service/knowledge-base" } } }, "PublicEmailStyleSettings" : { "type" : "object", "properties" : { "backgroundColor" : { "type" : "string" }, "backgroundImage" : { "type" : "string" }, "backgroundImageType" : { "type" : "string" }, "bodyColor" : { "type" : "string" }, "bodyBorderColor" : { "type" : "string" }, "bodyBorderWidth" : { "type" : "number" }, "bodyBorderColorChoice" : { "type" : "string" }, "primaryFont" : { "type" : "string" }, "primaryFontColor" : { "type" : "string" }, "primaryAccentColor" : { "type" : "string" }, "primaryFontSize" : { "type" : "number" }, "primaryFontLineHeight" : { "type" : "string" }, "secondaryFont" : { "type" : "string" }, "secondaryFontColor" : { "type" : "string" }, "secondaryAccentColor" : { "type" : "string" }, "secondaryFontSize" : { "type" : "number" }, "secondaryFontLineHeight" : { "type" : "string" }, "headingOneFont" : { "$ref" : "#/components/schemas/PublicFontStyle" }, "headingTwoFont" : { "$ref" : "#/components/schemas/PublicFontStyle" }, "linksFont" : { "$ref" : "#/components/schemas/PublicFontStyle" }, "colorPickerFavorite1" : { "type" : "string" }, "colorPickerFavorite2" : { "type" : "string" }, "colorPickerFavorite3" : { "type" : "string" }, "colorPickerFavorite4" : { "type" : "string" }, "colorPickerFavorite5" : { "type" : "string" }, "colorPickerFavorite6" : { "type" : "string" }, "emailBodyPadding" : { "type" : "string" }, "emailBodyWidth" : { "type" : "string" }, "buttonStyleSettings" : { "$ref" : "#/components/schemas/PublicButtonStyleSettings" }, "dividerStyleSettings" : { "$ref" : "#/components/schemas/PublicDividerStyleSettings" } } }, "EmailCloneRequestVNext" : { "required" : [ "id" ], "type" : "object", "properties" : { "id" : { "type" : "string" }, "cloneName" : { "type" : "string" }, "language" : { "type" : "string" } } }, "PublicEmailTestingDetails" : { "type" : "object", "properties" : { "isAbVariation" : { "type" : "boolean" }, "abSamplingDefault" : { "type" : "string", "description" : "Version of the email that should be sent if the results are inconclusive after the test period, master or variant.", "enum" : [ "master", "variant", "loser_variant", "mab_master", "mab_variant", "automated_master", "automated_variant", "automated_loser_variant" ] }, "abSampleSizeDefault" : { "type" : "string", "description" : "Version of the email that should be sent if there are too few recipients to conduct an AB test.", "enum" : [ "master", "variant", "loser_variant", "mab_master", "mab_variant", "automated_master", "automated_variant", "automated_loser_variant" ] }, "abStatus" : { "type" : "string", "description" : "Status of the AB test.", "enum" : [ "master", "variant", "loser_variant", "mab_master", "mab_variant", "automated_master", "automated_variant", "automated_loser_variant" ] }, "abTestPercentage" : { "type" : "integer", "description" : "The size of your test group.", "format" : "int32" }, "hoursToWait" : { "type" : "integer", "description" : "Time limit on gathering test results. After this time is up, the winning version will be sent to the remaining contacts.", "format" : "int32" }, "testId" : { "type" : "string", "description" : "The ID of the AB test." }, "abSuccessMetric" : { "type" : "string", "description" : "Metric to determine the version that will be sent to the remaining contacts.", "enum" : [ "CLICKS_BY_OPENS", "CLICKS_BY_DELIVERED", "OPENS_BY_DELIVERED" ] } }, "description" : "AB testing related data. This property is only returned for AB type emails." }, "PublicWebversionDetails" : { "type" : "object", "properties" : { "domain" : { "type" : "string" }, "redirectToPageId" : { "type" : "string" }, "isPageRedirected" : { "type" : "boolean" }, "redirectToUrl" : { "type" : "string" }, "title" : { "type" : "string" }, "metaDescription" : { "type" : "string" }, "pageExpiryEnabled" : { "type" : "boolean" }, "enabled" : { "type" : "boolean" }, "slug" : { "type" : "string" }, "url" : { "type" : "string" }, "expiresAt" : { "type" : "string", "format" : "date-time" } } }, "EmailStatisticsData" : { "required" : [ "counters", "deviceBreakdown", "qualifierStats", "ratios" ], "type" : "object", "properties" : { "deviceBreakdown" : { "type" : "object", "additionalProperties" : { "type" : "object", "additionalProperties" : { "type" : "integer", "format" : "int64" } }, "description" : "Statistics by device." }, "qualifierStats" : { "type" : "object", "additionalProperties" : { "type" : "object", "additionalProperties" : { "type" : "integer", "format" : "int64" } }, "description" : "Number of emails that were dropped and bounced." }, "counters" : { "type" : "object", "additionalProperties" : { "type" : "integer", "format" : "int64" }, "description" : "Counters like number of `sent`, `open` or `delivered`." }, "ratios" : { "type" : "object", "additionalProperties" : { "type" : "number" }, "description" : "Ratios like `openratio` or `clickratio`" } } }, "PublicRssEmailDetails" : { "type" : "object", "properties" : { "blogImageMaxWidth" : { "type" : "integer", "format" : "int32" }, "blogEmailType" : { "type" : "string" }, "hubspotBlogId" : { "type" : "string" }, "rssEntryTemplate" : { "type" : "string" }, "timing" : { "type" : "object", "additionalProperties" : { "type" : "object", "properties" : { } } }, "maxEntries" : { "type" : "integer", "format" : "int32" }, "useHeadlineAsSubject" : { "type" : "boolean" }, "blogLayout" : { "type" : "string" }, "url" : { "type" : "string" } }, "description" : "RSS related data if it is a blog or rss email." }, "AggregateEmailStatistics" : { "type" : "object", "properties" : { "emails" : { "type" : "array", "description" : "List of email IDs that were sent during the time span.", "items" : { "type" : "integer", "format" : "int64" } }, "campaignAggregations" : { "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/EmailStatisticsData" }, "description" : "The aggregated statistics per campaign." }, "aggregate" : { "$ref" : "#/components/schemas/EmailStatisticsData" } }, "description" : "Aggregated statistics for the given interval, plus the IDs of emails that were sent during that interval." }, "PreviousPage" : { "required" : [ "before" ], "type" : "object", "properties" : { "before" : { "type" : "string", "description" : "The cursor token value to get the previous set of results. Use this value as query parameter (&before=...) to obtain the previous page.", "example" : "" }, "link" : { "type" : "string", "description" : "The link to the previous page.", "example" : "" } }, "description" : "Contains information about the previous page." }, "PublicEmailFromDetails" : { "type" : "object", "properties" : { "customReplyTo" : { "type" : "string", "description" : "The reply to recipients will see." }, "fromName" : { "type" : "string", "description" : "The name recipients will see." }, "replyTo" : { "type" : "string", "description" : "The from address and reply to email address (if no customReplyTo defined) recipients will see." } }, "description" : "Data structure representing the from fields on the email." }, "NextPage" : { "required" : [ "after" ], "type" : "object", "properties" : { "link" : { "type" : "string", "description" : "The link to the next page.", "example" : "" }, "after" : { "type" : "string", "description" : "The cursor token value to get the next set of results. Use this value as query parameter (&after=...) to obtain the next page.", "example" : "" } }, "description" : "Contains information about the next page." }, "SmartEmailField" : { "type" : "object", "properties" : { }, "description" : "An email field whose value is controlled by one or more smart rules." }, "Interval" : { "required" : [ "end", "start" ], "type" : "object", "properties" : { "start" : { "type" : "string", "format" : "date-time" }, "end" : { "type" : "string", "format" : "date-time" } } }, "PublicEmailContent" : { "type" : "object", "properties" : { "smartFields" : { "type" : "object", "additionalProperties" : { "$ref" : "#/components/schemas/SmartEmailField" } }, "themeSettingsValues" : { "type" : "object", "additionalProperties" : { "type" : "object", "properties" : { } } }, "flexAreas" : { "type" : "object", "additionalProperties" : { "type" : "object", "properties" : { } } }, "widgets" : { "type" : "object", "additionalProperties" : { "type" : "object", "properties" : { } } }, "plainTextVersion" : { "type" : "string" }, "templatePath" : { "type" : "string" }, "widgetContainers" : { "type" : "object", "additionalProperties" : { "type" : "object", "properties" : { } } }, "styleSettings" : { "$ref" : "#/components/schemas/PublicEmailStyleSettings" } }, "description" : "Data structure representing the content of the email." } }, "responses" : { "Error" : { "description" : "An error occurred.", "content" : { "*/*" : { "schema" : { "$ref" : "#/components/schemas/Error" } } } } }, "securitySchemes" : { "oauth2" : { "type" : "oauth2", "flows" : { "authorizationCode" : { "authorizationUrl" : "https://app.hubspot.com/oauth/authorize", "tokenUrl" : "https://api.hubapi.com/oauth/v1/token", "scopes" : { "content" : "Read from and write to my Content", "marketing-email" : "Marketing Single Send API access", "transactional-email" : "Transactional Emails" } } } }, "private_apps" : { "type" : "apiKey", "name" : "private-app", "in" : "header" } } }, "x-hubspot-product-tier-requirements" : { "marketing" : "FREE", "sales" : "FREE", "service" : "FREE", "cms" : "FREE" } }