/v1/apps/{app_id}/webauthn-configAuthGet the per-app passkey (WebAuthn) relying-party settings.
Returns defaults with `enabled: false` and a null `rp_id` when passkeys have never been configured for the app.
Path parameters
app_id*stringId of the app.
Response · 200
enabled*booleanWhether passkeys are on for the app.
rp_id*stringWebAuthn relying-party id (a bare domain), or `null` while passkeys are not configured.
rp_name*stringName the platform passkey UI shows, or `null` (then `rp_id`).
require_user_verification*booleanWhether second-factor passkey ceremonies require user verification (biometric or PIN).
ceremony_origins*arrayOrigins a passkey ceremony will be accepted from: the entries of `allowed_redirect_origins` that `rp_id` actually covers. An EMPTY array while `enabled` is true means the app is misconfigured and every ceremony will be refused with 412 — the usual cause is an `allowed_redirect_origins` edit that dropped the passkey site.
credential_count*numberNumber of passkeys currently registered against this app. Non-zero means `rp_id` is frozen: it is hashed into every one of those credentials, so a PUT that changes it is refused with 409. Exposed so an admin UI can say that before the change is attempted rather than after.
Example
Request
GET https://api.auth.productcraft.co/v1/apps/{app_id}/webauthn-config
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
const webauthnConfig = await auth.admin.app("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").webauthnConfig.retrieve();auth.admin.app(…).webauthnConfig.retrieve(options?): Auth.WebauthnConfig
Response
{
"enabled": false,
"rp_id": "string",
"rp_name": "string",
"require_user_verification": false,
"ceremony_origins": [
"string"
],
"credential_count": 0
}