APIs & Integrations

MSamovarov
Participant

Subscriptions timeline for a portal snapshot question

SOLVE

Hello, I would like to know more about subscriptions timeline for a portal endpoint. I do not quite understand Include Snapshots property. What data type does it take? I assumed that it takes boolean type and made a request:

 

 

https://api.hubapi.com/email/public/v1/subscriptions/timeline?includeSnapshots=true&hapikey=HAPI_KEY

 

 

As a result, apart from other response data I got a strange subscriptionStatuses  field, where results were the same, apart from id's (see image below).

My question is, why this data is the same and what is it?responseresponse

 

1 Accepted solution
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Subscriptions timeline for a portal snapshot question

SOLVE

Hi @MSamovarov,

 

It includes the user's full subscription snapshot with each timeline item and it's similar to this -

https://legacydocs.hubspot.com/docs/methods/email/get_status. It's the same because it shows, all the timeline items and status of a particular email corresponds to that particular subscription.

 

To elaborate this in detail, try these steps -

 

  1. fetch all the subscriptions using this API - https://legacydocs.hubspot.com/docs/methods/email/get_subscriptions

  2. Match the subscription ids in the subscription statuses.

 

This overview will give you more ideas of how this works - https://legacydocs.hubspot.com/docs/methods/email/email_subscriptions_overview

 

Hope this helps,

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

2 Replies 2
himanshurauthan
Solution
Thought Leader | Elite Partner
Thought Leader | Elite Partner

Subscriptions timeline for a portal snapshot question

SOLVE

Hi @MSamovarov,

 

It includes the user's full subscription snapshot with each timeline item and it's similar to this -

https://legacydocs.hubspot.com/docs/methods/email/get_status. It's the same because it shows, all the timeline items and status of a particular email corresponds to that particular subscription.

 

To elaborate this in detail, try these steps -

 

  1. fetch all the subscriptions using this API - https://legacydocs.hubspot.com/docs/methods/email/get_subscriptions

  2. Match the subscription ids in the subscription statuses.

 

This overview will give you more ideas of how this works - https://legacydocs.hubspot.com/docs/methods/email/email_subscriptions_overview

 

Hope this helps,

Digital Marketing & Inbound Expert In Growth Hacking Technology
dennisedson
HubSpot Product Team
HubSpot Product Team

Subscriptions timeline for a portal snapshot question

SOLVE

@himanshurauthan , any thoughts here 🙏