For Agents
Manage HubSpot marketing email drafts, AB-test variations, revisions, and publishing, plus pull per-email statistics for reporting.
Get started with Marketing Emails in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"publish hubspot marketing email"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with Marketing Emails API.
Publish a draft marketing email so it transitions from edit-mode to send-ready
Create an AB-test variation of an existing email and read the variation back by id
Reset a draft back to the last published state for safe rollback
Restore a previous revision into the draft slot to recover earlier content
GET STARTED
Use for: I need to publish a draft marketing email, Create an AB-test variation of an existing email, Restore a previous revision of an email into the draft slot, Reset a draft email back to the last published version
Not supported: Does not send transactional one-off emails, manage CRM contact lists, or handle SMS — use for managing marketing email asset drafts, AB tests, revisions, and statistics only.
The HubSpot Marketing Emails API manages the lifecycle of marketing email assets — drafts, AB-test variations, revisions, publishing, and statistics. It supports listing emails, publishing a draft to send, creating and reading AB-test variations, resetting and restoring drafts from prior revisions, and pulling per-email statistics with both list and histogram aggregations. With 19 endpoints across the email, draft, AB-test, revisions, and statistics paths, it gives marketing-ops the editorial workflow plus the reporting layer for outbound email programmes.
Pull per-email send statistics as a list or as a histogram across time buckets
List, retrieve, and update marketing email assets through the email lifecycle
Patterns agents use Marketing Emails API for, with concrete tasks.
★ Editorial Workflow Automation
Automate the marketing email editorial workflow by scripting the draft-to-publish lifecycle. Update the draft via the draft endpoint, run validation, then call POST /marketing/v3/emails/{emailId}/publish to push it live. If something goes wrong, reset the draft to the last published state or restore a prior revision into the draft slot — both are first-class operations rather than database hacks.
Call POST /marketing/v3/emails/{emailId}/publish to push the current draft live, or POST /marketing/v3/emails/{emailId}/draft/reset to roll back to the last published state.
AB Test Variation Setup
Set up AB tests by creating a variation of an existing marketing email through POST /marketing/v3/emails/ab-test/create-variation, then read the variation back by id and the original email's variation list to confirm the test is wired correctly. HubSpot handles traffic splitting and winner selection once the variation is published; this API gives the agent the structural setup.
Call POST /marketing/v3/emails/ab-test/create-variation with the source emailId, then GET /marketing/v3/emails/{emailId}/ab-test/get-variation to confirm.
Email Engagement Reporting
Pull per-email send statistics for dashboards and weekly digests. The list endpoint returns a flat statistics record per email; the histogram endpoint buckets engagement (opens, clicks, deliveries) over time so you can plot trend charts without aggregating client-side. Useful for marketing-ops bots that publish channel performance every Monday.
Call GET /marketing/v3/emails/statistics/list filtered by emailId, or GET /marketing/v3/emails/statistics/histogram with a time bucket interval to plot trends.
AI Agent Email QA via Jentic
An AI agent that QAs marketing emails before each send checks the latest draft, validates copy and links, then calls publish if checks pass. The agent searches Jentic for HubSpot email operations, loads schemas for the draft-read and publish endpoints, and chains them. Jentic stores the OAuth token so the agent never handles raw credentials.
Search Jentic for "publish hubspot marketing email", load the schema for POST /marketing/v3/emails/{emailId}/publish, and execute after the QA checks pass.
19 endpoints — the hubspot marketing emails api manages the lifecycle of marketing email assets — drafts, ab-test variations, revisions, publishing, and statistics.
METHOD
PATH
DESCRIPTION
/marketing/v3/emails/{emailId}/publish
Publish the current draft of a marketing email
/marketing/v3/emails/{emailId}/draft
Read the current draft of a marketing email
/marketing/v3/emails/{emailId}/draft/reset
Reset the draft back to the last published version
/marketing/v3/emails/ab-test/create-variation
Create an AB-test variation of an email
/marketing/v3/emails/{emailId}/ab-test/get-variation
Read an AB-test variation by source email id
/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft
Restore a prior revision into the draft slot
/marketing/v3/emails/statistics/list
List per-email engagement statistics
/marketing/v3/emails/statistics/histogram
Get a histogram of email engagement
/marketing/v3/emails/{emailId}/publish
Publish the current draft of a marketing email
/marketing/v3/emails/{emailId}/draft
Read the current draft of a marketing email
/marketing/v3/emails/{emailId}/draft/reset
Reset the draft back to the last published version
/marketing/v3/emails/ab-test/create-variation
Create an AB-test variation of an email
/marketing/v3/emails/{emailId}/ab-test/get-variation
Read an AB-test variation by source email id
Three things that make agents converge on Jentic-routed access.
Credential isolation
HubSpot OAuth and private app tokens are stored encrypted in the Jentic MAXsystem vault. Agents receive scoped execution access — the raw bearer token never enters the agent's context window.
Intent-based discovery
Agents search Jentic with intents like 'publish hubspot marketing email' and Jentic returns the matching operation with its input schema, so the agent calls POST /marketing/v3/emails/{emailId}/publish without browsing HubSpot docs.
Time to first call
Direct HubSpot integration: 2-4 days for OAuth setup, draft management, AB-test wiring, and statistics integration. Through Jentic: under 1 hour — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Marketing Single-send
Trigger a one-off send of a marketing email to a single recipient
Choose this when the agent needs to fire a single transactional send rather than manage the email asset.
Marketing Emails V3
Newer rollout of the marketing emails endpoints with overlapping scope
Choose V3 when the agent should consume the latest rollout shape of these endpoints.
Marketing Campaigns
Attach marketing emails to campaigns for cross-asset attribution
Choose this when the email is part of a broader multi-asset campaign.
SendGrid Mail
Dedicated email delivery API focused on transactional and high-volume sends
Choose SendGrid when the use case is delivery-first rather than HubSpot CRM integrated.
Specific to using Marketing Emails API through Jentic.
What authentication does the Marketing Emails API use?
It accepts HubSpot OAuth 2.0 access tokens or private app tokens, sent as Bearer in the Authorization header. Through Jentic, the token is stored encrypted in MAXsystem and injected at execution time.
Can I publish a marketing email programmatically?
Yes. Call POST /marketing/v3/emails/{emailId}/publish to publish the current draft. The endpoint moves the draft into the published slot and queues the email for send according to its configured schedule.
How do I roll back an email if a draft change went wrong?
Two paths: POST /marketing/v3/emails/{emailId}/draft/reset reverts the draft to the last published state, or POST /marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft restores a specific historical revision.
What are the rate limits for the Marketing Emails API?
Account-level limits are 100 requests per 10 seconds across HubSpot's authenticated APIs, with daily caps that depend on the subscription tier. Statistics endpoints are read-heavy — cache the histogram response in your dashboard layer.
How do I publish a marketing email through Jentic?
Run pip install jentic, search for "publish hubspot marketing email", load the schema for POST /marketing/v3/emails/{emailId}/publish, and execute with the email id. Sign up at https://app.jentic.com/sign-up.
Does this API send a single ad-hoc email to one recipient?
No. For one-off transactional sends use the Marketing Single-send API. This API is for managing the marketing email asset lifecycle and bulk send programmes.
/marketing/v3/emails/{emailId}/revisions/{revisionId}/restore-to-draft
Restore a prior revision into the draft slot
/marketing/v3/emails/statistics/list
List per-email engagement statistics
/marketing/v3/emails/statistics/histogram
Get a histogram of email engagement