# Where is the value for subscriptionTypeId?

**URL:** <https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449>\
**Category:** APIs & Integrations\
**Tags:** email, forms, free\
**Created:** [November 4, 2021, 12:08am UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449 "2021-11-04T00:08:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfs\_cea\_au](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfs_cea_au/32/35608_2.png) [@mfs\_cea\_au](https://community.hubspot.com/u/mfs_cea_au)\
**Post date:** [November 4, 2021, 12:08am UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449/1 "2021-11-04T00:08:08Z")

</div>

In the examples, concent \ communications \ subscriptionTypeId has a value of 999, but I’m not seeing / understanding where that 999 is coming from.

Put another way, if I created my own subscription type, how would I know its subscriptionTypeId?

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [November 4, 2021, 4:22pm UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449/2 "2021-11-04T16:22:56Z")

</div>

[@mfs\_cea\_au](https://community.hubspot.com/t5/user/viewprofilepage/user-id/259250)

You can see all available subscription types by hitting this endpoint

`https://api.hubapi.com/communication-preferences/v3/definitions`

An example is on [this doc](https://developers.hubspot.com/docs/api/marketing-api/subscriptions-preferences)

---

<div class="post-metadata">

**Author:** ![mfs\_cea\_au](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfs_cea_au/32/35608_2.png) [@mfs\_cea\_au](https://community.hubspot.com/u/mfs_cea_au)\
**Post date:** [November 8, 2021, 8:24pm UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449/3 "2021-11-08T20:24:53Z")

</div>

@dennisedson - Great thanks.

btw, aside from via the API, when viewing a Contact \> Communication subscription \> Right sidebar slide out has a select. Something like this (below). You can get the ID with Inspect as well 😉

\<span class=“private-typeahead-result private-typeahead-result–selectable” data-option-value=“THE ID IS HERE” role=“option”\>\<span class=“”\> \<span class=“private-dropdown\_\_item\_\_label” data-option-text=“true”\>Marketing Email | Marketing Information\</span\> \</span\>\</span\>

---

<div class="post-metadata">

**Author:** ![MHolzer](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@MHolzer](https://community.hubspot.com/u/MHolzer)\
**Post date:** [January 2, 2024, 10:50am UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449/4 "2024-01-02T10:50:07Z")

</div>

Just btw there is a wayyyyyyy easier solution then all of the above ways mentioned which takes only a couple of seconds!  
If you go to:  
Settings → Properties → Contact properties → type: opted out of  
then navigate to the subscription Type you want to see the id for and then go to the internal name at the end the subscriptionTypeid is shown there.  
Your welcome 🙂

 ![MHolzer_0-1704192591645.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/f/df09bd859446b9e79e4ea4d48004bd317071e25a.jpeg)

---

<div class="post-metadata">

**Author:** ![MZimo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mzimo/32/51342_2.png) [@MZimo](https://community.hubspot.com/u/MZimo)\
**Post date:** [October 7, 2024, 12:58pm UTC](https://community.hubspot.com/t/where-is-the-value-for-subscriptiontypeid/46449/5 "2024-10-07T12:58:09Z")

</div>

Thank you!
