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 Solução aceita
himanshurauthan
Solução
Autoridade no assunto | Parceiro Elite
Autoridade no assunto | Parceiro 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

Exibir solução no post original

2 Respostas 2
himanshurauthan
Solução
Autoridade no assunto | Parceiro Elite
Autoridade no assunto | Parceiro 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
Equipe de Produto da HubSpot
Equipe de Produto da HubSpot

Subscriptions timeline for a portal snapshot question

resolver

@himanshurauthan , any thoughts here 🙏