I’m using hubspot-api-php for do operation in HubSpot.
When I try to get single contact by objectId with more than 350 properties it gives me error like: 414 Request-URI Too Large. Can anyone suggest me what can I do for handle such type of instance? What’s the maximum limit of character in API query parameter?
Thanks,
Hey, @KPadhiyar
The documentation for these endpoints doesn’t explicitly list a character limit. Have you tried using the Search API instead? Other posters who’ve hit the same limitation have worked around it by using the Search API. The Search API does list the query limitations in the documentation, which is helpful: “A query can contain a maximum of 3,000 characters. If the body of your request exceeds 3,000 characters, a 400 error will be returned”.
Best,
Jaycee
@Jaycee_Lewis The problem has been resolved. We can use batch API for this kind of issues. Thanks for the reply.
Hi @KPadhiyar
Are you looking for a particular contact or do you want all contacts?
Are these properties HubSpot defined or contacts-custom property?
here is the link of contact API - Accounts Dashboard | HubSpot
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!
@GRajput I want for particular contact and properties can be any HubSpot defined or custom. Batch API works for me. I’ve already reply in this thread as Accepted Solution.