> ## Documentation Index
> Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

---
id: fffe35f3-09df-4204-8253-e23027558e2f
---

# Refresh an access token

> Authenticates a client and returns access and refresh tokens.

> [accordion] Supported products


## OpenAPI

````yaml specs/2026-03/auth-oauth-v2026-03.json POST /oauth/2026-03/token
openapi: 3.0.1
info:
  title: Auth Oauth
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
paths:
  /oauth/2026-03/token:
    post:
      tags:
        - Advanced
      summary: OAuth token endpoint
      description: Authenticates a client and returns access and refresh tokens.
      operationId: post-/oauth/2026-03/token_/oauth/v3/token
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                assertion:
                  type: string
                client_assertion:
                  type: string
                client_assertion_type:
                  type: string
                client_id:
                  type: string
                client_secret:
                  type: string
                code:
                  type: string
                code_verifier:
                  type: string
                grant_type:
                  type: string
                  enum:
                    - authorization_code
                    - client_credentials
                    - refresh_token
                    - urn:ietf:params:oauth:grant-type:jwt-bearer
                redirect_uri:
                  type: string
                refresh_token:
                  type: string
                scope:
                  type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenResponseIF'
        default:
          $ref: '#/components/responses/Error'
          description: ''
components:
  schemas:
    TokenResponseIF:
      properties: {}
      oneOf:
        - $ref: '#/components/schemas/AccessTokenResponse'
        - $ref: '#/components/schemas/ClientCredentialsTokenResponse'
    AccessTokenResponse:
      required:
        - access_token
        - expires_in
        - refresh_token
        - token_type
        - token_use
      type: object
      properties:
        access_token:
          type: string
          description: >-
            A string representing the access token that allows access to the
            API.
        expires_in:
          type: integer
          description: >-
            An integer in int64 format indicating the duration in seconds until
            the access token expires.
          format: int64
        hub_id:
          type: integer
          description: >-
            An integer representing the unique identifier of the HubSpot account
            (hub) associated with the token.
          format: int32
        id_token:
          type: string
          description: >-
            A string representing the ID token, which is an optional part of the
            response.
        refresh_token:
          type: string
          description: >-
            A string representing the refresh token, which can be used to obtain
            a new access token.
        scopes:
          type: array
          description: >-
            An array of strings specifying the scopes that are granted with the
            access token.
          items:
            type: string
        token_type:
          type: string
          description: A string indicating the type of token issued.
        token_use:
          type: string
          description: >-
            Indicates the usage of the token, which is 'access_token' by
            default. It is a string with a fixed value of 'access_token'.
          default: access_token
          enum:
            - access_token
        user_id:
          type: integer
          description: >-
            An integer representing the unique identifier of the user associated
            with the token.
          format: int32
      x-hubspot-sub-type-impl: true
    ClientCredentialsTokenResponse:
      required:
        - access_token
        - expires_in
        - token_type
        - token_use
      type: object
      properties:
        access_token:
          type: string
          description: A string representing the access token issued.
        expires_in:
          type: integer
          description: >-
            An integer indicating the number of seconds until the token expires,
            in int64 format.
          format: int64
        hub_id:
          type: integer
          description: >-
            An integer representing the HubSpot account ID associated with the
            token.
          format: int32
        id_token:
          type: string
          description: A string representing the ID token, if applicable.
        scopes:
          type: array
          description: An array of strings representing the scopes granted by the token.
          items:
            type: string
        token_type:
          type: string
          description: A string indicating the type of the token.
        token_use:
          type: string
          description: >-
            Indicates the usage of the token, which is 'client_credentials' by
            default.
          default: client_credentials
          enum:
            - client_credentials
        user_id:
          type: integer
          description: An integer representing the user ID associated with the token.
          format: int32
      x-hubspot-sub-type-impl: true
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: The error category
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            A unique identifier for the request. Include this value with any
            error reports or support tickets
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: further information about the error
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            A map of link names to associated URIs containing documentation
            about the error or recommended remediation steps
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
          example: An error occurred
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents an error response returned by the API when an operation
        fails. This component is used in various endpoints to provide detailed
        information about the error encountered.
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: The status code associated with the error detail
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Context about the error condition
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: The name of the field or parameter in which the error was found.
        message:
          type: string
          description: >-
            A human readable message describing the error along with remediation
            steps where appropriate
        subCategory:
          type: string
          description: >-
            A specific category that contains more specific detail about the
            error
      description: >-
        Represents detailed information about an error that occurred in the API.
        This component is used to provide additional context and specifics about
        errors, typically as part of an error response.
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'

````