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>"
  }
}
POST
/
public
/
v1
/
query
/
get_private_key

Authorizations

X-Stamp
string
required
Cryptographically signed (stamped) request to be passed in as a header. For more info, see here.

Body

organizationId
string
required
Unique identifier for a given Organization.
privateKeyId
string
required
Unique identifier for a given Private Key.

Response

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>"
  }
}