FNLB Devs

Developer Portal

API

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:

FieldMeaning
idUse as {botId} on every bot route.
nicknameDisplay name in FNLB.
emailStored Epic email, when present.
parentCategory id, or omitted when uncategorized.
flags1 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:

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.