# CRM Api: value for HTTP request timeout?

**URL:** <https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** crm, best-practices\
**Created:** [September 27, 2024, 6:56am UTC](https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195 "2024-09-27T06:56:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baernhardj](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/baernhardj/32/72679_2.png) [@baernhardj](https://community.hubspot.com/u/baernhardj)\
**Post date:** [September 27, 2024, 6:56am UTC](https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195/1 "2024-09-27T06:56:16Z")

</div>

Hi

I have custom code (C#) which is getting data from HubSpot CRM via the CRM API and a private app.

Sometimes the API returns the response faster, sometimes it takes more time.

What is the best value for the request timeout?

In C# is the default value 100 sec.

The question popped up due to technical problems in the HubSpot system this week (25.09.).

Thanks

---

<div class="post-metadata">

**Author:** ![KhushbooP11](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/khushboop11/32/8252_2.png) [@KhushbooP11](https://community.hubspot.com/u/KhushbooP11)\
**Post date:** [September 27, 2024, 8:54am UTC](https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195/2 "2024-09-27T08:54:12Z")

</div>

Hi @baernhardj,

I’d recommend setting your timeout to something like 60–90 seconds. The default 100 sec is usually fine, but if you’re seeing timeouts due to recent issues, lowering it a bit might help.

You can also implement retry logic, such as retrying failed requests 2–3 times with exponential backoff.  
That way, if HubSpot is slow or having temporary issues, your code can handle it without needing long timeouts.

I hope it helps, let me know if you need to [talk](https://calendly.com/khushboo-pokhriyal/30min?month=2024-08)!

Khushboo Pokhriyal

Growth & Operations

GroRapid Labs

[LinkedIn |](https://www.linkedin.com/in/khushboopokhriyal)9315044754 | [Email |](mailto:khushboo.pokhriyal@grorapid.com)[Website](https://www.grorapidlabs.com/)

---

<div class="post-metadata">

**Author:** ![doperation](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@doperation](https://community.hubspot.com/u/doperation)\
**Post date:** [October 8, 2024, 4:15pm UTC](https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195/3 "2024-10-08T16:15:43Z")

</div>

> * * *
> 
> @KhushbooP11[mcdvoice](https://mcdvoice.fun/) wrote:
> 
> Hi @baernhardj,
> 
> I’d recommend setting your timeout to something like 60–90 seconds. The default 100 sec is usually fine, but if you’re seeing timeouts due to recent issues, lowering it a bit might help.
> 
> You can also implement retry logic, such as retrying failed requests 2–3 times with exponential backoff.  
> That way, if HubSpot is slow or having temporary issues, your code can handle it without needing long timeouts.
> 
> I hope it helps, let me know if you need to [talk](https://calendly.com/khushboo-pokhriyal/30min?month=2024-08)!
> 
> Khushboo Pokhriyal
> 
> Growth & Operations
> 
> GroRapid Labs
> 
> [LinkedIn |](https://www.linkedin.com/in/khushboopokhriyal)9315044754 | [Email |](mailto:khushboo.pokhriyal@grorapid.com)[Website](https://www.grorapidlabs.com/)
> 
> * * *

Thank you for the insightful recommendation on the timeout settings! I appreciate your suggestion to implement retry logic with exponential backoff as well. This will definitely help manage the variability in response times from the HubSpot API.

---

<div class="post-metadata">

**Author:** ![baernhardj](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/baernhardj/32/72679_2.png) [@baernhardj](https://community.hubspot.com/u/baernhardj)\
**Post date:** [October 9, 2024, 6:11am UTC](https://community.hubspot.com/t/crm-api-value-for-http-request-timeout/117195/4 "2024-10-09T06:11:22Z")

</div>

Hi

Thanks for your reply.

I’m considering to implement the retry logic.

Best regards
