Skip to content

Quickstart

This page walks you from zero to a working Floodilka integration in about five minutes. By the end, you will have a bot account, a token, and a verified request against the REST API.

  • A Floodilka account at floodilka.com
  • A terminal with curl available (or any HTTP client)
  1. Open Floodilka and go to User Settings → Applications & Bots.

  2. Click New Application, give it a name, and confirm.

  3. On the application page you will see two tabs: General (OAuth2 settings, client secret, redirect URIs) and Bot (bot username, avatar, token).

  4. Open the Bot tab and click Reset Token. The token is shown once — copy it now and store it somewhere safe. If you lose it, you can always rotate and get a new one.

With your bot token in hand, confirm it works by fetching the bot’s own user object.

Окно терминала
curl https://floodilka.com/api/v1/users/@me \
-H "Authorization: Bot YOUR_BOT_TOKEN"

A successful response looks like (trimmed for readability):

{
"id": "1496956937664585746",
"username": "my_bot",
"global_name": null,
"avatar": null,
"banner": null,
"bio": null,
"bot": true,
"flags": 0,
"premium_type": 0,
"mfa_enabled": false,
"verified": false,
"email": null,
"phone": null
}

If you get 401 Unauthorized, the token is wrong, truncated, or was rotated — reset it and copy the new one in full.

Generate an OAuth2 invite URL and send it to a server owner (or use it yourself on a server you own):

https://floodilka.com/oauth2/authorize
?client_id=YOUR_APPLICATION_ID
&scope=bot
&permissions=YOUR_PERMISSIONS_BITFIELD
  • client_id is the Application ID, not the token.
  • scope=bot tells Floodilka to add the bot to the guild the user selects.
  • permissions is a decimal bitfield — see Permissions.

Once a user authorizes the URL, your bot becomes a member of the guild and you can call any endpoint that accepts a bot token.

  • Bots — lifecycle, tokens, invite flow, differences from user accounts
  • OAuth2 — full OAuth2 guide including authorization code flow
  • Gateway overview — connect to the WebSocket and receive real-time events
  • Resources — reference for every REST object