Web Users

Affiliate link entry (GEN-1317)

Creates an anonymous Firebase user, web user (funnel type + UTM/ad attribution) and acquisition session, resolves the model by public slug, and returns a Firebase custom token so the visitor lands straight in the chat.

post/v1/web-users/affiliate/start

Headers

originstring required

Request body

modelSlugstring

Public slug of the model to open a chat with. Omitted by the home-screen entry (/aff, GEN-1561): the visitor picks a character in the catalog instead.

affiliateIdstring

Alias of utm_source for partner links written as ?affid= (GEN-1561). Used only when the link carries no utm_source of its own — the reports know one partner field, not two.

funnelTypestring

Funnel type recorded on the web user / acquisition session. Defaults to "aff_1".

localestring
userAgentstring
amplitudeDeviceIdstring

Response

Affiliate entry successful

firebaseCustomTokenstring required

Firebase custom token for anonymous auth

modelIdstring nullable required

Resolved model ID for the chat, or null when the link carried no model slug (home-screen entry).

Changes

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