/v1/tunnel/tokensPOSThttps://ghosthand.dev/macs/<mac>. The token works for every Mac of the account and
is shown once. Unix socket only: a token must not be able to create more tokens.ghosthand tunnel url --new-token. The unix socket needs no tokenapplication/jsonrequiredci or my-script1Max length: 64DELETE /v1/tunnel/tokens/{id} to revoke the tokenAuthorization: Bearer <token>. Shown once; store it like a password.title and detail are for people.curl -X POST "https://ghosthand.dev/macs/studio/v1/tunnel/tokens" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'
{ "code": "device-leased", "title": "iPhone leased by another client", "status": 409, "detail": "Tommy's iPhone is in use by another lease:\n ses_456 (book a table on OpenTable), acquired 2 min ago, last used 10 s ago (tap)\nDecide first: if that task is still active, give up or tell the user the iPhone is busy." }