---
title: "Attribution"
method: POST
path: "/auth/attribution"
tags: ["portal"]
---

# Attribution

`POST /auth/attribution`

## Request

- Base URL: `https://api.relayxapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.relayxapi.com/auth/attribution`
- Auth: none declared

First-party attribution (docs/analytics-plan.md Phase 2). The dashboard calls this once after auth
with the same-origin first-touch blob + anon_id: store first-touch (set-once) and stitch this
browser's prior anonymous events to the user. Best-effort; never fails the caller.

## Headers

- `authorization` string, nullable

## Request body

- Attribution
  - `attribution` object, nullable
  - `anon_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/relayxapi/apis/relayx-x-data-api.md) · [All operations](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/relayxapi/apis/relayx-x-data-api/revisions/6c9acb520594?raw)
