Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

howto get/update a marketing email? #255

Open
frisbee23 opened this issue Dec 21, 2023 · 4 comments
Open

howto get/update a marketing email? #255

frisbee23 opened this issue Dec 21, 2023 · 4 comments

Comments

@frisbee23
Copy link

hi;
apparently there is an old api https://legacydocs.hubspot.com/docs/methods/cms_email/get-all-marketing-emails?_ga=2.137222000.1378662146.1702885879-633345307.1702630492&_gl=1*unmw3y*_ga*NjMzMzQ1MzA3LjE3MDI2MzA0OTI.*_ga_LXTM6CQ0XK*MTcwMjkwODUxNy42LjEuMTcwMjkwODY1OC4xNi4wLjA.

and a new one https://developers.hubspot.com/docs/api/marketing/marketing-email

and since the python api here speaks of v3 in the code, i assume it is for the new one ?

in the new api docs, the marketing emails seem to be on toplevel, called marketing,
but in python i find it's below crm ?

i tried this api_client.crm.objects.emails.basic_api.get_by_id("88421935588") with an existing email id here,
but i only get not_found..

in postman i can get email, it does this:
curl --location 'https://api.hubapi.com/marketing/v3/emails/87967987905/draft'
--header 'Accept: application/json'
-- header 'Bearer: XXX'

is it possible to turn on debug logging on the python api client so that i can see, what endpoint my request above queries ?

@frisbee23
Copy link
Author

the greater context here is:

  1. i want to get a draft email from hubspot, which we use as a template, so that we can use the beautiful email we built there with the email editor.

i want to modify the draft a bit, and fill out some version field (we use it for sending out 'new version of our app is ready' emails)
-> maybe there is some abstraction in hubspot to fill out variables in an email template which should rather be used for this..

  1. i want to send this email then to a list of people;
    this also bears a lot of confusion for me. apparently there is the distinction between marketing emails and transactional emails.
    there is only an api to send transactional emails. and these only can be sent with the single_send api ?

i've read a bit about workflows, maybe these could be used to send an email to a list of people?

@fromfarland
Copy link

Following – we have also waited for the release of the V3 API for Marketing Emails, now that the Beta is out it seems like a bit of a letdown though (still have to make a GET request using Python). Hope that this will be updated soon to follow the same logic as the other endpoints.

@fromfarland
Copy link

Heyho, is there any update expected here? We've been wanting to add Marketing Emails to our Hubspot export for a while, but the fact that it only supports GET (and not the API structure for other object types) is really in our way.

@frisbee23
Copy link
Author

frisbee23 commented Mar 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants