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: <YOUR_API_KEY.YOUR_API_SECRET>" \
  --data '{
    "organizationId": "<string>",
    "privateKeyId": "<string>"
}'
{
  "activity": {
    "id": "<activity-id>",
    "status": "ACTIVITY_STATUS_COMPLETED",
    "type": "ACTIVITY_TYPE_UNKNOWN_V1",
    "organizationId": "<organization-id>",
    "timestampMs": "<timestamp> (e.g., 1745474677461)",
    "result": {
      "privateKey": {
        "privateKeyId": "<string>",
        "publicKey": "<string>",
        "privateKeyName": "<string>",
        "curve": "<CURVE_SECP256K1>",
        "addresses": [
          {
            "format": "<ADDRESS_FORMAT_UNCOMPRESSED>",
            "address": "<string>"
          }
        ],
        "privateKeyTags": [
          "<string_element>"
        ],
        "createdAt": {
          "seconds": "<string>",
          "nanos": "<string>"
        },
        "updatedAt": {
          "seconds": "<string>",
          "nanos": "<string>"
        },
        "exported": true,
        "imported": true
      }
    }
  }
}
POST
/
public
/
v1
/
query
/
get_private_key

Authorizations

X-Stamp
string
header
required

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: <YOUR_API_KEY.YOUR_API_SECRET>" \
  --data '{
    "organizationId": "<string>",
    "privateKeyId": "<string>"
}'
{
  "activity": {
    "id": "<activity-id>",
    "status": "ACTIVITY_STATUS_COMPLETED",
    "type": "ACTIVITY_TYPE_UNKNOWN_V1",
    "organizationId": "<organization-id>",
    "timestampMs": "<timestamp> (e.g., 1745474677461)",
    "result": {
      "privateKey": {
        "privateKeyId": "<string>",
        "publicKey": "<string>",
        "privateKeyName": "<string>",
        "curve": "<CURVE_SECP256K1>",
        "addresses": [
          {
            "format": "<ADDRESS_FORMAT_UNCOMPRESSED>",
            "address": "<string>"
          }
        ],
        "privateKeyTags": [
          "<string_element>"
        ],
        "createdAt": {
          "seconds": "<string>",
          "nanos": "<string>"
        },
        "updatedAt": {
          "seconds": "<string>",
          "nanos": "<string>"
        },
        "exported": true,
        "imported": true
      }
    }
  }
}