Get my referral code
curl --request GET \
--url https://api.unitedmarket.ai/referral/code \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unitedmarket.ai/referral/code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/referral/code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": "UM-7ZAFAB8F"
}{
"message": "Invalid API Key provided",
"error": "Unauthorized",
"statusCode": 401
}Referral
Get my referral code
Returns the authenticated user’s deterministic, non-rotatable referral code, lazily creating it on first access. Requires SIWE bearer auth.
GET
https://api.unitedmarket.ai
/
referral
/
code
Get my referral code
curl --request GET \
--url https://api.unitedmarket.ai/referral/code \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.unitedmarket.ai/referral/code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.unitedmarket.ai/referral/code"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": "UM-7ZAFAB8F"
}{
"message": "Invalid API Key provided",
"error": "Unauthorized",
"statusCode": 401
}