APIs & Integrations

AGran
Participant

Create Ticket and send email

Résolue

Hey,

I'm looking for an API endpoints to achive a rather straight forward flow:

- create a ticket (got that)

- associate ticket with deal, company, contact (got that)

- create an email (can be done with engagement endpoint, but not sure about this)

- associate email with ticket (got that)

- send that email (looking for that one especially!)

obvisouly, for those emails, if the recipient answers, I'd like to have the answer auto filled into the converstion & ticket again. I guess if I send the email via an external SMTP gateway, which would be straight forward, that doesn't work, as it lacks some email header magic to get the association right?

2 Solutions acceptées
AGran
Solution
Participant

Create Ticket and send email

Résolue

Hi @himanshurauthan ,

 

thanks for the feedback! As fas as I can see, the single send api will associate with the contact, the smtp api will not. But both won't associate with a ticket.

However I've now done a few experiemnts using BCC, looks like the following works as well and doesn't require the (pricy!) transactional email extension:

- create a ticket (got that)

- associate ticket with deal, company, contact (got that)

- create an email externally, send via our usual Google SMTP, BCC to hubspot

- fiddle with hubspot api to find email (to bad I can't serach for message-ID!) and then associate email with ticket

 

So it basically just works the other way round, but that sounds reasonable.

Voir la solution dans l'envoi d'origine

himanshurauthan
Solution
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

Create Ticket and send email

Résolue

I'm glad you found it worked for you. Hey, I had a request, will it be possible for you to mark my reply as a solution. 😟

Digital Marketing & Inbound Expert In Growth Hacking Technology

Voir la solution dans l'envoi d'origine

5 Réponses
AGran
Solution
Participant

Create Ticket and send email

Résolue

Hi @himanshurauthan ,

 

thanks for the feedback! As fas as I can see, the single send api will associate with the contact, the smtp api will not. But both won't associate with a ticket.

However I've now done a few experiemnts using BCC, looks like the following works as well and doesn't require the (pricy!) transactional email extension:

- create a ticket (got that)

- associate ticket with deal, company, contact (got that)

- create an email externally, send via our usual Google SMTP, BCC to hubspot

- fiddle with hubspot api to find email (to bad I can't serach for message-ID!) and then associate email with ticket

 

So it basically just works the other way round, but that sounds reasonable.

himanshurauthan
Solution
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

Create Ticket and send email

Résolue

I'm glad you found it worked for you. Hey, I had a request, will it be possible for you to mark my reply as a solution. 😟

Digital Marketing & Inbound Expert In Growth Hacking Technology
dennisedson
Équipe de développement de HubSpot
Équipe de développement de HubSpot

Create Ticket and send email

Résolue

@himanshurauthan , would you be able to assist here?

himanshurauthan
Leader d'opinion | Partenaire solutions Elite
Leader d'opinion | Partenaire solutions Elite

Create Ticket and send email

Résolue

Hello @dennisedson, thank you for tagging me in!

 

Hi @AGran,

 

Sending email via the API can be achieved using HubSpot's "Single Send API" or "SMTP API" API. In order to utilize these APIs, you require the transactional email add-on.

 

The key difference between the two is that using the Single Send API allows you to create/build emails from within HubSpot, save them for use with the Single Send API, and then programmatically trigger the send.

 

You can also pass through data to inject into the body of the email. This data can live inside (and outside) of HubSpot.

 

The SMTP API on the other hand is used if you want to create/manage email outside of HubSpot and simply send via our SMTP server.

 

All emails sent via either API would show as emails on the contacts record. It would look similar to the below:

 

Regards,

Digital Marketing & Inbound Expert In Growth Hacking Technology
SR0
Contributeur | Partenaire solutions Diamond
Contributeur | Partenaire solutions Diamond

Create Ticket and send email

Résolue

Hi, I was looking into a way to create an email sent via API, and just happened to have found this. Would it be possible that the email sent using Single Send API, to appear as an associated conversation to an object (i.e tickets)?

0 Votes