v2

latestOpenAPI 3.1.02026-08-05267431678.1 KB
users

Record Signup Attribution

Persist first-touch marketing attribution (UTM + gclid) for the user.

Write-once: each field is only set when currently NULL, so a later sign-in never overwrites the original campaign. An empty payload is a no-op.

Args: request: First-touch attribution captured at signup. auth: Authenticated user context.

Returns: SignupAttributionResponse indicating whether anything was newly written.

Raises: HTTPException: 500 if the persistence layer fails.

post/users/me/attribution

Request body

utm_sourcestring nullable
utm_mediumstring nullable
utm_campaignstring nullable
utm_contentstring nullable
utm_termstring nullable
gclidstring nullable
twclidstring nullable
rdt_cidstring nullable

Response

Successful Response

successboolean required
recordedboolean required