Skip to Content
Accounts

Accept an invite

Joins the Network the invite is for. The signed-in Member's address must be the invited one (403 otherwise); an expired, revoked or used invite is 400 expired_token.

POST
/invites/accept

Joins the Network the invite is for. The signed-in Member's address must be the invited one (403 otherwise); an expired, revoked or used invite is 400 expired_token.

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Request Body

application/json
  1. body
token*string

Response Body

Joined the Account

application/json
  1. response
id*string
name*string
plan*PlanId

partner: partner Networks only; not listed in /plans and not for sale

Value in"free""unlimited""unlimited_1tb""unlimited_5tb""partner"
network*
settings*
usage*
created_at?string
Formatdate-time
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/invites/accept' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response200
{  "id": "string",  "name": "string",  "plan": "free",  "network": {    "domain": "string",    "coordinator_url": "string"  },  "settings": {    "device_approval": false,    "personal_key_expiry_days": 180,    "alert_offline_minutes": 10,    "alerts_enabled": false  },  "usage": {    "devices": 0,    "members": 0,    "relay_gb_this_month": 0  },  "created_at": "2019-08-24T14:15:22Z"}

Start a Device sign-in POST

A Device asks to sign in (OAuth device flow, RFC 8628 style). The app opens verification_uri_complete (or verification_url) in the browser and polls /device-sign-ins/token. The flow: 1. A first-party app sends `app_version` and gets `verification_uri_complete`: `/connect#code=WDJB-MJHT`, the code in the fragment, so no proxy logs it. The app opens it itself and keeps its own window in front with the code in large type ("Waiting for your approval in the browser"). 2. A desktop app (macos, windows, linux, with `app_version`) may also send `loopback: {port, nonce_sha256}` (docs/contract/engine.md "Loopback proof"): it listens once on `127.0.0.1:<port>` and answers the page's `GET http://127.0.0.1:<port>/tiltas/sign-in-proof` with `{"nonce": "<64 hex>"}`, once, only to the page's Origin and only for `Host: 127.0.0.1:<port>` (answering the browser's Private Network Access preflight). `nonce_sha256` is the SHA-256 of the nonce, in hex. The page passes the nonce to approve as `loopback_nonce`; it stands in for "same network" when the person is on another VPN or IPv6 path. 400 for a malformed `loopback`, or a `nonce_sha256` an earlier sign-in carried (every sign-in needs a new nonce). Engines from before `os_version` and `loopback` send neither; both are optional. 3. The app polls `POST /device-sign-ins/token` every `interval` seconds. The first poll after the approval returns the credentials, once; the app then finishes by itself (no click in the app). With Device approval on it keeps getting `authorization_pending` until an Admin approves the Device (up to 7 days). `client: openpanel`, or `audience: openpanel` from a Tiltas app opened by OpenPanel's deep link, makes a Partner sign-in: only that Partner's routes handle it.

Create an Account POST

Creates the Account on the Free Plan with its Network and Coordinator cell. The caller becomes Owner.