Bots and Categories
Bots live in categories. The API lists both, creates and updates them, and returns ids you reuse on the gateway, in the SDK, and in bulk import.
List bots
GET /bots needs bots.read on an OAuth2 token, or an API token / session. Each bot includes:
| Field | Meaning |
|---|---|
id | Use as {botId} on every bot route. |
nickname | Display name in FNLB. |
email | Stored Epic email, when present. |
parent | Category id, or omitted when uncategorized. |
flags | 1 disabled, 2 public, 4 invalid auth. Combine with bitwise OR. |
GET /bots/{botId} returns one bot with the same fields.
Create and update
POST /bots creates a bot. It needs bots.write. The body includes Epic device auth (email, nickname, deviceAuth with accountId, deviceId, secret) and optional parent category id. PATCH /bots/{botId} updates nickname, parent, flags, or device auth. DELETE /bots/{botId} removes the bot. Account limits apply: unverified accounts allow fewer bots than verified ones. A 403 or net.fnlb.errors.common.limit_exceeded means you hit that cap.
Categories
GET /categories lists categories with id, name, flags, and config. Needs categories.read. POST /categories and PATCH /categories/{categoryId} need categories.write. The category id is what you pass as:
parentwhen creating or moving a botcategoriesin the Node.js SDKCATEGORIESin self-hosting
Managed categories
GET /categories/managed and related routes serve FNLB-managed category assignment for clusters. Self-hosted and SDK users normally only need the ids from GET /categories.
Gateway vs API
GET /bots on the API is your catalog, including offline bots. GET /bots on the gateway is only bots with a live connection. Same id, different meaning.
- Bot commands
Run outfit, emote, and other commands on a bot id.
- Bulk import and export
Move up to 100 bots in one import call.