I have a few questions I want to ask

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
Celena
User
Posts: 1
Joined: Thu Sep 12, 2019 2:09 pm

I have a few questions I want to ask

Post by Celena » Thu Sep 12, 2019 2:10 pm

In the response from the API I see that AccessTokens last 10 minutes (600 seconds). But the refresh token doesn't have an expiration listed. Is it safe to assume it will always work? Or is there an expiration on the refresh token, at which time we need a new auth code to start over from scratch?

mholmemi
User
Posts: 24
Joined: Fri Feb 15, 2019 10:31 am

Re: I have a few questions I want to ask

Post by mholmemi » Thu Sep 19, 2019 10:40 am

Hi Celena,

This is Mikaela from Bullhorn Support.

While the refresh tokens don't expire, they will only valid until you generate the next one. A valid refresh token can be used to generate a new access token, which also gives you a new refresh token. Once you have a new access token, you can make the GET /login call again to generate a new BhRestToken.

We advise storing each new refresh token locally so that it can be used programmatically to generate new sessions.

I hope that helps!

Please let me know if you have any additional questions.

Best,
Mikaela
Mikaela Holme-Miller | Tier II/Enterprise Support Analyst

Post Reply