I'm using the "get all tickets"(https://developers.hubspot.com/docs/methods/tickets/get-all-tickets) API call, but I'm trying to get around 600 properties, some with very long names. If I try to get them all in one call I receive "414 Request-URI Too Large", which is expected, but I was unable to find what is the maximum size allowed. Trying different numbers I discovered the with a URL request of about 16300 I can still perform the request. My question is, can I trust that this number will be mantained? Do you have a more precision definition? is this a constant for all requests?
Sorry wasn't clear I realise (given there is a thing called lists).
All of the object APIs have a list capability (i.e. get all data) https://developers.hubspot.com/docs/api/crm/contacts GET/crm/v3/objects/contacts They are GET, not POST. To retrieve properties you have to pass the properties array on the URL as a parameter so you get something like this
curl --request GET \
--url 'https://api.hubapi.com/crm/v3/objects/contacts?limit=100&properties=email%2Csomecustomproperty%2Canothercustomproperty&archived=false&hapikey=YOUR_HUBSPOT_API_KEY'
if you want every property you have to put them all on the URL query string.
1) is there a post version of the List API? (documentation doesn't seem to indicate there is)| 2) Is there a 'get all properties' request (once again documentation doesn't seem to indicate there is)
If you have additional or more specific questions, I'd encourage you to create a new post, as this post is older and posting here may not get you the visibility your question deserves.
Sorry for the delay, the method is described as a GET, so I am gessing that I can't use a POST method.
About the limit, the GET limit is actually defined between client and server, the 2048 limit is a defaut for some browsers, but in this case I was able to get about 16300 characters without an error, so that isn't the limit.
Sorry, I wasn't very clear – as far as I know there's a limit to query lengths in a URI.
The GET method from the API should return a significant amount of data easily.
To me – from the error "414 Request-URI Too Large" I would assume the query URI called by you code is too long. Difficult to know without seeing your code.
Can you just request all properties? Then the Request URI would be shorter?