---
title: "Record Attribution"
method: POST
path: "/api/auth/attribution"
---

# Record Attribution

`POST /api/auth/attribution`

Record where a brand-new account came from. First touch wins.

Fire-and-forget from the client right after sign-in: it never fails the
sign-up, it just returns ``recorded: false`` when the row already exists or
the account is too old to be a genuine sign-up.

## Request body

- AttributionPayload
  - `referrer` string, nullable
  - `landing_path` string, nullable
  - `utm_source` string, nullable
  - `utm_medium` string, nullable
  - `utm_campaign` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openshorts/apis/fastapi.md) · [All operations](https://skmtc.dev/openshorts/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openshorts/fastapi/revisions/8085a0ce516b/schema)
