How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

HubSpot Marketing Emails API

HubSpot Marketing Emails — 19 operation(s) from HubSpot's published OpenAPI.

HubSpot Marketing Emails API is one of 144 APIs that HubSpot publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 692 JSON Schema definitions.

Tagged areas include Marketing and Emails. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, code examples, and 692 JSON Schemas.

This API exposes 19 operations across 15 paths, organized into 2 resource areas, and defines 33 schemas. It is described by OpenAPI 3.0.1, at version 2026-09.

Requests are made against a single base URL, https://api.hubapi.com.

19 operations 15 paths 33 schemas 1 DELETE8 GET2 PATCH8 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.1
API Version
2026-09
Base URL
https://api.hubapi.com
Authentication
API Key, OAuth 2.0, API Key, API Key
Resource Areas
2

Authentication & Security 4

HubSpot Marketing Emails API declares 4 security schemes for authenticating requests. An API key is passed in the query as hapikey (developer_hapikey). It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 2 scopes. An API key is passed in the header as private-app (private_apps). An API key is passed in the header as private-app-legacy (private_apps_legacy).

Paths & Operations 19

Across 15 paths, the API surfaces 19 operations — 1 DELETE, 8 GET, 2 PATCH, 8 POST. They span 2 resource areas: Basic, Emails. Each is listed below with its method, path, parameters, and response codes.

Basic 4
GET
/marketing/emails/2026-09
get-/marketing/emails/2026-09_/marketing/emails/v3 21 params → 200default
POST
/marketing/emails/2026-09
post-/marketing/emails/2026-09_/marketing/emails/v3 body → 201default
GET
/marketing/emails/2026-09/statistics/histogram
Get aggregated statistic intervals
get-/marketing/emails/2026-09/statistics/histogram_getHistogram 4 params → 200default
GET
/marketing/emails/2026-09/statistics/list
Get aggregated statistics
get-/marketing/emails/2026-09/statistics/list_getEmailsList 4 params → 200default
Emails 15
POST
/marketing/emails/2026-09/ab-test/create-variation
Create an A/B test variation of a marketing email
post-/marketing/emails/2026-09/ab-test/create-variation_createAbTestVariation body → 201default
POST
/marketing/emails/2026-09/clone
Clone a marketing email
post-/marketing/emails/2026-09/clone_clone body → 200default
GET
/marketing/emails/2026-09/{emailId}
Get the details of a specified marketing email
get-/marketing/emails/2026-09/{emailId}_getById 7 params → 200default
DELETE
/marketing/emails/2026-09/{emailId}
Delete a marketing email
delete-/marketing/emails/2026-09/{emailId}_archive 2 params → 204default
PATCH
/marketing/emails/2026-09/{emailId}
Update a marketing email
patch-/marketing/emails/2026-09/{emailId}_update 2 params body → 200default
GET
/marketing/emails/2026-09/{emailId}/ab-test/get-variation
Get the variation of a an A/B marketing email
get-/marketing/emails/2026-09/{emailId}/ab-test/get-variation_getAbTestVariation 7 params → 200default
GET
/marketing/emails/2026-09/{emailId}/draft
Get draft version of a marketing email
get-/marketing/emails/2026-09/{emailId}/draft_getDraft 1 param → 200default
PATCH
/marketing/emails/2026-09/{emailId}/draft
Create or update draft version
patch-/marketing/emails/2026-09/{emailId}/draft_upsertDraft 1 param body → 200default
POST
/marketing/emails/2026-09/{emailId}/draft/reset
Reset the draft version
post-/marketing/emails/2026-09/{emailId}/draft/reset_resetDraft 1 param → 204default
POST
/marketing/emails/2026-09/{emailId}/publish
Publish or send a marketing email
post-/marketing/emails/2026-09/{emailId}/publish_publishOrSend 1 param → 204default
GET
/marketing/emails/2026-09/{emailId}/revisions
Get revisions of a marketing email
get-/marketing/emails/2026-09/{emailId}/revisions_getRevisions 4 params → 200default
GET
/marketing/emails/2026-09/{emailId}/revisions/{revisionId}
Get a revision of a marketing email
get-/marketing/emails/2026-09/{emailId}/revisions/{revisionId}_getRevisionById 2 params → 200default
POST
/marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore
Restore a revision of a marketing email
post-/marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore_restoreRevision 2 params → 204default
POST
/marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore-to-draft
Restore a revision of a marketing email to DRAFT state
post-/marketing/emails/2026-09/{emailId}/revisions/{revisionId}/restore-to-draft_restoreDraftRevision 2 params → 200default
POST
/marketing/emails/2026-09/{emailId}/unpublish
Unpublish or cancel a marketing email
post-/marketing/emails/2026-09/{emailId}/unpublish_unpublishOrCancel 1 param → 204default

Schemas 33

The contract defines 33 schemas that model the data the API accepts and returns. The most detailed are PublicEmail (49 properties), PublicEmailStyleSettings (30 properties), EmailCreateRequest (21 properties), EmailUpdateRequest (20 properties). Each schema is shown below with its type and property counts.

AbTestCreateRequestVNext
object
2 properties 2 required
AggregateEmailStatistics
object
3 properties 3 required
CollectionResponseWithTotalEmailStatisticInterval
object
3 properties 2 required
CollectionResponseWithTotalPublicEmail
object
3 properties 2 required
CollectionResponseWithTotalPublicEmailVersion
object
3 properties 2 required
EmailCloneRequestVNext
object
3 properties 1 required
EmailCreateRequest
object
21 properties
EmailStatisticInterval
object
2 properties 2 required
EmailStatisticsData
object
4 properties 4 required
EmailUpdateRequest
object
20 properties
Error
object
Represents an error response returned by the API when an operation fails. This component is used in various endpoints to provide detailed information about the…
7 properties 3 required
ErrorDetail
object
Represents detailed information about an error that occurred in the API. This component is used to provide additional context and specifics about errors, typic…
5 properties 1 required
Interval
object
2 properties 2 required
NextPage
object
Specifies the paging information needed to retrieve the next set of results in a paginated API response
2 properties 1 required
Paging
object
2 properties
PreviousPage
object
specifies the paging information needed to retrieve the previous set of results in a paginated API response
2 properties 1 required
PublicButtonStyleSettings
object
3 properties
PublicDividerStyleSettings
object
3 properties
PublicEmail
object
49 properties 1 required
PublicEmailContent
object
8 properties
PublicEmailFromDetails
object
3 properties
PublicEmailRecipients
object
2 properties
PublicEmailStyleSettings
object
30 properties
PublicEmailSubscriptionDetails
object
4 properties
PublicEmailTestingDetails
object
8 properties 1 required
PublicEmailToDetails
object
5 properties
PublicEmailVersion
object
4 properties 4 required
PublicFontStyle
object
6 properties
PublicRssEmailDetails
object
9 properties
PublicWebversionDetails
object
11 properties
SmartEmailField
object
VersionPublicEmail
object
4 properties 4 required
VersionUser
object
3 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

hubspot-marketing-marketing-emails-api-openapi.yml Raw ↑

Other APIs HubSpot publishes across the network.

HubSpot URL Redirects API
HubSpot Pipelines API
HubSpot Products API
HubSpot Line Items API
HubSpot Quotes API
HubSpot CRM Properties API
HubSpot Owners API
HubSpot CRM Imports API
HubSpot Custom Objects API
HubSpot Marketing Events API
HubSpot Forms API
HubSpot Workflows API
Where this information came from

This is an independent, third-party profile of HubSpot Marketing Emails API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.