curl --request POST \
--url https://api.dfns.io/auth/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"credentialKind": "Fido2",
"credentialInfo": {
"credId": "<string>",
"clientData": "<string>",
"attestationData": "<string>"
},
"credentialName": "<string>",
"challengeIdentifier": "<string>"
}
'{
"kind": "Fido2",
"credentialId": "<string>",
"credentialUuid": "<string>",
"dateCreated": "<string>",
"isActive": true,
"name": "<string>",
"publicKey": "<string>",
"relyingPartyId": "<string>",
"origin": "<string>"
}Part of the flow Create Credential Regular flow.
Adds a new credential to a user’s account. See Credential Kinds for all supported credential types.
curl --request POST \
--url https://api.dfns.io/auth/credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-DFNS-USERACTION: <api-key>' \
--data '
{
"credentialKind": "Fido2",
"credentialInfo": {
"credId": "<string>",
"clientData": "<string>",
"attestationData": "<string>"
},
"credentialName": "<string>",
"challengeIdentifier": "<string>"
}
'{
"kind": "Fido2",
"credentialId": "<string>",
"credentialUuid": "<string>",
"dateCreated": "<string>",
"isActive": true,
"name": "<string>",
"publicKey": "<string>",
"relyingPartyId": "<string>",
"origin": "<string>"
}CustomerEmployee)EndUser)Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Register a Fido2 Credential, also known as Passkeys or WebauthN credential.
Success
Fido2, Key, Password, Totp, RecoveryKey, PasswordProtectedKey Was this page helpful?