POST
/
api
/
loyalty
/
rules

Authorizations

X-API-KEY
string
headerrequired

Body

application/json

Schema for creating a new loyalty rule with detailed validations

organizationId
string
required

Unique identifier for the organization creating the rule

websiteId
string
required

Unique identifier for the associated website

name
string
required

Name of the loyalty rule

Minimum length: 1
type
enum<string>
required

Type of loyalty rule being created

Available options:
Bonus,
BoughtOn,
BoughtWithRoyalties,
DiscordMessages,
Listing,
Lodging,
MintOn,
PoapClaim,
SnagSocialsConnected,
SnapshotFullset,
SnapshotHold,
SoldOn,
SoldWithRoyalties,
TokenHold,
TwitterBio,
TwitterHashTagPost,
Retweet,
twitter_follow,
twitter_like,
twitter_comment,
connected_discord,
connected_twitter,
connected_email,
profile_completed,
referred_user,
code_entry,
check_in,
external_rule,
link_click,
tweet_liked_by_project,
twitter_post_hashtag,
token_hold_erc20,
snapshot_governance,
twitter_followers,
discord_member,
text_input,
telegram_messages,
drip_x_follow,
drip_x_tweet,
drip_x_new_tweet,
drip_x_text_in_bio,
drip_x_text_in_name,
drip_x_text_in_comment,
smart_contract_event,
create_partner_account,
telegram_join,
connected_telegram,
manual_upload,
connect_wallet,
connected_steam
frequency
enum<string>
required

Execution frequency of the loyalty rule

Available options:
none,
once,
daily,
weekly,
monthly,
immediately
startTime
string | null
required

When the rule becomes active

endTime
string | null
required

When the rule becomes inactive

effectiveStartTime
required

The effective start time of the rule

effectiveEndTime
required

The effective end time of the rule

amount
any | null
required

Reward amount associated with the rule

metadata
object
required

Additional metadata for the loyalty rule

loyaltyCurrencyId
string
required

Unique identifier for the loyalty currency

backgroundAssetUrl
string

URL of the background asset to be displayed

description
string

Optional detailed description of the rule

network
enum<string>
default: mainnet

Blockchain network where the rule will apply

Available options:
mainnet,
polygon,
polygon_mumbai,
optimism,
arbitrum,
binance,
bscTestnet,
avalanche,
avalancheFuji,
zksync,
fantom,
fantomTestnet,
base,
baseSepolia,
skaleNebula,
xai,
berachainArtio,
solana,
apechain,
flowMainnet,
campTestnet,
sui,
vanar,
sepolia,
optimism_sepolia,
arbitrumSepolia,
goerli,
optimism_goerli,
arbitrumGoerli
interval
enum<string> | null

Interval between rule executions

Available options:
daily,
weekly,
monthly,
once
customRewardsCsvUrl
string | null

URL for uploading custom rewards via CSV

customRewardsApiUrl
string | null

URL for fetching custom rewards

subscriptionIdentifier
string | null

Identifier for associated subscriptions

collectionAddress
string

Blockchain address of the associated collection

collections
object[] | null

List of associated collections

hideInUi
boolean
default: false

Whether to hide this rule in the user interface

isRequired
boolean
default: false

Whether this rule is mandatory

oauthCredentialsId
string | null

OAuth credentials associated with the rule

loyaltyRuleGroupId

Unique identifier for the loyalty rule group

Available options:
no-section
rewardType
enum<string>
default: points

Type of reward issued by the rule

Available options:
points,
multiplier

Response

200 - application/json

Schema for creating a new loyalty rule with detailed validations

id
string
required
organizationId
string
required

Unique identifier for the organization creating the rule

websiteId
string
required

Unique identifier for the associated website

name
string
required

Name of the loyalty rule

Minimum length: 1
type
enum<string>
required

Type of loyalty rule being created

Available options:
Bonus,
BoughtOn,
BoughtWithRoyalties,
DiscordMessages,
Listing,
Lodging,
MintOn,
PoapClaim,
SnagSocialsConnected,
SnapshotFullset,
SnapshotHold,
SoldOn,
SoldWithRoyalties,
TokenHold,
TwitterBio,
TwitterHashTagPost,
Retweet,
twitter_follow,
twitter_like,
twitter_comment,
connected_discord,
connected_twitter,
connected_email,
profile_completed,
referred_user,
code_entry,
check_in,
external_rule,
link_click,
tweet_liked_by_project,
twitter_post_hashtag,
token_hold_erc20,
snapshot_governance,
twitter_followers,
discord_member,
text_input,
telegram_messages,
drip_x_follow,
drip_x_tweet,
drip_x_new_tweet,
drip_x_text_in_bio,
drip_x_text_in_name,
drip_x_text_in_comment,
smart_contract_event,
create_partner_account,
telegram_join,
connected_telegram,
manual_upload,
connect_wallet,
connected_steam
frequency
enum<string>
required

Execution frequency of the loyalty rule

Available options:
none,
once,
daily,
weekly,
monthly,
immediately
startTime
string | null
required

When the rule becomes active

endTime
string | null
required

When the rule becomes inactive

effectiveStartTime
required

The effective start time of the rule

effectiveEndTime
required

The effective end time of the rule

amount
any | null
required

Reward amount associated with the rule

metadata
object
required

Additional metadata for the loyalty rule

loyaltyCurrencyId
string
required

Unique identifier for the loyalty currency

backgroundAssetUrl
string

URL of the background asset to be displayed

description
string

Optional detailed description of the rule

network
enum<string>
default: mainnet

Blockchain network where the rule will apply

Available options:
mainnet,
polygon,
polygon_mumbai,
optimism,
arbitrum,
binance,
bscTestnet,
avalanche,
avalancheFuji,
zksync,
fantom,
fantomTestnet,
base,
baseSepolia,
skaleNebula,
xai,
berachainArtio,
solana,
apechain,
flowMainnet,
campTestnet,
sui,
vanar,
sepolia,
optimism_sepolia,
arbitrumSepolia,
goerli,
optimism_goerli,
arbitrumGoerli
interval
enum<string> | null

Interval between rule executions

Available options:
daily,
weekly,
monthly,
once
customRewardsCsvUrl
string | null

URL for uploading custom rewards via CSV

customRewardsApiUrl
string | null

URL for fetching custom rewards

subscriptionIdentifier
string | null

Identifier for associated subscriptions

collectionAddress
string

Blockchain address of the associated collection

collections
object[] | null

List of associated collections

hideInUi
boolean
default: false

Whether to hide this rule in the user interface

isRequired
boolean
default: false

Whether this rule is mandatory

oauthCredentialsId
string | null

OAuth credentials associated with the rule

loyaltyRuleGroupId

Unique identifier for the loyalty rule group

Available options:
no-section
rewardType
enum<string>
default: points

Type of reward issued by the rule

Available options:
points,
multiplier