APIs & Integrations

sagarhumanebits
Member

Schedule marketing email using API

I am using 

API =  https://api.hubapi.com/marketing-emails/v1/emails/29536517308?hapikey={api_key}

method = PUT

 

 

to Update already created email using  POST method but I am unable to figure it out how to update an schedule time of email. 

 

 

0 Upvotes
3 Replies 3
WendyGoh
HubSpot Employee
HubSpot Employee

Schedule marketing email using API

Hey @sagarhumanebits,

 

When looking to update the schedule marketing email date and time, you can use the following POST body:

 

{
"publishDate": 1590606187000,
"publishDateLocalTime": 1590606187000
}

where the timestamp is in milliseconds. One online tool that I used personally is: https://www.epochconverter.com/

0 Upvotes
MDharan
Member

Schedule marketing email using API

I try to schedule the marketing email using emai id and app key with the API 

API =  https://api.hubapi.com/marketing-emails/v1/emails/29536517308?hapikey={api_key}

method = PUT

body = 

{
"publishDate": 1590606187000,
"publishDateLocalTime": 1590606187000
}

 but it's not scheduling the API and PublishDate not taking the given body date. By default it's taking current timestamp. 

0 Upvotes
AVallejo3
Participant

Schedule marketing email using API

Does this apply to the Transactional API as well? I need to send Transactional emails at a specific date.

0 Upvotes