---
title: "Attribute"
method: POST
path: "/v1/referrals/attribute"
tags: ["referrals"]
---

# Attribute

`POST /v1/referrals/attribute`

## Request

- Base URL: `https://api.usekeel.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.usekeel.io/v1/referrals/attribute`
- Auth: none declared

Record a referral attribution. Called when a user signs up with a referral code.

## Headers

- `Authorization` string, nullable
- `X-Org-Id` string, nullable

## Request body

- AttributeRequest
  - `referral_code` string, required
  - `source` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/usekeel/apis/keel-api.md) · [All operations](https://skmtc.dev/usekeel/apis/keel-api/llms.txt) · [OpenAPI document](https://skmtc.dev/usekeel/apis/keel-api/revisions/3191ca10b0ab?raw)
