APIs & Integrations

PMicromovilid
Participante

/crm/v3/objects/emails API return 201, but does not sent email to the contact

resolver

I have been having an issue trying to send an email to one of my contacts using emails API, the HTTP response that I am having is 201, which means is successfully, nevertheless the email is not being sent to the respect email address, theres is the body that I am using for make the request:

{
  "properties": {
    "hs_email_direction": "EMAIL",
    "hs_email_subject": "Test Email Subject",  // Optional subject of the email
    "hs_email_text": "Test",
    "hs_email_status": "SENT",
    "hs_email_headers":"{\"from\":{\"email\":\"sales@thecloud9team.com\",\"firstName\":\"Test\",\"lastName\":\"Test\"},\"sender\":{\"email\":\"sales@thecloud9team.com\",\"firstName\":\"Test\",\"lastName\":\"Test\"},\"to\":[{\"email\":\"Info+Pivvot<info@pivvot.in>\",\"firstName\":\"Test\",\"lastName\":\"Test\"}],\"cc\":[],\"bcc\":[]}",
    "hs_timestamp": "2024-11-22T05:55:51.735Z"
  },
  "associations": [
    {
      "to": {
        "id": 79531215496
      },
      "types":[
        {
            "associationCategory": "HUBSPOT_DEFINED",
            "associationTypeId": 198
        }
      ]
    }
  ]
}

 Any of your response will be apreciated for us, thanks in advance.

0 Avaliação positiva
1 Solução aceita
zach_threadint
Solução
Orientador(a)

/crm/v3/objects/emails API return 201, but does not sent email to the contact

resolver

Hi @PMicromovilid 👋

 

HubSpot's Email Engagements API is only used to "log and manage emails on CRM records". It does not offer the ability to send emails. The API call you've made is intended to log an email (on a HubSpot CRM record) that has been sent via a third-party system.

 

For sending emails via HubSpot APIs, you might be interested in the Single Send API or Transactional Emails API.

 

I hope this proves helpful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


Exibir solução no post original

0 Avaliação positiva
1 Resposta 1
zach_threadint
Solução
Orientador(a)

/crm/v3/objects/emails API return 201, but does not sent email to the contact

resolver

Hi @PMicromovilid 👋

 

HubSpot's Email Engagements API is only used to "log and manage emails on CRM records". It does not offer the ability to send emails. The API call you've made is intended to log an email (on a HubSpot CRM record) that has been sent via a third-party system.

 

For sending emails via HubSpot APIs, you might be interested in the Single Send API or Transactional Emails API.

 

I hope this proves helpful. Please let me know if you have any follow-up questions.

All the best,

Zach

--

Zach Klein
HubSpot Integrations & App Developer
Meanjin / Brisbane, Australia



Say g'day


If my post helped answer your query, please consider marking it as a solution.


0 Avaliação positiva