---
title: "tells the backend that the user was referred by someone"
method: POST
path: "/api/referral/referred/by"
tags: ["Referral"]
---

# tells the backend that the user was referred by someone

`POST /api/referral/referred/by`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/referral/referred/by`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `GoogleToken`

## Request body

- ReferredBy: Object containing referral code to give reward to
  - `refCode` string, nullable
  - `programVersion` string, nullable: Version of the referral offer shown to the user.
  - `locale` string, nullable: Locale in which the referral offer was shown.

## Response `200`

OK

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-10-12** `dc2f7ffe2903`: 8 info
  - added the new optional request property `locale` (media type: application/json-patch+json)
  - added the new optional request property `locale` (media type: application/json)
  - added the new optional request property `locale` (media type: text/json)
  - added the new optional request property `locale` (media type: application/*+json)
  - …4 more
- **2026-08-04** `41f7cdd4406b`: 4 info
  - the endpoint scheme security `Bearer` was added to the API
  - the endpoint scheme security `GoogleToken` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/referral/referred/by/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
