Hey everyone,
I’m seeing some weird intermittent behavior with the Get All Contacts endpoint. It returns a 200, but no contacts. I have this as a function in my app which hasn’t changed in months. Addtionally this user has over 20k contacts. Any thouhgts?
>>> access_token = user.hstoken.access_token
>>> headers = {'Authorization': "Bearer %s" % access_token,
... 'Content-Type': 'application/json'}
>>> args = dict(count='100', property=[
... 'vid', 'firstname', 'lastname', 'email', 'renewal_date',
... 'join_date', 'member_type', 'member_status', 'lastmodifieddate'],
... showListMemberships=True)
>>> resp = requests.get('https://api.hubapi.com/contacts/v1/lists/all/contacts/all',
... headers=headers, params=args)
>>> resp
<Response [200]>
>>> resp.json()
{'contacts': [], 'has-more': False, 'vid-offset': 0}
For the HubSpot folks, request ID: e27789ae-0058-4348-9e39-378565d9925c
Another odd thing, the endpoint in the App Monitoring view lists this endpoint as
/contactslistseg/v1/lists/all/contacts/all