---
title: "Admin: set referral slug"
method: POST
path: "/admin/accounts/{address}/referral-slug"
tags: ["Admin"]
---

# Admin: set referral slug

`POST /admin/accounts/{address}/referral-slug`

## Request

- Base URL: `https://api.testnet.rise.trade`
- URL: `https://api.testnet.rise.trade/admin/accounts/{address}/referral-slug`
- Auth: none required
- TypeScript: <https://skmtc.dev/rise/apis/risex-rest-api/docs/admin/accounts/:address/referral-slug/post.ts> (a function with typed inputs; its response is checked against the schema)

Set a wallet's referral vanity slug on their behalf. Only allowed when address already has a row in affiliates — this is an affiliate-onboarding override, not a general account tool. Same grammar as the self-service UpdateReferralSlug (3-32 chars, lowercase/digits/hyphen/underscore), but skips the EIP-191 signature since admin auth substitutes for wallet-ownership proof. Pass an empty slug to generate a random one.

## Path parameters

- `address` string, required

## Request body

- AdminServiceAdminSetReferralSlugBody
  - `slug` string

## Response `200`

A successful response.

- ApiAdminSetReferralSlugResponse
  - `slug` string

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-11-03** `98eabcd6a6ad`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rise/apis/risex-rest-api/changes/admin/accounts/:address/referral-slug/post.md)

---

[API](https://skmtc.dev/rise/apis/risex-rest-api.md) - [All operations](https://skmtc.dev/rise/apis/risex-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rise/apis/risex-rest-api/revisions/98eabcd6a6ad?raw)
