# Create a new wallet Endpoint: POST /v1/defi/core/create-wallet Version: v2026_01_14 Security: bearerAuth ## Request fields (application/json): - `passkey` (object) Passkey authentication data (for passkey wallets) - `passkey.challenge` (string, required) WebAuthn challenge string - `passkey.credential_id` (string, required) WebAuthn credential ID - `passkey.client_data` (string, required) WebAuthn client data JSON - `passkey.attestation` (string, required) WebAuthn attestation object - `api_key` (object) API key data (for API key wallets) - `api_key.public_key` (string, required) API key public key in Turnkey format ## Response 201 fields (application/json): - `wallets` (array) Detailed wallet information - `wallets.wallet_id` (string) Turnkey wallet ID - `wallets.wallet_account_id` (string) Turnkey wallet account ID - `wallets.address` (string) Wallet address - `wallets.address_type` (string) Blockchain type (e.g., SOLANA, EVM) ## Response 400 fields (application/json): - `message` (string) ## Response 401 fields (application/json): - `message` (string) ## Response 422 fields (application/json): - `message` (string) ## Response 500 fields (application/json): - `message` (string)