Approve a Device sign-in
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.
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.
AuthorizationBearer <token>qlt_… Access token (kind api)
user_code*string^[A-Z0-9]{4}-[A-Z0-9]{4}$application/json- body
account_id*stringname?stringoptional Device name chosen by the Member (phones often call themselves just "iPhone")
length <= 63prefilled?booleanthe code came from verification_uri_complete
loopback_nonce?stringthe nonce the app answered on 127.0.0.1:<loopback_port>/tiltas/sign-in-proof
length <= 256confirm_different_network?booleanthe person saw the different-network warning and confirmed
Approved
curl -X POST 'https://tiltas.openpanel.sh/api/v1/device-sign-ins/string/approve' \ -H 'Content-Type: application/json' \ -d '{ "account_id": "string"}'