referrals
Create referral code
Create a referral code for the calling user. The code must be 3-30 alphanumeric characters; an optional name marks it as a campaign.
post/referral-codes
Request
- Base URL: https://gamma-api.polymarket.com (the document declares no server; this is the origin it was published from)
- URL: https://gamma-api.polymarket.com/referral-codes
- Auth: one of:
- API key in cookie polymarketsession
- HTTP bearer
Request body
Example request
{
"$schema": "https://example.com/schemas/ReferralCodePayload.json"
}Response
Created
Example response
{
"$schema": "https://example.com/schemas/ReferralCode.json"
}Changes
No recorded changes to this operation across all 1 revision of this API.