user

mint a single-use login link for an account (require superadmin)

Changed on
post/users/login_links

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/users/login_links
  • Auth
    • HTTP bearer
    • or API key in cookie token

Request body

emailstring required
expires_in_sinteger

link lifetime in seconds, at most 900 (default 600)

rdstring

same-origin path the browser lands on after login (default /user/workspaces)

require_login_typestring

mint only while the account still has this login type (for example pending_oauth), so a link stops working once the owner has set a password or signed in with a provider

Response

login link minted

urlstring required
expires_atstring date-time required

Changes