Narval | Docs
GithubHome
  • Narval Connect
    • Overview
    • Getting Started
  • Security Overview
  • Providers
    • Providers
      • Anchorage
      • BitGo
      • Fireblocks
  • Guide
    • ConnectClient
    • Connect Widget
      • initiateConnect
      • completeConnect
    • Using a Connection
      • listWallets
      • getWalletById
      • listAccounts
      • getAccountById
      • listAddresses
      • getAddressById
      • listKnownDestinations
      • sendTransfer
      • getTransfer
      • EVM Transactions
        • sendTransaction
        • getTransactionById
        • signMessage
        • getSignMessageById
        • signTypedData
        • getTypedDataById
      • Staking
        • Ethereum (ETH)
        • Polygon (POL)
        • Solana (SOL)
        • Sui (SUI)
      • Raw Signing
        • signRaw
        • getRawSignRequest
    • Manage Connections
      • listConnections
      • getConnection
      • revokeConnection
  • API Reference
    • REST API
      • Authorization
      • Connect Widget
      • Networks & Assets
      • Wallets, Accounts, Addresses
      • Known Destinations
      • Transfer
      • Stake
        • Ethereum
        • Polygon
        • Solana
        • Sui
      • Transactions
        • Ethereum (EVM)
      • Raw Signing
      • Transit Encryption Key
      • Manage Connections
Powered by GitBook
On this page
  1. API Reference
  2. REST API

Transit Encryption Key

PreviousRaw SigningNextManage Connections

Last updated 1 month ago

Create encryption key

post

Creates an encryption key pair for secure end-to-end communication.

Authorizations
Header parameters
x-client-idstringRequired
AuthorizationstringOptional
Responses
201
Returns the created encryption key details.
application/json
401
Authentication is required
application/json
403
Insufficient permissions
application/json
404
Resource not found
application/json
500
Internal server error
application/json
post
POST /v1/vault/encryption-keys HTTP/1.1
Host: auth.armory.playnarval.com
detached-jws: YOUR_API_KEY
x-client-id: text
Accept: */*
{
  "publicKey": {
    "kty": "RSA",
    "alg": "RS256",
    "use": "sig",
    "kid": "text",
    "addr": "text",
    "n": "text",
    "e": "text"
  },
  "data": {
    "keyId": "text",
    "jwk": {
      "kty": "EC",
      "alg": "ES256K",
      "use": "sig",
      "kid": "text",
      "addr": "text",
      "crv": "secp256k1",
      "x": "text",
      "y": "text"
    },
    "pem": "text"
  }
}