Private Keys
Get private key
Get details about a private key.
POST
https://api.0xkey.io
/
public
/
v1
/
query
/
get_private_key
Get private key
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_private_key \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '
{
"organizationId": "<string>",
"privateKeyId": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', privateKeyId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_private_key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_private_key"
payload = {
"organizationId": "<string>",
"privateKeyId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"privateKey": {
"privateKeyId": "<string>",
"publicKey": "<string>",
"privateKeyName": "<string>",
"curve": "CURVE_UNSPECIFIED",
"addresses": [
{
"format": "ADDRESS_FORMAT_UNSPECIFIED",
"address": "<string>"
}
],
"privateKeyTags": [
"<string>"
],
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"exported": true,
"imported": true
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}Authorizations
ApiKeyAuthAuthenticatorAuth
Body
application/json
Response
A successful response.
Show child attributes
Show child attributes
⌘I
Get private key
curl --request POST \
--url https://api.0xkey.io/public/v1/query/get_private_key \
--header 'Content-Type: application/json' \
--header 'X-Stamp: <api-key>' \
--data '
{
"organizationId": "<string>",
"privateKeyId": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-Stamp': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({organizationId: '<string>', privateKeyId: '<string>'})
};
fetch('https://api.0xkey.io/public/v1/query/get_private_key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.0xkey.io/public/v1/query/get_private_key"
payload = {
"organizationId": "<string>",
"privateKeyId": "<string>"
}
headers = {
"X-Stamp": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"privateKey": {
"privateKeyId": "<string>",
"publicKey": "<string>",
"privateKeyName": "<string>",
"curve": "CURVE_UNSPECIFIED",
"addresses": [
{
"format": "ADDRESS_FORMAT_UNSPECIFIED",
"address": "<string>"
}
],
"privateKeyTags": [
"<string>"
],
"createdAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"updatedAt": {
"seconds": "<string>",
"nanos": "<string>"
},
"exported": true,
"imported": true
}
}{
"code": 123,
"message": "<string>",
"details": [
{
"@type": "<string>"
}
]
}