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.
Prerequisites
Section titled “Prerequisites”- A Floodilka account at floodilka.com
- A terminal with
curlavailable (or any HTTP client)
Create an application
Section titled “Create an application”-
Open Floodilka and go to User Settings → Applications & Bots.
-
Click New Application, give it a name, and confirm.
-
On the application page you will see two tabs: General (OAuth2 settings, client secret, redirect URIs) and Bot (bot username, avatar, token).
-
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.
Make your first request
Section titled “Make your first request”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"const res = await fetch('https://floodilka.com/api/v1/users/@me', { headers: {Authorization: `Bot ${process.env.FLOODILKA_BOT_TOKEN}`},});console.log(await res.json());import os, requests
r = requests.get( "https://floodilka.com/api/v1/users/@me", headers={"Authorization": f"Bot {os.environ['FLOODILKA_BOT_TOKEN']}"},)print(r.json())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.
Invite your bot to a server
Section titled “Invite your bot to a server”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_BITFIELDclient_idis the Application ID, not the token.scope=bottells Floodilka to add the bot to the guild the user selects.permissionsis 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.
Next steps
Section titled “Next steps”- 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