APIs & Integrations

rishabhdhar
Membre

Missing Response Headers - CRM API [ Companies ]

I am using the Search API ( Filter, Sort, and Search CRM Objects ) to query for companies with certain properties. I am trying to handle throttling and would like to check the response headers for 'X-HubSpot-RateLimit-Remaining' before each request to ensure I do not go over the limit. 


As per the documentation 
here I should be receiving that header with any request that I use an API key (which I am). Any idea why I am not receiving it? 
0 Votes
1 Réponse
WendyGoh
HubSpot Employee
HubSpot Employee

Missing Response Headers - CRM API [ Companies ]

Hey @rishabhdhar,

 

In order for me to further troubleshoot this, could you share with me the following:

1. The portal ID in question

2. The exact request URL 

3. The POST body

4. How are you retrieving the response heders?

 

On my end, when I POST http://api.hubapi.com/crm/v3/objects/contacts/search?hapikey={{myHapiKey}} 

 

with the following body

{
    "filterGroups":[
      {
        "filters":[
          {
            "propertyName": "firstname",
            "operator": "EQ",
            "value": "Alice"
          }
        ]
      }
    ]
  }

on Postman, I'm seeing the "X-HubSpot-RateLimit-Daily-Remaining" under the returned headers response. 

 

0 Votes