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

# Token introspection endpoint

> Retorna a validade e os metadados dos tokens de acesso e atualização.

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "Produtos suportados",
    description: "Requer um dos seguintes produtos ou superior.",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "Grátis",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<Accordion title="Supported products" defaultOpen="true" icon="cubes">
  <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
</Accordion>


## OpenAPI

````yaml specs/legacy/v3/auth-oauth-v3.json POST /oauth/v3/token/introspect
openapi: 3.0.1
info:
  title: Auth Oauth
  description: Basepom for all HubSpot Projects
  version: v3
  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/v3/token/introspect:
    post:
      tags:
        - Advanced
      summary: Endpoint de introspecção de token
      description: Retorna a validade e os metadados dos tokens de acesso e atualização.
      operationId: post-/oauth/v3/token/introspect_/oauth/v3/token/introspect
      parameters: []
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                client_id:
                  type: string
                client_secret:
                  type: string
                token:
                  type: string
                token_type_hint:
                  type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenInfoResponseBaseIF'
        default:
          $ref: '#/components/responses/Error'
          description: ''
components:
  schemas:
    TokenInfoResponseBaseIF:
      properties: {}
      oneOf:
        - $ref: '#/components/schemas/PublicAccessTokenInfoResponse'
        - $ref: '#/components/schemas/PublicRefreshTokenInfoResponse'
    PublicAccessTokenInfoResponse:
      required:
        - active
        - app_id
        - client_id
        - expires_in
        - hub_id
        - is_private_distribution
        - scopes
        - signed_access_token
        - token
        - token_type
        - token_use
        - user_id
      type: object
      properties:
        active:
          type: boolean
        app_id:
          type: integer
          format: int32
        client_id:
          type: string
        expires_in:
          type: integer
          format: int64
        hub_domain:
          type: string
        hub_id:
          type: integer
          format: int32
        is_private_distribution:
          type: boolean
        scopes:
          type: array
          items:
            type: string
        signed_access_token:
          $ref: '#/components/schemas/SignedAccessToken'
        token:
          type: string
        token_type:
          type: string
        token_use:
          type: string
          default: access_token
          enum:
            - access_token
        user:
          type: string
        user_id:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    PublicRefreshTokenInfoResponse:
      required:
        - active
        - app_id
        - client_id
        - hub_id
        - scopes
        - token
        - token_type
        - token_use
        - user_id
      type: object
      properties:
        active:
          type: boolean
        app_id:
          type: integer
          format: int32
        client_id:
          type: string
        hub_domain:
          type: string
        hub_id:
          type: integer
          format: int32
        scopes:
          type: array
          items:
            type: string
        token:
          type: string
        token_type:
          type: string
        token_use:
          type: string
          default: refresh_token
          enum:
            - refresh_token
        user:
          type: string
        user_id:
          type: integer
          format: int32
      x-hubspot-sub-type-impl: true
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: A categoria de erro
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Contexto sobre a condição do erro
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: >-
            Um identificador exclusivo para a solicitação. Inclua este valor em
            relatórios de erro ou tickets de suporte
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: mais informações sobre o erro
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            Um mapa de nomes de links para URIs associados que contêm
            documentação sobre o erro ou as etapas de correção recomendadas
        message:
          type: string
          description: >-
            Uma mensagem legível por humanos que descreve o erro, juntamente com
            as etapas de correção, quando apropriado
          example: An error occurred
        subCategory:
          type: string
          description: >-
            Uma categoria específica que contém mais detalhes específicos sobre
            o erro
      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
    SignedAccessToken:
      required:
        - appId
        - appInstallId
        - audience
        - expiresAt
        - hubId
        - hublet
        - installingUserId
        - isPrivateDistribution
        - isServiceAccount
        - isUserLevel
        - newSignature
        - scopeToScopeGroupPks
        - scopes
        - signature
        - trialScopeToScopeGroupPks
        - trialScopes
        - userId
      type: object
      properties:
        appId:
          type: integer
          format: int32
        appInstallId:
          type: string
        audience:
          type: string
        expiresAt:
          type: integer
          format: int64
        hubId:
          type: integer
          format: int32
        hublet:
          type: string
        installingUserId:
          type: integer
          format: int32
        isPrivateDistribution:
          type: boolean
        isServiceAccount:
          type: boolean
        isUserLevel:
          type: boolean
        newSignature:
          type: string
        scopeToScopeGroupPks:
          type: string
        scopes:
          type: string
        signature:
          type: string
        trialScopeToScopeGroupPks:
          type: string
        trialScopes:
          type: string
        userId:
          type: integer
          format: int32
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: O código de status associado ao detalhe do erro
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Contexto sobre a condição do erro
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: O nome do campo ou parâmetro no qual o erro foi encontrado.
        message:
          type: string
          description: >-
            Uma mensagem legível por humanos que descreve o erro, juntamente com
            as etapas de correção, quando apropriado
        subCategory:
          type: string
          description: >-
            Uma categoria específica que contém mais detalhes específicos sobre
            o erro
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'

````