Activities
- Overview
- Create API Keys
- Create Authenticators
- Create Invitations
- Create Oauth Providers
- Create Policies
- Create Policy
- Create Private Key Tag
- Create Private Keys
- Create Read Only Session
- Create Read Write Session
- Create Sub-Organization
- Create User Tag
- Create Users
- Create Wallet
- Create Wallet Accounts
- Delete API Keys
- Delete Authenticators
- Delete Invitation
- Delete Oauth Providers
- Delete Policy
- Delete Private Key Tags
- Delete Private Keys
- Delete Sub Organization
- Delete User Tags
- Delete Users
- Delete Wallets
- Export Private Key
- Export Wallet
- Export Wallet Account
- Import Private Key
- Import Wallet
- Init Email Recovery
- Init Import Private Key
- Init Import Wallet
- Init OTP auth
- Oauth
- OTP auth
- Perform Email Auth
- Recover a user
- Remove Organization Feature
- Set Organization Feature
- Sign Raw Payload
- Sign Raw Payloads
- Sign Transaction
- Update Policy
- Update Private Key Tag
- Update Root Quorum
- Update User
- Update User Tag
- Update Wallet
Queries
- Overview
- Get Activity
- Get API key
- Get Authenticator
- Get Authenticators
- Get Configs
- Get Oauth providers
- Get Policy
- Get Private Key
- Get Suborgs
- Get User
- Get Verified Suborgs
- Get Wallet
- Get Wallet Account
- List Activities
- List Policies
- List Private Key Tags
- List Private Keys
- List User Tags
- List Users
- List Wallets
- List Wallets Accounts
- Who am I?
Get Private Key
Get details about a Private Key
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
}
}
}
}
Authorizations
Body
Unique identifier for a given Organization.
Unique identifier for a given Private Key.
Response
A successful response returns the following fields:
privateKey field
The public component of a cryptographic key pair used to sign messages and transactions.
Derived cryptocurrency addresses for a given Private Key.
format field
Enum options: ADDRESS_FORMAT_UNCOMPRESSED
, ADDRESS_FORMAT_COMPRESSED
, ADDRESS_FORMAT_ETHEREUM
, ADDRESS_FORMAT_SOLANA
, ADDRESS_FORMAT_COSMOS
, ADDRESS_FORMAT_TRON
, ADDRESS_FORMAT_SUI
, ADDRESS_FORMAT_APTOS
, ADDRESS_FORMAT_BITCOIN_MAINNET_P2PKH
, ADDRESS_FORMAT_BITCOIN_MAINNET_P2SH
, ADDRESS_FORMAT_BITCOIN_MAINNET_P2WPKH
, ADDRESS_FORMAT_BITCOIN_MAINNET_P2WSH
, ADDRESS_FORMAT_BITCOIN_MAINNET_P2TR
, ADDRESS_FORMAT_BITCOIN_TESTNET_P2PKH
, ADDRESS_FORMAT_BITCOIN_TESTNET_P2SH
, ADDRESS_FORMAT_BITCOIN_TESTNET_P2WPKH
, ADDRESS_FORMAT_BITCOIN_TESTNET_P2WSH
, ADDRESS_FORMAT_BITCOIN_TESTNET_P2TR
, ADDRESS_FORMAT_BITCOIN_SIGNET_P2PKH
, ADDRESS_FORMAT_BITCOIN_SIGNET_P2SH
, ADDRESS_FORMAT_BITCOIN_SIGNET_P2WPKH
, ADDRESS_FORMAT_BITCOIN_SIGNET_P2WSH
, ADDRESS_FORMAT_BITCOIN_SIGNET_P2TR
, ADDRESS_FORMAT_BITCOIN_REGTEST_P2PKH
, ADDRESS_FORMAT_BITCOIN_REGTEST_P2SH
, ADDRESS_FORMAT_BITCOIN_REGTEST_P2WPKH
, ADDRESS_FORMAT_BITCOIN_REGTEST_P2WSH
, ADDRESS_FORMAT_BITCOIN_REGTEST_P2TR
, ADDRESS_FORMAT_SEI
, ADDRESS_FORMAT_XLM
, ADDRESS_FORMAT_DOGE_MAINNET
, ADDRESS_FORMAT_DOGE_TESTNET
, ADDRESS_FORMAT_TON_V3R2
, ADDRESS_FORMAT_TON_V4R2
, ADDRESS_FORMAT_XRP
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
}
}
}
}
Was this page helpful?
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
}
}
}
}