cURL
curl --request POST \ --url https://api.truthlocks.com/v1/issuers/{id}/keys \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "kid": "ed-key-1", "algorithm": "Ed25519", "public_key": "MCowBQYDK2VwAyEA..." } '
{ "kid": "ed-key-1", "issuer_id": "550e8400-e29b-41d4-a716-446655440000", "algorithm": "Ed25519", "public_key": "MCowBQYDK2VwAyEAGb9Y2LvOsSglb2wUInSMKDpXm1QL4JqVxbu1rZxHkRY=", "status": "ACTIVE", "created_at": "2026-01-13T12:00:00Z" }
Registers a new cryptographic key for an issuer. Only Ed25519 is supported.
API key for machine-to-machine authentication
Ed25519
Base64-encoded public key
Key registered
Key identifier
ACTIVE
DISABLED
EXPIRED