Register workload encryption key
POST
/v1/identity/agent/encryption-key
const url = 'http://localhost:8693/v1/identity/agent/encryption-key';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"workload_id":"example","key":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8693/v1/identity/agent/encryption-key \ --header 'Content-Type: application/json' \ --data '{ "workload_id": "example", "key": {} }'Register a JWK public key for a workload. Used by ADR-0014 converged credential management to encrypt secrets into the WIMSE JWT.
Request Body required
Section titled “Request Body required ” Media type application/json
object
workload_id
required
WIMSE workload URI
string
key
required
JWK public key (RSA or ECDSA)
object
Example generated
{ "workload_id": "example", "key": {}}Responses
Section titled “ Responses ”Key registered
Invalid key format
Media type application/json
object
error
required
Error code (RFC 8693 compatible)
string
error_description
Human-readable error detail
string
Example
{ "error": "invalid_request"}