Just created a new test instance and the search API for contacts is returning 400 Bad Request. The exact same query works in my other test instance (tested with Postman only changing the API key value). I am using a filter with a custom field. The custom field exists in the new instance as it does in the old one.
Is there something I need to configure in HubSpot to allow the Contacts search API to work?
Permissions don't apply to the API key if you generated it from the dev instance. What about the internal property name? The internal name of the property you're targeting could have a little "_" at the end if you accidentally hit your space bar when creating it on the dev instance. If both internal names from both HubSpot portals match I'm not sure what it could be without seeing your requests.
Also, the "dev instance" you're talking about is a HubSpot portal generated via a HubSpot App test account right?
Thanks for your help. I found where the internal field name could be found (click on the "</>" in Edit property) for the custom field that gets searched and it was not what it should be, and I cannot update it. I will have to change some fields and probably re-load my test data.
Thanks for your help. I found where the internal field name could be found (click on the "</>" in Edit property) for the custom field that gets searched and it was not what it should be, and I cannot update it. I will have to change some fields and probably re-load my test data.
Permissions don't apply to the API key if you generated it from the dev instance. What about the internal property name? The internal name of the property you're targeting could have a little "_" at the end if you accidentally hit your space bar when creating it on the dev instance. If both internal names from both HubSpot portals match I'm not sure what it could be without seeing your requests.
Also, the "dev instance" you're talking about is a HubSpot portal generated via a HubSpot App test account right?
Without more information, if you're using the API key then I would double check that it's correct. Also, if you're turning your request in Postman into code, be careful of those filterGroups. They are arrays of objects and then there are filter arrays of objects.