LonexOne

Developers

LonexOne API

What the LonexOne API is, and your first request in a few minutes.

The LonexOne API lets your own tools work with your community: Discord bots, in-game scripts, websites and spreadsheets. Read your roster and CAD records, put calls into dispatch, and have LonexOne tell your server when things happen.

Quick start

  1. In the LonexOne panel, open Developer API (in the Core section; owners have it, and you can give it to a role).
  2. Make a key and tick what it can do. For this example, tick community.read. Copy the key: it's shown once.
  3. Ask the API which community the key belongs to:
Request curl
curl https://api.lonexone.com/v1/community \
  -H "Authorization: Bearer lxk_your_key"
Response 200 JSON
{
    "data": {
        "id": 12,
        "name": "Sunnyside RP",
        "slug": "sunnyside",
        "url": "https://sunnyside.lonexone.com",
        "modules": [
            "community",
            "departments",
            "cad"
        ],
        "key": {
            "name": "Discord bot",
            "scopes": [
                "community.read",
                "cad.read"
            ]
        }
    }
}

That's it. Every request works the same way: send the key, get JSON back.

The basics

  • Base address: https://api.lonexone.com/v1
  • Format: JSON in and out. Send Content-Type: application/json with request bodies.
  • One key, one community: a key only ever sees the community it was made in.
  • Lists come in pages of 50 by default. See paging.
  • Times are ISO 8601 with a time zone, like 2026-11-08T20:01:00+00:00.

Where next

Getting help

Stuck, or need an endpoint that isn't here yet? Ask in the LonexLabs Discord. We add to the API based on what people build.