APIs & Integrations

psl86
Member

Marketing API always returns a subscription for random email

When calling the GET endpoint of the "Subscription preferences" in the Marketing API I always get a 200 response with 1 subscription. 

 

You can try i.e.
https://api.hubapi.com/communication-preferences/v3/status/email/asdasd@fghfgh.com?hapikey=YOUR_API_...

 

And you will get the response

 

{
    "recipient": "asdasd@fghfgh.com",
    "subscriptionStatuses": [
        {
            "id": "123456781",
            "name": "Customer Service Communication",
            "description": "Receive feedback requests and customer service information.",
            "status": "SUBSCRIBED",
            "sourceOfStatus": "SUBSCRIPTION_STATUS",
            "brandId": null,
            "preferenceGroupName": null,
            "legalBasis": null,
            "legalBasisExplanation": null
        }
    ]
}

 

Notice that LegalBasis and Explanation is null, while this is required fields when using the Subscribe (POST) part of the API.  

6 Replies 6
vinodchavan102
Participant

Marketing API always returns a subscription for random email

I am also facing same problem.
For any random mail id it is returning status as a 'SUBSCRIBED'
Any solution?

Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Marketing API always returns a subscription for random email

Have not experienced this! But I can reproduce. This is really odd.



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Marketing API always returns a subscription for random email

@psl86 

How was this contact subscribed?  I am struggling to reproduce this issue.

0 Upvotes
psl86
Member

Marketing API always returns a subscription for random email

He was not. Any random email will give me back this subscription. 

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Marketing API always returns a subscription for random email

Interesting

I cannot reproduce in a production portal, but I can in a test portal 🤔

@Teun , have you experienced this?  I am looking to see if this is working as designed

0 Upvotes
AMyers3
Participant

Marketing API always returns a subscription for random email

Would love to know if you found any answers to this, as I'm also having the same problem.