Register Key
POST
https://sandbox-api.truthlocks.com/v1/issuers/{issuer_id}/keysAuth requiredRegisters a new cryptographic signing key for an issuer. Only Ed25519 keys are supported. Keys start in ACTIVE status and can be used immediately for signing attestations.
Path Parameters
issuer_idstringrequiredThe UUID of the issuer to register the key for
Defaults to 550e8400-e29b-41d4-a716-446655440000
Body Parameters
kidstringrequiredUnique key identifier (e.g., "ed-key-1")
Defaults to ed-key-1
algorithmstringrequiredMust be "Ed25519"
Defaults to Ed25519
public_keystringrequiredBase64-encoded public key
Defaults to MCowBQYDK2VwAyEAGb9Y2LvOsSglb2wUInSMKDpXm1QL4JqVxbu1rZxHkRY=
Responses
{
"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"
}POST
/v1/issuers/{issuer_id}/keysLanguage
CredentialsHEADER
Authorization
Response
Click Try It! to send a real request, or view sample responses: