Skip to main content
POST
/
v1
/
issuers
/
{id}
/
keys
Register Key
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 signing key for an issuer. Only Ed25519 keys are supported. Keys start in ACTIVE status and can be used immediately for signing attestations.

Parameters

issuer_id
string
required
The UUID of the issuer to register the key for
kid
string
required
Unique key identifier (e.g., “ed-key-1”)
algorithm
string
required
Must be “Ed25519”
public_key
string
required
Base64-encoded public key

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"
}

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string<uuid>
required

Body

application/json
kid
string
required
algorithm
enum<string>
required
Available options:
Ed25519
public_key
string
required

Base64-encoded public key

expires_at
string<date-time>

Response

Key registered

kid
string

Key identifier

issuer_id
string<uuid>
algorithm
enum<string>
Available options:
Ed25519
public_key
string

Base64-encoded public key

status
enum<string>
Available options:
ACTIVE,
DISABLED,
EXPIRED
not_before
string<date-time>
expires_at
string<date-time>