Passer au contenu principal
GET
/
oauth
/
v1
/
access-tokens
/
{token}
Get metadata for OAuth 2.0 access token
curl --request GET \
  --url https://api.hubapi.com/oauth/v1/access-tokens/{token}
{
  "token": "<string>",
  "user": "<string>",
  "hub_domain": "<string>",
  "scopes": [
    "<string>"
  ],
  "hub_id": 123,
  "app_id": 123,
  "expires_in": 123,
  "user_id": 123,
  "token_type": "<string>"
}

Supported products

Paramètres de chemin

token
string
requis

The access token that you want to get the information for.

Réponse

Access token metadata retrieved successfully

token
string
requis

The access token

user
string
requis

Email address of the HubSpot user

hub_domain
string
requis

The hub domain

scopes
string[]
requis

List of scopes granted to the token

hub_id
integer
requis

The Hub ID that the token is associated with

app_id
integer
requis

The app ID

expires_in
integer
requis

Number of seconds until the token expires

user_id
integer
requis

The user ID

token_type
string
requis

The type of token

Last modified on April 14, 2026