APIs & Integrations

ashuuas
Member

Create Email using contact from crm through API

SOLVE

Hi,

I want to ganerate emails from contacts of my crm users/owners

i found the api end point but i think i will need more data to send like email id 


Example POST URL:
https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo

Example POST body:
{
"name": "My first API marketing email!",
"subject": "Sample subject line"
}

0 Upvotes
1 Accepted solution
ashuuas
Solution
Member

Create Email using contact from crm through API

SOLVE

Hi,

I want to ganerate emails from contacts of my crm users/owners

i found the api end point but i think i will need more data to send like email id 


Example POST URL:
https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo

Example POST body:
{
"name": "My first API marketing email!",
"subject": "Sample subject line"
}

View solution in original post

0 Upvotes
3 Replies 3
TiphaineCuisset
Community Manager
Community Manager

Create Email using contact from crm through API

SOLVE

Hi @ashuuas 

 

Thank you for reaching out.

 

I want to tag some of our experts on this - @himanshurauthan @miljkovicmisa do you have any thoughts for @ashuuas on this? 

 

Thank you!

Best

Tiphaine


Saviez vous que la Communauté est disponible en français?
Rejoignez les discussions francophones en changeant votre langue dans les paramètres !

Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


himanshurauthan
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Create Email using contact from crm through API

SOLVE

Hello @TiphaineCuisset and @ashuuas,

 

The endpoint (https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo) you are using is correct for creating a marketing email, but if you want to send the same emails to some users then you can use this API (https://legacydocs.hubspot.com/docs/methods/email/transactional_email/single-send-overview).

 

From here you can send emails to users, you just need to fetch the email's internal ID from the response body of the email that you have just created and use that email in the sending API.

 

Best Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
ashuuas
Solution
Member

Create Email using contact from crm through API

SOLVE

Hi,

I want to ganerate emails from contacts of my crm users/owners

i found the api end point but i think i will need more data to send like email id 


Example POST URL:
https://api.hubapi.com/marketing-emails/v1/emails?hapikey=demo

Example POST body:
{
"name": "My first API marketing email!",
"subject": "Sample subject line"
}

0 Upvotes