Reccomended connection timeout

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
Codemzipwhip
User
Posts: 1
Joined: Tue Jun 16, 2020 2:39 pm

Reccomended connection timeout

Post by Codemzipwhip »

Hello,
Our integration with the API has recently been hitting timeouts when refreshing tokens resulting in a few customers losing their connection. What is the recommended time we wait for a response from the refresh token call?
khenle
User
Posts: 7
Joined: Wed Feb 26, 2020 12:31 pm

Re: Reccomended connection timeout

Post by khenle »

Hello,

Access tokens are valid for 10 minutes. However, the refresh token has no expiration date/time but it does expire when a new access token and refresh token are generated.

If there are conflicting oauth calls, this can cause the refresh token to be expired. When you make the oauth call with a particular set of user credentials, it will invalidate any previously issued tokens.

Additionally, The GET /login call has an optional ttl parameter. The default is 10 minutes if you do not specify a ttl in the login call.

Hope this helps!
Post Reply