# Get a Device sign-in

Source: https://tiltas.openpanel.sh/docs/api/sign-in/getDeviceSignIn

> 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.

Operations (base URL https://tiltas.openpanel.sh/api/v1):

- `GET /device-sign-ins/{user_code}`

The full schema is in https://tiltas.openpanel.sh/docs/api/openapi.json.
