Skip to main content
POST
/
auth
/
registration
/
enduser
Complete End User Registration with Wallets
curl --request POST \
  --url https://api.dfns.io/auth/registration/enduser \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "firstFactorCredential": {
    "credentialKind": "Fido2",
    "credentialInfo": {
      "credId": "<string>",
      "clientData": "<string>",
      "attestationData": "<string>"
    },
    "credentialName": "<string>"
  },
  "secondFactorCredential": {
    "credentialKind": "Fido2",
    "credentialInfo": {
      "credId": "<string>",
      "clientData": "<string>",
      "attestationData": "<string>"
    },
    "credentialName": "<string>"
  },
  "recoveryCredential": {
    "credentialKind": "RecoveryKey",
    "credentialInfo": {
      "credId": "<string>",
      "clientData": "<string>",
      "attestationData": "<string>"
    },
    "encryptedPrivateKey": "<string>",
    "credentialName": "<string>"
  },
  "wallets": [
    {
      "network": "Algorand",
      "name": "<string>"
    }
  ]
}'
{
  "credential": {
    "uuid": "<string>",
    "kind": "Fido2",
    "name": "<string>"
  },
  "user": {
    "id": "<string>",
    "username": "<string>",
    "orgId": "<string>"
  },
  "authentication": {
    "token": "<string>"
  },
  "wallets": [
    {
      "id": "wa-1f04s-lqc9q-xxxxxxxxxxxxxxxx",
      "network": "Ethereum",
      "address": "0x00e3495cf6af59008f22ffaf32d4c92ac33dac47",
      "name": "trading hot wallet",
      "signingKey": {
        "id": "key-6ece3-9l565-xxxxxxxxxxxxxxxx",
        "scheme": "ECDSA",
        "curve": "secp256k1",
        "publicKey": "e2375c8c9e87bfcd0be8f29d76c818cabacd51584f72cb2222d49a13b036d84d3d"
      },
      "status": "Active",
      "dateCreated": "2023-04-14T20:41:28.715Z",
      "custodial": true,
      "tags": []
    }
  ]
}

Authentication

❌ Organization User (CustomerEmployee)
❌ Delegated User (EndUser)
❌ Service Account
✅ Registration Code

Required Permissions

No permission required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

Body

application/json
firstFactorCredential
object
required

Register a Fido2 Credential, also known as Passkeys or WebauthN credential.

  • Fido2/Passkeys
  • Public/Private key pair
  • <Deprecated> Password
  • Password-protected Key
wallets
object[]
required
Minimum length: 1
secondFactorCredential
object

Register a Fido2 Credential, also known as Passkeys or WebauthN credential.

  • Fido2/Passkeys
  • Public/Private key pair
  • <Deprecated> TOTP
  • Password-protected Key
recoveryCredential
object

Register a recovery key. See Account Recovery for more details.

Response

200 - application/json

Success

credential
object
required
user
object
required
authentication
object
required
wallets
object[]
required
I