Web Users

Create or update web user

Creates a new web user or updates existing one based on firebaseUid. Returns webUserId to store in localStorage.

post/v1/web-users

Request

  • Base URL
    https://api.miaai.chat (the document declares no server; this is the origin it was published from)
  • URL
    https://api.miaai.chat/v1/web-users
  • Auth
    HTTP bearer

Headers

originstring required

Request body

firebaseUidstring
emailstring
funnelTypestring required

Funnel variant identifier (e.g., "main", "dialogue", "quick")

funnelAnswersobject required
amplitudeDeviceIdstring
facebookPixelIdstring
localestring required
userAgentstring required
referrerstring
deviceType'mobile' | 'tablet' | 'desktop'
adMetadataobject

Ad/campaign metadata - all URL query params from ad links (e.g. campaign_id, adset_id, ad_id, affid, _subid, _token, etc.)

experimentsobject

A/B test experiment assignments (experimentId -> assignment)

Response

Web user created or updated successfully

webUserIdstring required
createdboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.