Auth API reference

Auth API · Apps

get/v1/apps/{app_id}/webauthn-configAuth

Get 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*string

Id of the app.

Response · 200

enabled*boolean

Whether passkeys are on for the app.

rp_id*string

WebAuthn relying-party id (a bare domain), or `null` while passkeys are not configured.

rp_name*string

Name the platform passkey UI shows, or `null` (then `rp_id`).

require_user_verification*boolean

Whether second-factor passkey ceremonies require user verification (biometric or PIN).

ceremony_origins*array

Origins 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*number

Number 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_TOKEN

Response

{
  "enabled": false,
  "rp_id": "string",
  "rp_name": "string",
  "require_user_verification": false,
  "ceremony_origins": [
    "string"
  ],
  "credential_count": 0
}