Skip to main content
organizationId
string
required
Unique identifier for a given Organization.
privateKeyId
string
required
Unique identifier for a given Private Key.
A successful response returns the following fields:
privateKey
object
required
privateKey field
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/get_private_key \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --header "X-Stamp: <string> (see Authorizations)" \
  --data '{
    "organizationId": "<string>",
    "privateKeyId": "<string>"
}'
{
  "privateKey": {
    "privateKeyId": "<string>",
    "publicKey": "<string>",
    "privateKeyName": "<string>",
    "curve": "<CURVE_SECP256K1>",
    "addresses": [
      {
        "format": "<ADDRESS_FORMAT_UNCOMPRESSED>",
        "address": "<string>"
      }
    ],
    "privateKeyTags": [
      "<string>"
    ],
    "createdAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    },
    "updatedAt": {
      "seconds": "<string>",
      "nanos": "<string>"
    },
    "exported": "<boolean>",
    "imported": "<boolean>"
  }
}