cURL
Airdrops
Create Airdrop
Create automated airdrops for Discord users
POST
cURL
Headers
Your community API key
Body
application/json
ID of a Discord channel in your server where the airdrop should be created.
Pattern:
^\d+$Points or tokens to airdrop.
- Points
- Token
Number of milliseconds before the airdrop ends and the prize is distributed. Cannot be longer than 30 days.
Required range:
1000 <= x <= 2592000000Maximum number of entries.
Required range:
1 <= x <= 500Note that will be shown on the airdrop message.
Maximum string length:
256IDs of roles that are allowed to enter the airdrop.
Maximum array length:
16Pattern:
^\d+$IDs of users that are allowed to enter the airdrop.
Maximum array length:
16Pattern:
^\d+$IDs of roles that are forbidden from entering the airdrop.
Maximum array length:
16Pattern:
^\d+$IDs of users that are forbidden from entering the airdrop.
Maximum array length:
16Pattern:
^\d+$Response
201
Airdrop has been created successfully