Skip to main content
POST
/
broker
/
referral-link
Create Referral Link
curl --request POST \
  --url https://api.rolla.xyz/api/v1/external/broker/referral-link \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "message": "Referral link created successfully",
  "data": {
    "code": "REF-ABCD1234",
    "inviteUrl": "https://app.rolla.xyz/register?code=REF-ABCD1234"
  }
}
Generate a new referral link for your business. Your business must be activated as a broker to use this endpoint.

Example Request

curl -X POST "https://api.rolla.xyz/api/v1/external/broker/referral-link" \
  -H "X-API-Key: your_api_key_here"

Example Response

{
  "success": true,
  "message": "Referral link created successfully",
  "data": {
    "code": "REF-ABCD1234",
    "inviteUrl": "https://app.rolla.xyz/register?code=REF-ABCD1234"
  }
}
Share the inviteUrl with businesses you want to refer. When they register using this link, they will be linked to your broker account.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Response

Referral link created successfully

success
boolean
Example:

true

message
string
Example:

"Referral link created successfully"

data
object