Skip to main content
POST
Create or update a user

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
externalId
string
required
Example:

"user_123"

email
string<email>
anonymousId
string
attributes
object
accounts
object[]

Account memberships — each account is upserted (keyed by its own externalId) and linked to the user. Additive: accounts omitted from a later call are NOT unlinked.

account
object
deprecated

Deprecated — single account membership. Use accounts instead.

tags
string[]

Tag labels, resolved server-side. Unknown labels are silently ignored (tags are created from the dashboard).

categories
string[]

Category labels, resolved server-side. Unknown labels are silently ignored.

Response

Accepted and queued for processing

ok
boolean
Example:

true

requestId
string<uuid>