---
title: "Activates the sender to acquire a referral code"
method: POST
path: "/v1/referral/activate"
tags: ["Referral"]
---

# Activates the sender to acquire a referral code

`POST /v1/referral/activate`

## Request body

- ActivateReferralDto
  - `data` ActivateReferralDtoData, required
    - `intent` 0 | 1 | 2 | 3, required — Intent of the message (action to be taken)
    - `sender` string, hex, required — Account address that produced the authorizing signature
    - `signedAt` integer, required — Message signedAt current timestamp (seconds since Unix Epoch)
    - `subaccount` string, hex, required — Bytes32 encoded subaccount name (0x prefix, zero padded)
  - `signature` string, hex, required — Hex-encoded EIP-712 signature authorizing this request

## Response `201`

- ReferralDto
  - `code` string — The referee's referral code to be shared and claimed by others (undefined if not activated)
  - `codeUsageRemaining` integer, required — Number of remaining times the referral code can be claimed
  - `createdAt` integer, required — Timestamp of when this referral was activated (ms since Unix Epoch)
  - `id` string, uuid, required — Id representing the referral
  - `referee` string, hex, required — Address of the referee (non-checksummed)
  - `refereeTotalPoints` string, decimal, required — Total points (excl. referral points) earned by the referee since referee claimed the code (precision: 9)
  - `referrer` string, hex — Address of the referrer (non-checksummed; undefined if not set)

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/ethereal/apis/ethereal-exchange-api.md) · [All operations](https://skmtc.net/ethereal/apis/ethereal-exchange-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ethereal/ethereal-exchange-api/revisions/6e6f8dad92bf/schema)
