APIs & Integrations

PMicromovilid
Member

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

SOLVE

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 Upvotes
1 Accepted solution
zach_threadint
Solution
Top Contributor

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

SOLVE

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.


View solution in original post

0 Upvotes
1 Reply 1
zach_threadint
Solution
Top Contributor

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

SOLVE

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 Upvotes