marketing

Capture Attribution

Persist marketing attribution captured client-side.

Called after every successful auth (sign-up and sign-in). Each call inserts a new row so we keep history; the read path in create_checkout_session takes the most-recent row with non-null fields.

post/api/v1/marketing/attribution

Request

  • Base URL: https://api.seoproai.co
  • URL: https://api.seoproai.co/api/v1/marketing/attribution
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize, token URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token)

Request body

fbclidstring nullable
fbpstring nullable
fbcstring nullable
gclidstring nullable
utm_sourcestring nullable
utm_mediumstring nullable
utm_campaignstring nullable
utm_contentstring nullable
utm_termstring nullable
landing_urlstring nullable
referrerstring nullable

Response

Successful Response

unknown required

Changes

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