Zum Hauptinhalt springen
POST
/
visitor-identification
/
v3
/
tokens
/
create
Generate a token
curl --request POST \
  --url https://api.hubapi.com/visitor-identification/v3/tokens/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "visitor-email@example.com",
  "firstName": "Gob",
  "lastName": "Bluth"
}'
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Professional
Sales HubSales Hub -Professional
Service HubService Hub -Professional
Content HubContent Hub -Professional
Diese API erfordert einen der folgenden Bereiche:
conversations.visitor_identification.tokens.create

Authorizations

Authorization
string
header
required

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

Body

application/json

Information used to generate a token

email
string
required

Die E-Mail des Besuchers, den Sie identifizieren möchten

firstName
string

Der Vorname des Besuchers, den Sie identifizieren möchten. Dieser Wert wird in HubSpot nur für neue Kontakte und vorhandene Kontakte mit unbekanntem Vornamen festgelegt. Optional.

lastName
string

Der Nachname des Besuchers, den Sie identifizieren möchten. Dieser Wert wird in HubSpot nur für neue Kontakte und vorhandene Kontakte mit unbekanntem Nachnamen festgelegt. Optional.

Response

successful operation

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

token
string
required