Black Friday33% off all plans See plans Enter it at checkout

API Reference

The backend exposes a JSON REST API. Every UI action the frontend takes is implemented as a call to this API; everything you build against it has the same capabilities as the app itself.

Base URL

  • Desktop app — http://localhost:18000/api. If port 18000 is taken, the app picks another free port — the app’s Options menu shows the address in use as Backend API: http://localhost:…/api (click it to copy).
  • GreenLight Dash Server (self-hosted) — your server’s address, suffixed with /api. See Web Version, Tablets and Phones.

Authentication

Desktop app. The backend listens on 127.0.0.1 only and trusts calls from this computer, so local scripts and agents call it without credentials. It is not reachable from other machines; to use the app from a tablet or phone on your Wi-Fi, turn on Web version ▸ Local network instead.

GreenLight Dash Server. Every request needs a login. The browser app uses the owner’s login session. Scripts and agents send an API token. In the web version’s header, open GLAI (or GLEA) and choose Connect External Agent. The window walks you through Make a token, Copy this message and Paste it into your agent; the message carries the token and the server’s address. Requests then send:

Authorization: Bearer glt_…

Long operations on a server run as jobs: GET /api/jobs?active=true lists them and DELETE /api/jobs/{id} cancels one.

AI provider keys. The desktop app reads keys from its own settings, so you never pass them. The web version keeps keys in the browser and sends them with each request in an x-gl-api-keys header (base64-encoded JSON of key name → value); the backend uses them for that request only.

Response shape

Most endpoints return JSON. Successful responses use HTTP 200; errors use the appropriate HTTP status with a JSON body:

{
  "detail": "Description of what went wrong"
}

Card writes are version-checked: send the card’s expected_version and a stale write is refused with 409 — re-read the card and try again. See Boards and Elements.

Auto-generated docs

The backend hosts FastAPI’s auto-generated docs:

  • Swagger UI — <base-url>/docs
  • ReDoc — <base-url>/redoc

These docs show every endpoint, parameter and response schema, generated from the running code. They are the authoritative reference; the articles below summarise the most useful endpoints in plain language.

Endpoint groups

For agents, the app also ships a board skill that explains these endpoints task by task — see Using the Board with Hermes, OpenClaw and External Agent systems.

Rate limits

There are no application-level rate limits on the desktop backend. AI calls are limited by the upstream provider. A GreenLight Dash Server limits failed login attempts.

Versioning

The API is versionless. Breaking changes are rare but possible; pin to a specific app version if you build against it.

Where to go next

Was this helpful?

0

Updated

Comments

Leave a Reply