Partner API
Give each of your organisations its own private Network, server to server, with one Partner key.
The Partner API lets a platform give every one of its customers' organisations its own Tiltas Network. The platform creates and deletes Networks, joins its servers, connects its people's computers and phones, publishes private Services between projects, and receives signed events. OpenPanel uses it for every OpenPanel organisation.
A Partner talks to Tiltas from its own servers. People in a Partner's organisations never sign in to Tiltas: they use the Partner's product, and the Partner calls Tiltas for them.
How it maps
| Your platform | Tiltas |
|---|---|
| Organisation | Network, PUT /partner/networks/{your organisation id} |
| Server | Device of kind server, joined with a Join key |
| A person's computer or phone | Device of kind personal, owned by a Partner person |
| Person | Partner person: a Member that exists only inside one Network |
| A service with a private address | Service, tcp (its own address) or web (by name) |
| Project tag | Group |
Base URL
https://tiltas.openpanel.sh/api/v1Call the API directly. HTTP clients drop the Authorization header when they follow a redirect to another host, so
never rely on one.
Authentication
Send the Partner key as a bearer token:
Authorization: Bearer qlp_<32 characters>- Tiltas never stores the key itself, only its SHA-256 hash. Several keys can be active at once, for example one for staging and one for production.
- A key sees only the Networks it created. Every other Network answers
404 not_found, as if it did not exist. - On its own Networks a key acts as an Admin on the Account, Members, Devices, Join keys, Services, Groups, Access
rules, SSH rules, the audit log and the billing routes. Any other Account route answers
403 access_denied. - A missing or unknown key answers
401 unauthorizedon/partner/*. - Keep the key in your secret store. Never put it in a repository, a log or a chat.
Requests and errors
- JSON in and out. Request bodies refuse unknown fields with
400 bad_request; responses may gain fields at any time, so ignore the ones you do not know. - Errors are
application/problem+jsonwith a stablecode:
{ "status": 409, "code": "name_taken", "title": "Conflict", "detail": "A Device or Service is already called analytics-db.", "type": "about:blank" }- Handle a
codeyou do not know by its HTTP status.
Rate limits
| Limit | Value |
|---|---|
| Per Partner key, all routes and Networks together | 3,000 requests a minute (a bucket of 300, refilled at 50 a second) |
| Unknown keys, per client address | bursts of 20, then 1 every 5 seconds |
Over the limit the answer is 429 rate_limited. Wait a second and retry.
Versioning
The path carries the major version (/api/v1). New routes, optional request fields, response fields, error codes and
event types are added without notice. Anything that breaks a client is announced at least 90 days ahead, with
Deprecation and Sunset headers on the routes it affects.