curl --request POST \
--url https://api.turnkey.com/public/v1/submit/create_tvc_quorum_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"type": "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY",
"timestampMs": "<string> (e.g. 1746736509954)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"threshold": "<number>",
"operatorEncryptKeys": [
"<string>"
]
}
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().createTvcQuorumKey({
threshold: 0 // The threshold of operators needed to reassemble this TVC quorum key,
operatorEncryptKeys: ["<string>"] // Operator public keys used to encrypt and later approve the generated TVC quorum key shares
});
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"activity": {
"id": "<string>",
"organizationId": "<string>",
"status": "<string>",
"type": "<string>",
"intent": {
"createTvcQuorumKeyIntent": {
"threshold": "<number>",
"operatorEncryptKeys": [
"<string>"
]
}
},
"result": {
"createTvcQuorumKeyResult": {
"quorumKeyId": "<string>",
"quorumPublicKey": "<string>",
"shareIds": [
"<string>"
]
}
},
"votes": "<array>",
"fingerprint": "<string>",
"canApprove": "<boolean>",
"canReject": "<boolean>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}
}
Activities
Create TVC Quorum Key
Create a hosted TVC Quorum Key and encrypted shares.
curl --request POST \
--url https://api.turnkey.com/public/v1/submit/create_tvc_quorum_key \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header "X-Stamp: <string> (see Authorizations)" \
--data '{
"type": "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY",
"timestampMs": "<string> (e.g. 1746736509954)",
"organizationId": "<string> (Your Organization ID)",
"parameters": {
"threshold": "<number>",
"operatorEncryptKeys": [
"<string>"
]
}
}'
import { Turnkey } from "@turnkey/sdk-server";
const turnkeyClient = new Turnkey({
apiBaseUrl: "https://api.turnkey.com",
apiPublicKey: process.env.API_PUBLIC_KEY!,
apiPrivateKey: process.env.API_PRIVATE_KEY!,
defaultOrganizationId: process.env.ORGANIZATION_ID!,
});
const response = await turnkeyClient.apiClient().createTvcQuorumKey({
threshold: 0 // The threshold of operators needed to reassemble this TVC quorum key,
operatorEncryptKeys: ["<string>"] // Operator public keys used to encrypt and later approve the generated TVC quorum key shares
});
{
"activity": {
"id": "<activity-id>",
"status": "ACTIVITY_STATUS_COMPLETED",
"type": "ACTIVITY_TYPE_CREATE_TVC_QUORUM_KEY",
"organizationId": "<organization-id>",
"timestampMs": "<timestamp> (e.g. 1746736509954)",
"result": {
"activity": {
"id": "<string>",
"organizationId": "<string>",
"status": "<string>",
"type": "<string>",
"intent": {
"createTvcQuorumKeyIntent": {
"threshold": "<number>",
"operatorEncryptKeys": [
"<string>"
]
}
},
"result": {
"createTvcQuorumKeyResult": {
"quorumKeyId": "<string>",
"quorumPublicKey": "<string>",
"shareIds": [
"<string>"
]
}
},
"votes": "<array>",
"fingerprint": "<string>",
"canApprove": "<boolean>",
"canReject": "<boolean>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
}
}
}
A successful response returns the following fields:
Was this page helpful?