---
title: "Update referral slug"
method: POST
path: "/v1/invite/referral-link/slug"
tags: ["Invite"]
---

# Update referral slug

`POST /v1/invite/referral-link/slug`

## Request

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

Update the caller's referral link slug. Pass an empty slug to have the server generate a random one. If the wallet has no referral link yet, one is created automatically. Vanity slugs must be 3–32 characters: lowercase letters, digits, hyphen, underscore; no leading/trailing/consecutive separators.

## Request body

- ApiUpdateReferralSlugRequest
  - `address` string: Wallet address (hex, with or without 0x).
  - `slug` string: New slug. Empty string = generate a random 8-char slug.
  - `signature` string: EIP-191 personal_sign signature proving ownership of address.

## Response `200`

A successful response.

- ApiUpdateReferralSlugResponse
  - `slug` string: The slug that was set (either the requested vanity slug or the newly generated random slug).

## 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/v1/invite/referral-link/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)
