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": "<string>",
  "issuer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "algorithm": "Ed25519",
  "public_key": "<string>",
  "status": "ACTIVE",
  "not_before": "2023-11-07T05:31:56Z",
  "expires_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

Use this file to discover all available pages before exploring further.

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

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>