Deny a Device sign-in
Denies a pending sign-in, from the browser that opened the code (409 opened_elsewhere otherwise). The third denial by one person within an hour sends them a warning email. 409 partner_sign_in for a Partner sign-in.
Denies a pending sign-in, from the browser that opened the code (409 opened_elsewhere otherwise). The third denial by one person within an hour sends them a warning email. 409 partner_sign_in for a Partner sign-in.
AuthorizationBearer <token>qlt_… Access token (kind api)
user_code*string^[A-Z0-9]{4}-[A-Z0-9]{4}$Denied
curl -X POST 'https://tiltas.openpanel.sh/api/v1/device-sign-ins/string/deny'Approve a Device sign-in POST
The signed-in Member adds the Device to one of their Accounts' Network, from the browser that opened the code. Allowed at once when this browser and the Device are on the same network (same IPv4, same IPv6 /64, by the addresses the trusted proxy saw) or with the app's `loopback_nonce`: its SHA-256 must equal the `nonce_sha256` the Device sent (compared in constant time; only while the sign-in is pending, so once). A wrong or missing nonce changes nothing. Otherwise `confirm_different_network` must be true (else 409 different_network) and the session must be at most 10 minutes old (else 403 fresh_session_required). Errors: 409 opened_elsewhere (another browser opened the code), 409 expired_token (expired, locked, already approved or denied: each sign-in is approved once), 409 plan_limit (the Plan's Device limit; `limit: devices`, `upgrade_url`), 409 partner_sign_in. The audit event `device.added` records `requested_ip`, `viewer_ip`, `same_network`, `loopback` and `via_link`; the "New Device" email says when the Device asked from a different network.
Get a Device sign-in GET
What the approval page shows. Opening a code binds it to this browser (cookie `ql_signin`); another browser gets 409 opened_elsewhere and counts as a view, and after 5 views the code locks (status locked). Call it once when the page opens; the bound browser may call it again without counting. Send `prefilled=true` when the page took the code from the link's fragment: such a code can be approved for 5 minutes after the Device asked (`expires_at`), a typed one for 10. `requested_from.ip` is shown only when the browser is on the same network as the Device; otherwise only the country (when the proxy in front reports it). `one_click` true: show Approve without the warning. Otherwise, with a `loopback_port`, fetch the proof (`GET http://127.0.0.1:<loopback_port>/tiltas/sign-in-proof` → `{"nonce"}`) and send it as `loopback_nonce`; failing that show the warning, send `confirm_different_network`, and if `session_fresh` is false send the person through sign-in again first (`return_to=/connect#code=…`). 409 partner_sign_in for a Partner sign-in.