Skip to main content

Overview

Auth Requests enable passwordless login flows where users can approve authentication requests from other devices. This is commonly used for “Login with Device” functionality.

List Auth Requests

Retrieve all authentication requests for the current user.

Response

Returns a list of auth requests with status, device information, and timestamps.
string
required
Unique identifier for the auth request
string
Public key for secure communication
number
Type of device making the request
string
IP address of the requesting device
string
When the request was created
string
When the request was responded to
boolean
Whether the request was approved

Get Auth Request

Retrieve details of a specific authentication request.
string
required
The auth request ID

Get Pending Auth Requests

Retrieve all pending authentication requests awaiting approval.

Response

Returns only auth requests that are pending approval (not yet approved or denied).

Create Auth Request

Create a new authentication request for passwordless login.

Request Body

string
required
Email address of the user
string
required
Public key for encryption
string
required
Unique identifier for the requesting device
string
required
One-time access code for validation
number
required
Auth request type (0 = AuthenticateAndUnlock, 1 = Unlock, 2 = AdminApproval)
string
Device fingerprint for display
This endpoint does not require authentication when creating user auth requests. Admin approval requests require authentication.

Create Admin Auth Request

Create an authentication request requiring admin approval.
string
required
Email address of the user
string
required
Public key for encryption
number
required
Must be 2 (AdminApproval)
This endpoint requires authentication and is used for trusted device encryption workflows.

Update Auth Request

Approve or deny an authentication request.
string
required
The auth request ID

Request Body

boolean
required
Whether to approve (true) or deny (false) the request
string
Encrypted key (required when approving)
string
Master password hash (required when approving)
string
Approving device identifier

Example: Approve Request

Example: Deny Request


Get Auth Request Response

Retrieve the response for an auth request (used by requesting device).
string
required
The auth request ID
string
required
Access code provided when creating the request
This endpoint does not require authentication. The access code serves as verification.

Auth Request Workflow

Login with Device Flow

  1. Requesting Device: Creates auth request with POST /auth-requests
  2. Requesting Device: Polls GET /auth-requests/{id}/response for approval
  3. Approving Device: Views pending requests with GET /auth-requests/pending
  4. Approving Device: Approves request with PUT /auth-requests/{id}
  5. Requesting Device: Receives encrypted key and completes authentication

Admin Approval Flow

  1. User Device: Creates admin auth request with POST /auth-requests/admin-request
  2. Admin: Views request in organization admin console
  3. Admin: Approves or denies request
  4. User Device: Receives response and completes setup
Auth requests have a limited lifetime and expire if not approved. Only approve requests from devices you recognize.