Skip to main content
POST
Register Code

Endpoint

POST /api/referrals/code Registers a referral code from an EIP-712 signature. See Referrals for the EIP-712 domain, the struct, and the GET transport for clients behind an edge that blocks POST. Only 201 is success. There is no API key: the signature is the sole authority.

Usage Example

Response Structure

The generated API panel lists the response schema for status codes: 201, 400, 401, 403, 409, 429, 503. Error responses return an error field.

Body

application/json
message
object
required

The signed struct plus a kind discriminator. kind is transport metadata and is not part of the EIP-712 struct.

signature
string
required

65-byte ECDSA signature, 0x-prefixed hex. EIP-1271 is not supported.

Response

Applied

result
object