Skip to Content
Devices

Create a Join key

POST
/accounts/{account_id}/join-keys

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Path Parameters

account_id*string

Request Body

application/json
  1. body

A Server or app that joins gets no inbound access until an Access rule names it (or one of its Groups). The key works only while the person who made it is still an Admin or Owner, and removing that person revokes it.

name*string
Lengthlength <= 60
reusable?boolean
Defaultfalse
ephemeral?boolean
Defaultfalse
max_uses?integer

cap on joins; more than 1 makes the key reusable

Range1 <= value <= 100000
groups?array<string>
expires_in_days?integer
Range1 <= value <= 90
Default7
expires_in_minutes?integer

instead of expires_in_days (not both)

Range5 <= value <= 129600

Response Body

Created; secret shown once

application/json
  1. response
id*string
name*string
reusable*boolean
ephemeral?boolean

Devices that join with it leave the Network soon after their node goes offline (apps, SDKs and CI)

max_uses?|

a reusable key's cap

groups?array<string>
uses?integer
devices?integer

Devices that joined with it and are still in the Network

expires_at*string
Formatdate-time
created_at?string
Formatdate-time
secret*string

qlj_…

install_command*string
Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/accounts/string/join-keys' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response201
{  "id": "string",  "name": "string",  "reusable": true,  "ephemeral": true,  "max_uses": 0,  "groups": [    "string"  ],  "uses": 0,  "devices": 0,  "expires_at": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "secret": "string",  "install_command": "string"}