APIs & Integrations

mmaddiona
Contributor

Retrieve user BCC address via API

SOLVE

Is it possible to retrieve the BCC address for email tracking via Hubspot API?

0 Upvotes
1 Accepted solution
SAMsan
Solution
Contributor

Retrieve user BCC address via API

SOLVE

You can narrow down filters to suit your needs (direction, etc.) but it could indeed lead to errors...
I never saw such an endpoint. But you can add BCC log in your Hubspot account as mentionned on this post: Log email in your CRM with the BCC or forwarding address (hubspot.com)

View solution in original post

3 Replies 3
SAMsan
Contributor

Retrieve user BCC address via API

SOLVE

Hi @mmaddiona 

 

Did you tried to search all sent email from to targeted sender?

curl https://api.hubapi.com/crm/v3/objects/emails/search \
  --request POST \
  --header "Content-Type: application/json" \
  --data '{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "hs_email_from_email",
            "operator": "EQ",
            "value": "user@domain.com"
          }
        ]
      }
    ]
  }'

 

 

0 Upvotes
mmaddiona
Contributor

Retrieve user BCC address via API

SOLVE

Hi @SAMsan this could be a good tricky solution, but it could lead to errors (for example if email are logged from external, without the BCC address or using a different one). I was wondering if there is a specific API to retrieve this field

0 Upvotes
SAMsan
Solution
Contributor

Retrieve user BCC address via API

SOLVE

You can narrow down filters to suit your needs (direction, etc.) but it could indeed lead to errors...
I never saw such an endpoint. But you can add BCC log in your Hubspot account as mentionned on this post: Log email in your CRM with the BCC or forwarding address (hubspot.com)