ReferenceHTTP API
userPasskeys
The userPasskeys router: 10 methods of the user-passkeys capability, with tier, scope, input and output.
Capability user-passkeys · scope system · mode collection · source packages/types/src/capabilities/user-passkeys.cap.ts:69.
Every method is called at /trpc/userPasskeys.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
beginRegistration | mutation | admin | admin only | no |
finishRegistration | mutation | admin | admin only | no |
beginAuthentication | mutation | admin | admin only | no |
finishAuthentication | mutation | admin | admin only | no |
beginDiscoverableAuthentication | mutation | admin | admin only | no |
finishDiscoverableAuthentication | mutation | admin | admin only | no |
listPasskeys | query | admin | admin only | no |
removePasskey | mutation | admin | admin only | no |
getSecondFactorPreference | query | admin | admin only | no |
setSecondFactorPreference | mutation | admin | admin only | no |
userPasskeys.beginRegistration
- Kind: mutation —
POST /trpc/userPasskeys.beginRegistration - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.beginRegistrationon your hub
Input
{ userId: string; username: string }Output
{ optionsJSON: Record<string, unknown> }userPasskeys.finishRegistration
- Kind: mutation —
POST /trpc/userPasskeys.finishRegistration - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.finishRegistrationon your hub
Input
{ userId: string; response: Record<string, unknown>; label: string }Output
{ success: true; credentialId: string }userPasskeys.beginAuthentication
- Kind: mutation —
POST /trpc/userPasskeys.beginAuthentication - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.beginAuthenticationon your hub
Input
{ userId?: string }Output
{ optionsJSON: Record<string, unknown> }userPasskeys.finishAuthentication
- Kind: mutation —
POST /trpc/userPasskeys.finishAuthentication - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.finishAuthenticationon your hub
Input
{ userId: string; response: Record<string, unknown> }Output
{ verified: boolean }userPasskeys.beginDiscoverableAuthentication
- Kind: mutation —
POST /trpc/userPasskeys.beginDiscoverableAuthentication - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.beginDiscoverableAuthenticationon your hub
Input
{}Output
{ optionsJSON: Record<string, unknown> }userPasskeys.finishDiscoverableAuthentication
- Kind: mutation —
POST /trpc/userPasskeys.finishDiscoverableAuthentication - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.finishDiscoverableAuthenticationon your hub
Input
{ response: Record<string, unknown> }Output
{ verified: boolean; userId: string | null }userPasskeys.listPasskeys
- Kind: query —
GET /trpc/userPasskeys.listPasskeys - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.listPasskeyson your hub
Input
{ userId: string }Output
PasskeySummarySchema[]Shapes: PasskeySummarySchema
userPasskeys.removePasskey
- Kind: mutation —
POST /trpc/userPasskeys.removePasskey - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.removePasskeyon your hub
Input
{ userId: string; credentialId: string }Output
{ success: true }userPasskeys.getSecondFactorPreference
- Kind: query —
GET /trpc/userPasskeys.getSecondFactorPreference - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.getSecondFactorPreferenceon your hub
Input
{ userId: string }Output
{ enabled: boolean }userPasskeys.setSecondFactorPreference
- Kind: mutation —
POST /trpc/userPasskeys.setSecondFactorPreference - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=userPasskeys.setSecondFactorPreferenceon your hub
Input
{ userId: string; enabled: boolean }Output
{ success: true }