POST
/
v1
/
raffles
curl --request POST \
  --url https://api.flipsuite.xyz/v1/raffles \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "channelId": "1234567890123456789",
  "item": {
    "type": "TOKEN",
    "chain": "Polygon",
    "tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
    "amount": 1000
  },
  "countdown": 60000,
  "maxEntries": 10,
  "maxWinners": 5,
  "comment": "Hello, world!",
  "allowedRoleIds": [
    "12345678901234567891",
    "12345678901234567892"
  ],
  "allowedUserIds": [
    "12345678901234567893",
    "12345678901234567894"
  ],
  "forbiddenRoleIds": [
    "12345678901234567895",
    "12345678901234567896"
  ],
  "forbiddenUserIds": [
    "12345678901234567897",
    "12345678901234567898"
  ]
}'

Headers

x-api-key
string
required

Body

application/json

Response

201

Raffle has been created successfully