---
title: "Set Referral Config"
method: POST
path: "/api/admin/referral/config/{key}"
tags: ["Admin"]
---

# Set Referral Config

`POST /api/admin/referral/config/{key}`

## Request

- Base URL: `https://api.xfinlab.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xfinlab.com/api/admin/referral/config/{key}`
- Auth: none declared

Growth OS Phase 6 -- toggle one referral reward amount (points
bonuses, Pro-grant days, or the Pro+ threshold) live, no redeploy.
`value` is a plain int query/body param (FastAPI accepts it as a
query param here, matching this file's existing convention for
simple scalar admin actions -- see issue_key()/mark_annual_pro()
above). Validated against the known key whitelist in
services/referral_service.py's set_config().

## Path parameters

- `key` string, required

## Query parameters

- `value` integer, required
- `token` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xfinlab/apis/xfinlab-api.md) · [All operations](https://skmtc.dev/xfinlab/apis/xfinlab-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfinlab/apis/xfinlab-api/revisions/205f85614bc6?raw)
