Enroll an authenticator on behalf of a user. This operation should only be used in cases where you have already verified a user’s email address or phone number in your own system.
Use your Authsignal Server API secret key as the username and leave the password empty. The secret key can be found in the API Keys section of the Authsignal Portal settings page.
The ID of the user.
The verification method of the authenticator being enrolled.
EMAIL_MAGIC_LINK, EMAIL_OTP, SMS, AUTHENTICATOR_APP, PASSKEY, WHATSAPP The user's email address. Required for EMAIL_MAGIC_LINK and EMAIL_OTP.
The user's phone number in E.164 format. Required for SMS.
The formatted OTP URI. Required for AUTHENTICATOR_APP.
Deprecated - use 'verificationMethod' instead.
EMAIL_MAGIC_LINK, EMAIL_OTP, SMS The passkey credential ID from the WebAuthn credential. Required for PASSKEY.
The passkey credential public key (base64url-encoded). Required for PASSKEY.
The signature counter from the WebAuthn authenticator. Used for PASSKEY to detect cloned credentials.
A display name for the passkey authenticator (e.g. device or browser name). Used for PASSKEY.
Whether this authenticator should be set as the user's default.
OK
{
"userAuthenticatorId": "4efd2d0d-3278-4e03-8143-d9a0850bebc0",
"verificationMethod": "PASSKEY",
"username": "jane.smith@authsignal.com",
"displayName": "Jane Smith",
"createdAt": "2024-05-13T04:59:02.640Z",
"lastVerifiedAt": "2024-07-13T02:43:37.640Z",
"verifiedAt": "2024-05-13T04:59:17.640Z",
"webauthnCredential": {
"credentialId": "71273a99-4a7b-47d4-82ab-9ea72b8f0a72",
"deviceId": "d5a13d2d-8c34-4c90-938b-d8c6e3a88c5d",
"name": "iCloud Keychain",
"aaguid": "fbfc3007-154e-4ecc-8c0b-6e020557d7bd",
"aaguidMapping": {
"name": "iCloud Keychain",
"svgIconDark": "data:image/svg+xml;base64...",
"svgIconLight": "data:image/svg+xml;base64..."
},
"credentialBackedUp": true,
"credentialDeviceType": "multiDevice",
"authenticatorAttachment": "platform"
}
}