cURL
curl --request POST \ --url https://api.truthlocks.com/v1/issuers/keys/{kid}/rotate \ --header 'X-API-Key: <api-key>'
{ "old_key": { "kid": "ed-key-1", "status": "rotated", "rotated_at": "2026-02-18T19:00:00Z" }, "new_key": { "kid": "ed-key-2", "status": "active", "alg": "Ed25519", "created_at": "2026-02-18T19:00:00Z" } }
Rotates a cryptographic key, creating a new key and disabling the old one.
API key for machine-to-machine authentication
Key rotated
Key identifier
Ed25519
Base64-encoded public key
ACTIVE
DISABLED
EXPIRED