POST
/
v1
/
community
/
raiding
/
raids
cURL
curl --request POST \
  --url https://api.flipsuite.xyz/v1/community/raiding/raids \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "title": "Every Discord user has a wallet",
  "postUrl": "https://x.com/flipsuitexyz/status/1927723129901654115",
  "requirements": {
    "like": true,
    "comment": true,
    "repost": true
  },
  "reward": {
    "type": "TOKEN_POOL",
    "item": {
      "type": "TOKEN",
      "chain": "Polygon",
      "tokenAddress": "0x162539172b53e9a93b7d98fb6c41682de558a320",
      "amount": 100000
    }
  }
}'

Headers

x-api-key
string<uuid>
required

Your community API key.

Body

application/json
title
string

Raid title that will be shown in Discord.

Maximum length: 64
postUrl
string

Link to the X post

Maximum length: 256
description
string | null

Raid description that will be shown in Discord.

Maximum length: 256
durationMinutes
integer | null
default:1440

Number of minutes before the raid ends. Cannot be longer than 30 days. It is set to 24 hours by default.

Required range: x <= 43200
channelId
string | null

ID of a Discord channel where the raid should be published.

mentionRoleId
string | null

ID of a Discord role that should be mentioned when the raid is published.

requirements
object
reward
object

Each raider will receive a random reward from the pool as soon as their raid is verified.

Response

201

Raid has been created successfully