Skip to Content

API overview

The base URL, Access tokens, errors, pagination and limits of the Tiltas API.

Everything the console does goes through the Tiltas API, and so does everything an AI agent does through the MCP server. Every endpoint has its own page in this reference, with its parameters, request and response bodies, and samples in cURL, Python, Node.js and Go.

Base URL

Base URL
https://tiltas.openpanel.sh/api/v1

Requests and responses are JSON over HTTPS. Times are RFC 3339 in UTC. Request bodies are at most 1 MiB, and a field the endpoint does not know is refused with bad_request, so a typo never passes silently.

Access tokens

An Access token lets a script or a tool use one Account's API. Owners and Admins make them in the console:

Open Enterprise → Access tokens and choose Create an Access token.

Name it after what will use it, such as terraform. Under May, tick Read everything in the Account (the read scope), Change Devices, Services and rules (the write scope), or both.

Choose when it expires: after 30 days, 90 days, 1 year, or never.

Copy the token, which starts with qlt_. It is shown once: Tiltas keeps only a hash of it. Store it in your secrets manager.

Send it in the Authorization header:

Terminal
curl https://tiltas.openpanel.sh/api/v1/accounts/acc_8f2k1/devices \
  -H "Authorization: Bearer $TILTAS_TOKEN"

What a token may do:

  • It belongs to one Account and works on that Account's endpoints, the ones under /accounts/{account_id}. Any other Account answers 404. Your Account id is in the console's address: /app/acc_….
  • It acts as an Admin. It never does what only an Owner may: change the Plan, cancel it, read invoices, set up or remove single sign-on, or delete the Account. Roles are in Members and roles.
  • A read token cannot change anything. A write with it answers 403 access_denied.
  • It stops working when it expires, when it is revoked under Access tokens, or when the person who made it is no longer an Owner or Admin of the Account.
  • It cannot make other Access tokens.

Every change made with a token is in the audit log, with the token as the actor.

The console's session

The console signs you in with a Magic link or single sign-on, and keeps the session in an HTTP-only cookie for 30 days. A few endpoints work only with that session, not with an Access token: /me, /accounts (the list of your Accounts, and making a new one), and accepting an invite. Writes from a browser must come from the console's own origin; other sites' requests are refused.

Your first request

List the Devices of a Network. Set TILTAS_TOKEN to an Access token with the read scope, and replace acc_8f2k1 with your Account id.

Terminal
curl https://tiltas.openpanel.sh/api/v1/accounts/acc_8f2k1/devices \
  -H "Authorization: Bearer $TILTAS_TOKEN"

The Node.js sample is an ES module (save it as list-devices.mjs) and needs Node.js 18 or later. The Python sample uses only the standard library. Every field of a Device is on List Devices.

Ids and secrets

Every object has an id with a prefix that says what it is:

PrefixObject
acc_Account (Network)
mem_Member
inv_Invite
dev_Device
key_Join key
svc_Service
grp_Group
rul_Access rule
ssh_SSH rule
tok_Access token
dsi_Device sign-in
evt_Audit event

Secrets have prefixes too: qlj_ for a Join key and qlt_ for an Access token. Both are returned once, when they are made, and stored only as a hash. These prefixes stay as they are under the Tiltas name.

Lists and pagination

A list answers { "data": [ … ] } with every item.

The audit log is the only list in pages, newest first. Ask with ?limit= (1 to 200, 50 by default); the answer carries next_cursor. Pass it as ?cursor= to get the next page; it is null on the last one.

Terminal
curl "https://tiltas.openpanel.sh/api/v1/accounts/acc_8f2k1/audit-events?limit=100" \
  -H "Authorization: Bearer $TILTAS_TOKEN"

Errors

An error answers with an HTTP status and a body of type application/problem+json (RFC 9457):

A 409 response
{
  "type": "about:blank",
  "title": "Conflict",
  "status": 409,
  "code": "name_taken",
  "detail": "A Device or Service is already called gitea."
}

Program against code: it is stable, while detail is a sentence for people and may change. Some errors also name the field that was wrong. Every code, with what to do about it, is in Errors.

An Account you are not a Member of answers 404, never 403, so ids cannot be probed.

Rate limits

  • 600 requests a minute per Access token, with bursts of up to 100.
  • Sign-in emails, new Accounts, Device sign-ins, sign-in codes, Join keys and invite links have their own, lower limits, per IP address or per person.

Over a limit, the API answers 429 with the code rate_limited. Wait a few seconds and try again, more slowly.

Versioning

The version is part of the path: /api/v1. Changes to the API are listed in the Changelog.

Next

On this page

Ask AI about this page