Skip to main content
POST
/
keys
/
import
Import Key
curl --request POST \
  --url https://api.dfns.io/keys/import \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "name": "<string>",
  "curve": "ed25519",
  "protocol": "CGGMP24",
  "minSigners": 123,
  "encryptedKeyShares": [
    {
      "signerId": "<string>",
      "encryptedKeyShare": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "scheme": "DH",
  "curve": "ed25519",
  "publicKey": "<string>",
  "name": "<string>",
  "status": "Active",
  "custodial": true,
  "dateCreated": "<string>",
  "imported": true,
  "exported": true,
  "dateExported": "<string>",
  "dateDeleted": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
✅ Service Account

Required Permissions

Keys:Import: Always required.

Authorizations

Authorization
string
header
required

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

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Body

application/json
curve
enum<string>
required
Available options:
ed25519,
secp256k1,
stark
protocol
required
Available options:
CGGMP24,
FROST,
FROST_BITCOIN,
GLOW20_DH,
KU23
minSigners
integer
required
Required range: x > 0
encryptedKeyShares
object[]
required
Minimum length: 1
name
string
Maximum length: 100

Response

200 - application/json

Success

id
string
required
scheme
enum<string>
required
Available options:
DH,
ECDSA,
EdDSA,
Schnorr
curve
enum<string>
required
Available options:
ed25519,
secp256k1,
stark
publicKey
string
required
status
enum<string>
required
Available options:
Active,
Archived
custodial
boolean
required
dateCreated
string
required
name
string
imported
boolean
exported
boolean
dateExported
string
dateDeleted
string
I