Skip to main content
POST
Error

Corpo

application/json
publishable_key
string
obrigatório

uk_pk_live_… or uk_pk_test_….

anonymous_id
string

Required unless external_id is present.

name
string
attribution
object

First touch, captured on the visitor at first load and preserved through a merge. All fields optional; empty means unknown.

external_id
string

Federated mode only.

email
string<email>

Stored as an attribute. Never an identity edge on this route.

hash
string

hex(HMAC-SHA256(identity_secret, external_id)). Computed on the developer's server, never in the browser.

Resposta

The contact already existed.

contact
object

One of the developer's own users — anonymous or identified.

token
string

Contact session token, uk_ct_….

expires_at
string<date-time>
environment
enum<string>

The publishable key's environment.

Opções disponíveis:
live,
test
verified
boolean

True only when a valid HMAC hash proved the external_id.