APIs & Integrations

richard3
Member

What is the field "expires_in" in the returned obj from /oauth/v1/token

I’m using OAuth 2.0 to get the access token. However, I don’t understand the field “expires_in” for this API:

Get OAuth 2.0 Access Token and Refresh Tokens

POST /oauth/v1/token

It said there is an “expires_in” field in the access token return result. What’s the type and format of this field? Does it mean “seconds”? It’s not unix time to my understanding.

0 Upvotes
1 Reply 1
3PETE
HubSpot Employee
HubSpot Employee

What is the field "expires_in" in the returned obj from /oauth/v1/token

@richard It is in seconds. You access Token will expire every 6 hours.

0 Upvotes