APIs & Integrations

ZGO
Participant

Engagements API to import Emails. Can't include "CC" and "BCC" Field Names

I am trying to use the Engagements API to import Emails.  It all works fine until I try to include the "CC" and "BCC" fields.  When I include those fields I get the following error:

------------------------------------- 

 "status": "error",
"message": "Invalid JSON input: Unexpected token (VALUE_STRING), expected FIELD_NAME: at line 1, column 95",
"correlationId": "51577954-3822-4df4-9e64-d162238d31cc",
"requestId": "d1d9a061e9e0ae6e6271a6571c4a2e8e"

------------------------------------------------------------

A snippet of that section of the JSON looks like this:

"metadata": {
"from": {
"email": "jon@gmail.com"
},
"to": [
{
"email": "kim@gmail.com"
}
],
"cc": [ "susie@gmail.com"],


"subject": "Re: Introduction",

---------------------------------------------------

Any help would be greatly appreciated

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Engagements API to import Emails. Can't include "CC" and "BCC" Field Names

Hey @ZGO ,

 

When including a CC or BCC, make sure the emails are being included in the same format as the to field:

{
"email": "contact name <test@test.com>"
}

0 Upvotes