v4
latestOpenAPI 3.1.02026-08-03427198448.4 KBSave Attribution
Store UTM attribution data for the authenticated user.
Priority-aware first-touch (upsert_user_attribution SQL function): a 'frontend' write upgrades fallback rows ('clerk_webhook', 'frontend_fallback') but never overwrites an equal-priority source ('frontend', 'mcp_oauth') — and vice versa.
post/api/user/attribution
Query parameters
user_idstring
org_idstring
Response
Successful Response
{"stackTrail":"paths:/api/user/attribution:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}