# Unique ID maximum values

**URL:** <https://community.hubspot.com/t/unique-id-maximum-values/11307>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [February 2, 2018, 2:01pm UTC](https://community.hubspot.com/t/unique-id-maximum-values/11307 "2018-02-02T14:01:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh1/32/58551_2.png) [@josh1](https://community.hubspot.com/u/josh1)\
**Post date:** [February 2, 2018, 2:01pm UTC](https://community.hubspot.com/t/unique-id-maximum-values/11307/1 "2018-02-02T14:01:18Z")

</div>

Hi, we are looking to store contact ids (and owner ids) in our database for syncing.

Two questions;

1. Will these ids always be integers or will they ever by alphanumeric?
2. If they are integers, what is the maximum value?  
OR  
If they are alphanumeric, what is the maximum string length?

Thanks!

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [February 6, 2018, 7:22pm UTC](https://community.hubspot.com/t/unique-id-maximum-values/11307/2 "2018-02-06T19:22:11Z")

</div>

Hi @josh,

Contact `vid` values are integers, so you won’t see any alphanumeric strings. In theory, `vids` can be as large as needed; they’re currently stored as unsigned 64-bit integers, but could be scaled up to be arbitrarily large. In practice, you likely won’t see `vids` larger than 7-8 digits. Can I ask why you’re interested in the maximum size of `vids`?

---

<div class="post-metadata">

**Author:** ![josh1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/josh1/32/58551_2.png) [@josh1](https://community.hubspot.com/u/josh1)\
**Post date:** [February 7, 2018, 9:35am UTC](https://community.hubspot.com/t/unique-id-maximum-values/11307/3 "2018-02-07T09:35:39Z")

</div>

Hi [@Derek\_Gervais](https://community.hubspot.com/u/derek_gervais) ,

Thanks for your helpful answer!  
To facilitate syncing we are looking to store vids in our database and I just wanted to make sure I was using the correct data types for the fields.
