APIs & Integrations

MSamovarov
Participante

Subscriptions timeline for a portal snapshot question

resolver

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 Soluciones aceptada
himanshurauthan
Solución
Líder intelectual | Partner nivel Elite
Líder intelectual | Partner nivel Elite

Subscriptions timeline for a portal snapshot question

resolver

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

Ver la solución en mensaje original publicado

2 Respuestas 2
himanshurauthan
Solución
Líder intelectual | Partner nivel Elite
Líder intelectual | Partner nivel Elite

Subscriptions timeline for a portal snapshot question

resolver

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
Equipo de producto de HubSpot
Equipo de producto de HubSpot

Subscriptions timeline for a portal snapshot question

resolver

@himanshurauthan , any thoughts here 🙏