How to increase session timeout on REST API calls | Community
Skip to main content
Jake_Whitcomb
Level 2
June 22, 2016
Question

How to increase session timeout on REST API calls

  • June 22, 2016
  • 2 replies
  • 13399 views

We want to increase the session timeout on API calls, specifically on create/update leads REST API call developers.marketo.com/documentation/rest/createupdate-leads/.

What is the best practice for setting the session timeout, and how do you accomplish this? 90 seconds is default timeout.

2 replies

Jonathan_Wu
Level 3
June 22, 2016

Hi Jake,

This is a hard coded timeout and cannot be increased, but you might try using asyncProcessing as a workaround

Kenny_Elkington
Adobe Employee
Adobe Employee
June 22, 2016

Why are you trying to change the timeout?

Jake_Whitcomb
Level 2
June 27, 2016

On occasion, we receive "SocketTimeoutException: Read timed out" error when our upsertLeads request takes longer than the session timeout. Right now we do not set asyncProcessing param on these calls.