To access any FNLB API, your application must include a valid API key in the Authorization header of each request. This ensures that only authorized clients can manage or interact with bots on your account.

๐Ÿ” Authorization Header

All authenticated requests must include the following header:
Authorization: YOUR_API_KEY
Replace YOUR_API_KEY with the actual key generated in the FNLB app.
FNLB API Token
Never expose your API key in client-side code, public repositories, or browser environments. Treat it like a password.

๐Ÿงช Example Request

Hereโ€™s a sample curl request to get the list of your bots:
curl -X GET https://api.fnlb.net/bots \
  -H "Authorization: YOUR_API_KEY"
Successful Response:
[
    {
        "parent": "7a85cbd3e019417e8b6fcd4e",
        "nickname": "f4d7e2c9a89b3c1a",
        "email": "lobbybot1@gmail.com",
        "id": "78a43c92b18f45c92de74aa2"
    },
    {
        "parent": "7a85cbd3e019417e8b6fcd4e",
        "nickname": "e93d10a45fcbe76f",
        "email": "lobbybot2@gmail.com",
        "id": "78a43c92b18f45c92de74ab8"
    }
]

๐Ÿ› ๏ธ Managing API Keys

  • You can generate and manage API keys from the FNLB app and web dashboard.
  • The key is tied to your account and can be revoked at any time.

Next Steps

API Reference

Learn how to control your bots using authenticated API calls.