HubSpot · JSON Structure

Hubspot Oauth Token Response Structure

Response containing the new access token and related information

Type: object Properties: 5 Required: 4
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

TokenResponse is a JSON Structure definition published by HubSpot, describing 5 properties, of which 4 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

access_token token_type expires_in refresh_token id_token

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Response containing the new access token and related information",
  "name": "TokenResponse",
  "properties": {
    "access_token": {
      "type": "string",
      "description": "The new access token"
    },
    "token_type": {
      "type": "string",
      "description": "The type of token (always 'bearer')"
    },
    "expires_in": {
      "type": "integer",
      "description": "Number of seconds until the access token expires"
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token for obtaining new access tokens"
    },
    "id_token": {
      "type": "string",
      "description": "The ID token (only returned if openid scope was requested)"
    }
  },
  "required": [
    "access_token",
    "token_type",
    "expires_in",
    "refresh_token"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}