MyAccount Management
//
Create a WebAuthn enrollm...
OAuth 2.0 scope:
- okta.myAccount.webauthn.manage
Creates a Passkey (FIDO2 WebAuthn) enrollment. Before using this endpoint, ensure that you've used the Start a WebAuthn enrollment endpoint first.
JSON-serialized data that contains the authenticator data and attestation statement
Example:"o2NmbXRoZmlk..."
JSON-serialized data that's passed to the Passkey (FIDO2 WebAuthn) authenticator by the client to generate the WebAuthn credentials
Example:"eyJjaGFsbGVuZ..."
JSON-serialized data that contains authenticator extensions
Example:"{\"credProps\":{\"rk\":true}}"
POST
curl -i -X POST \
https://okta-subdomain.pixtulate.com/idp/myaccount/webauthn \
-H 'Accept: application/json; okta-version=1.0.0' \
-H 'Content-Type: application/json' \
-d '{
"clientData": "eyJjaGFsbGVuZ...",
"attestation": "o2NmbXRoZmlk...",
"clientExtensions": "{\"credProps\":{\"rk\":true}}",
"transports": "[\"internal\"]"
}'Success
Response
{ "id": "fwfn3c3rryqStmyp20g4", "status": "ACTIVE", "type": "security_key", "key": "webauthn", "name": "YubiKey 5 FIPS", "credentialId": "5Ht9dBHqs8q2PbfWEuxqoDsnkO16KR_58GUju5MdSa__W_X7d5mQbkFSp273fxPX", "created": "2025-04-22T17:24:27.000Z", "lastUpdated": "2025-04-22T17:24:27.000Z", "_links": { "self": { … } } }