There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Determine if the buffer of a marketing email differs from the live email 

Last updated May 15, 2023

GET /marketing-emails/v1/emails/:id/has-buffered-changes

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Required Scope:

content

Returns a dictionary: {"has_changes": false/true} depending on if the buffer within the in-app email editor is different from the live object.

The in-app email editor uses its own separate save buffer, effectively allowing users to make changes without fully committing and saving those changes. This endpoint will let you check the state of that buffer, allowing you to see if a user is making changes to the email in-app.

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header Used to authenticate the request. Please see this page for more details about authentication.
Email ID :email_id Used in the request URL The ID of the email that you want to update.