Pular para o conteúdo principal
POST
/
visitor-identification
/
v3
/
tokens
/
create
Gere um token de identificação para um visitante verificado do site.
curl --request POST \
  --url https://api.hubapi.com/visitor-identification/v3/tokens/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "[email protected]",
  "firstName": "Gob",
  "lastName": "Bluth"
}
'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Produtos suportados

Requer um dos seguintes produtos ou superior.
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -Professional
Service HubService Hub -Professional
Content HubContent Hub -Professional

Autorizações

Authorization
string
header
obrigatório

The access token received from the authorization server in the OAuth 2.0 flow.

Corpo

application/json

Information used to generate a token

email
string
obrigatório

O e-mail do visitante que você deseja identificar

firstName
string

O nome do visitante que você deseja identificar. Esse valor somente será definido no HubSpot para contatos novos e existentes cujo nome seja desconhecido. Opcional.

lastName
string

O sobrenome do visitante que você deseja identificar. Esse valor somente será definido no HubSpot para contatos novos e existentes cujo sobrenome seja desconhecido. Opcional.

Resposta

successful operation

The identification token to be passed to the Conversations JS API to identify the visitor

token
string
obrigatório

Um token de identificação que permite que o visitante seja tratado como um contato conhecido.

Last modified on December 9, 2025