Skip to Content
Sign in

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.

POST
/device-sign-ins/{user_code}/approve

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.

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Path Parameters

user_code*string
Match^[A-Z0-9]{4}-[A-Z0-9]{4}$

Request Body

application/json
  1. body
account_id*string
name?string

optional Device name chosen by the Member (phones often call themselves just "iPhone")

Lengthlength <= 63
prefilled?boolean

the code came from verification_uri_complete

loopback_nonce?string

the nonce the app answered on 127.0.0.1:<loopback_port>/tiltas/sign-in-proof

Lengthlength <= 256
confirm_different_network?boolean

the person saw the different-network warning and confirmed

Response Body

Approved

Example Request
curl -X POST 'https://tiltas.openpanel.sh/api/v1/device-sign-ins/string/approve' \  -H 'Content-Type: application/json' \  -d '{  "account_id": "string"}'
Example Response
Empty