curl --request POST \
--url https://orchestrator.control.coincover.com/v1/key/generate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"user_identifier": "john.doe@example.com",
"verification_id": "a7b8c9d0-e1f2-4345-a678-901234567890",
"sign_with": [
"external_customer_id",
"user_id",
"key_fingerprint"
]
}
'import requests
url = "https://orchestrator.control.coincover.com/v1/key/generate"
payload = {
"user_identifier": "john.doe@example.com",
"verification_id": "a7b8c9d0-e1f2-4345-a678-901234567890",
"sign_with": ["external_customer_id", "user_id", "key_fingerprint"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_identifier: 'john.doe@example.com',
verification_id: 'a7b8c9d0-e1f2-4345-a678-901234567890',
sign_with: ['external_customer_id', 'user_id', 'key_fingerprint']
})
};
fetch('https://orchestrator.control.coincover.com/v1/key/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://orchestrator.control.coincover.com/v1/key/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'user_identifier' => 'john.doe@example.com',
'verification_id' => 'a7b8c9d0-e1f2-4345-a678-901234567890',
'sign_with' => [
'external_customer_id',
'user_id',
'key_fingerprint'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://orchestrator.control.coincover.com/v1/key/generate"
payload := strings.NewReader("{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://orchestrator.control.coincover.com/v1/key/generate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://orchestrator.control.coincover.com/v1/key/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"key_id": "550e8400-e29b-41d4-a716-446655440000",
"public_key": "30820122300d06092a864886f70d...",
"signature": "MEUCIQDxyz123abc456def789ghi...",
"signed_payload": "{\"external_customer_id\":\"acme-wallet\",\"public_key\":\"30820122300d...\"}",
"signed_fields": [
"external_customer_id",
"user_id",
"key_fingerprint"
]
}Generate a cryptographic key
Generates a new cryptographic key for a user. Requires a user identifier and a verification_id that exists in the identity_verifications table and belongs to the user associated with the organisation. This endpoint calls the hot-keys orchestrator partner-assign-key endpoint.
curl --request POST \
--url https://orchestrator.control.coincover.com/v1/key/generate \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"user_identifier": "john.doe@example.com",
"verification_id": "a7b8c9d0-e1f2-4345-a678-901234567890",
"sign_with": [
"external_customer_id",
"user_id",
"key_fingerprint"
]
}
'import requests
url = "https://orchestrator.control.coincover.com/v1/key/generate"
payload = {
"user_identifier": "john.doe@example.com",
"verification_id": "a7b8c9d0-e1f2-4345-a678-901234567890",
"sign_with": ["external_customer_id", "user_id", "key_fingerprint"]
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
user_identifier: 'john.doe@example.com',
verification_id: 'a7b8c9d0-e1f2-4345-a678-901234567890',
sign_with: ['external_customer_id', 'user_id', 'key_fingerprint']
})
};
fetch('https://orchestrator.control.coincover.com/v1/key/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://orchestrator.control.coincover.com/v1/key/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'user_identifier' => 'john.doe@example.com',
'verification_id' => 'a7b8c9d0-e1f2-4345-a678-901234567890',
'sign_with' => [
'external_customer_id',
'user_id',
'key_fingerprint'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://orchestrator.control.coincover.com/v1/key/generate"
payload := strings.NewReader("{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://orchestrator.control.coincover.com/v1/key/generate")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://orchestrator.control.coincover.com/v1/key/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_identifier\": \"john.doe@example.com\",\n \"verification_id\": \"a7b8c9d0-e1f2-4345-a678-901234567890\",\n \"sign_with\": [\n \"external_customer_id\",\n \"user_id\",\n \"key_fingerprint\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"key_id": "550e8400-e29b-41d4-a716-446655440000",
"public_key": "30820122300d06092a864886f70d...",
"signature": "MEUCIQDxyz123abc456def789ghi...",
"signed_payload": "{\"external_customer_id\":\"acme-wallet\",\"public_key\":\"30820122300d...\"}",
"signed_fields": [
"external_customer_id",
"user_id",
"key_fingerprint"
]
}Authorizations
API key for authentication and authorization
Body
User identifier (REQUIRED)
"john.doe@example.com"
Verification ID from a previous verification. (REQUIRED) Must exist in identity_verifications table and belong to the user associated with the organisation.
"a7b8c9d0-e1f2-4345-a678-901234567890"
Optional context fields to bind into the enclave signature. public_key is always signed implicitly and must not be included. Every requested field must resolve to a non-empty value, except key_fingerprint which may resolve after generation. Each field may only be listed once.
external_customer_id, external_package_id, pulled_by_id, pulled_by_type, user_id, key_id, key_fingerprint [
"external_customer_id",
"user_id",
"key_fingerprint"
]
Response
Key generated successfully
Unique identifier for the generated key (UUID)
"550e8400-e29b-41d4-a716-446655440000"
Public key in hexadecimal format
"30820122300d06092a864886f70d..."
Base64 ECDSA P-256 DER signature. When sign_with is omitted, this signs the bare public_key hex; otherwise it signs signed_payload. Verify it against CoinCover's published JWKS, not with public_key.
"MEUCIQDxyz123abc456def789ghi..."
RFC 8785 JCS-canonical JSON string signed by the enclave. Present only when sign_with was supplied. Verify its exact UTF-8 bytes without re-stringifying.
"{\"external_customer_id\":\"acme-wallet\",\"public_key\":\"30820122300d...\"}"
Validated context fields included in signed_payload, in request order. Does not include public_key. Present only when sign_with was supplied.
external_customer_id, external_package_id, pulled_by_id, pulled_by_type, user_id, key_id, key_fingerprint [
"external_customer_id",
"user_id",
"key_fingerprint"
]