APIs & Integrations

tbalthazard
メンバー

Api - Problem to set property hs_email_headers on incoming Email Object

Hi,

 

I try to create an incoming email with api call.

POST https://api.hubapi.com/crm/v3/objects/emails

Body :

 

 

{
    "properties": {
        "hubspot_owner_id": "63590768",
        "hs_email_text": "bodyContent",
        "hs_email_subject": "test hs_email_direction incoming 1",
        "hs_email_direction": "INCOMING_EMAIL",
        "hs_timestamp": 1681894200000,
        "hs_email_status": "SENT"
    },
    "hs_email_headers": {
        "from": {
            "email": "contact1@company1.com"
        },
        "to": [
            {
                "email": "contact2@company2.com"
            },
            {
                "email": "myself@mycompany.com"
            }
        ],
        "cc": [
            {
                "email": "contact3@company3.com"
            }
        ]
    }
}

 

 

Response is 201

 

But when looking on hubspot CRM UI

tbalthazard_0-1681918118452.png

hs_email_headers have been ignored.

 

For an outgoing email same payload with only difference on :

"hs_email_direction": "EMAIL"

The header part in hubspot CRM UI is right

 

Could you helpme on this one as I surely missing something?

 

Regards

Tibo

 

 

0 いいね!
2件の返信
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

Api - Problem to set property hs_email_headers on incoming Email Object

Hey, @tbalthazard. Thanks for flagging this. I'll take your example and to reproduce the issue on my end. 

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 いいね!
tbalthazard
メンバー

Api - Problem to set property hs_email_headers on incoming Email Object

Hello, were you able to reproduce and correct the problem?

Regards

Tibo

0 いいね!