Admin Endpoints
Both services serve endpoints under /admin/tenants for creating a tenant and changing it while the service runs:
its API keys, its logo, and on the verifier its issuer trust anchors. See Settings.
| Method | Path | Does | Served by |
|---|---|---|---|
POST |
/admin/tenants |
Creates a tenant | Both |
POST |
/admin/tenants/{code}/api-keys |
Adds an API key | Both |
GET |
/admin/tenants/{code}/api-keys |
Lists the API keys | Both |
DELETE |
/admin/tenants/{code}/api-keys/{id} |
Revokes an API key | Both |
PUT |
/admin/tenants/{code}/logo |
Replaces the logo | Both |
GET |
/admin/tenants/{code}/issuer-trust-anchors |
Lists the issuer trust anchors | Verifier |
PUT |
/admin/tenants/{code}/issuer-trust-anchors/{name} |
Adds or replaces an issuer trust anchor | Verifier |
DELETE |
/admin/tenants/{code}/issuer-trust-anchors/{name} |
Removes an issuer trust anchor | Verifier |
They are described in GET /openapi, under the Admin tag.
Admin keys
The endpoints are authenticated with one of the keys in the admin block of server.json, presented as a bearer
token. The block is required:
"admin": {
"apiKeys": {
"Rw6X1Wc0rJm3lPpQ8nK2vYtZb7HsUaE4dFgL9oNiMcxBqT5yVhGjSzReAuIkDw0e": "Operations team" // (1)!
}
}
- Key: the admin key itself. Value: a label, so you can tell which entry is which.
An admin key controls every tenant of the service, its API keys included. An API key does not open these endpoints.
Managing admin keys
Treat them like the database password:
- Issue one key per person or system that manages the deployment, so you can revoke a single one without disturbing the others. That is what the label is for.
- Generate keys with a CSPRNG and make them long. The example above is 64 characters.
- Replace
admin-api-key. It is the example key throughout this documentation. Replace it before anyone else can reach the service. - Keep them out of
server.jsonin version control. See Going to production. - Revoking means removing the entry and restarting.
adminis read on every start. There is no expiry. - Rotate without a gap by listing both keys for a while: add the new one and restart, move to it, then remove the old one and restart again.
Creating a tenant
Create one with POST /admin/tenants, with the tenant's settings in the body. They are described in the
issuer and
verifier configuration references. jq builds the body
from the key and certificate files:
jq -n \
--rawfile key issuer/conf/signing-key/issuer-localhost.key \
--rawfile certificate issuer/conf/signing-key/issuer-localhost.pem \
'{
code: "example",
display_name: "Credential Issuer",
signing: { private_key: $key, certificate_chain: [$certificate] }
}' |
curl -X POST http://localhost:8079/admin/tenants \
-H 'Authorization: Bearer admin-api-key' \
-H 'Content-Type: application/json' \
--data-binary @-
The service answers 201. The tenant has no API keys and no logo yet; add them with the endpoints below.
code names the tenant in the paths of the other endpoints, as {code}. On the issuer it is also part of the
status list address in every credential the tenant issues, so choose it before issuing.
API keys
The keys your applications authenticate with — see API keys. Both services serve these.
Add a key with POST /admin/tenants/{code}/api-keys, naming the application it is for:
curl -X POST http://localhost:8081/admin/tenants/example/api-keys \
-H 'Authorization: Bearer admin-api-key' \
-H 'Content-Type: application/json' \
-d '{ "client": "Reception kiosk" }'
The service generates the key and answers 201 with it:
{
"id": "e8977c3fa0059e1bb8210b5724527fd387f5afb3f8abd453928a907cf274bc17",
"api_key": "…"
}
This answer is the only time the key is shown; the service keeps only a hash of it. Store it where the application reads it from.
List the keys with GET /admin/tenants/{code}/api-keys. Each entry gives the key's id, its client and its
created_at, but never the key itself:
[
{
"id": "8c284055dbb54b7f053a2dc612c3727c7aa36354361055f2110f4903ea8ee29c",
"client": "Local development",
"created_at": "2026-11-19T10:01:10.121669Z"
}
]
Revoke a key with DELETE /admin/tenants/{code}/api-keys/{id}, using the id from the list. The service
answers 204, and the key is refused from then on:
curl -X DELETE http://localhost:8081/admin/tenants/example/api-keys/e8977c3fa0059e1bb8210b5724527fd387f5afb3f8abd453928a907cf274bc17 \
-H 'Authorization: Bearer admin-api-key'
Logo
The logo wallets show for the issuer or the verifier — see Issuer display and Client metadata. Both services serve this.
Replace it with PUT /admin/tenants/{code}/logo, sending the image itself with its media type, image/png or
image/jpeg:
curl -X PUT http://localhost:8079/admin/tenants/example/logo \
-H 'Authorization: Bearer admin-api-key' \
-H 'Content-Type: image/png' \
--data-binary @logo.png
The service answers 204. The image must be a PNG or JPEG of at most 512 KB, checked by its content. Wallets fetch
the logo from the same address as before, and may keep showing the old one for a while.
Issuer trust anchors
The root certificates the verifier traces a credential's certificate chain back to — see Issuer trust anchors. Only the verifier serves these.
List them with GET /admin/tenants/{code}/issuer-trust-anchors. The answer maps each anchor's name to its
certificate, in PEM. The anchors the tenant was created with keep the names they had in issuer_trust_anchors.
Add or replace one with PUT /admin/tenants/{code}/issuer-trust-anchors/{name}, with the PEM certificate in the
body:
curl -X PUT http://localhost:8081/admin/tenants/example/issuer-trust-anchors/example-root \
-H 'Authorization: Bearer admin-api-key' \
-H 'Content-Type: application/json' \
-d "{ \"certificate\": $(jq -Rs . < example-root.pem) }"
jq -Rs turns the file into a JSON string. The service answers 204, or 400 if the certificate cannot be read.
Remove one with DELETE /admin/tenants/{code}/issuer-trust-anchors/{name}. The service answers 204, and
credentials whose chain leads only to that root are rejected from then on.
When a call fails
401: the admin key is missing or not inadmin.apiKeys.404: the path names a tenant the service does not have — such asexamplebefore it is created, or after the database was emptied.409:POST /admin/tenantsnames a code a tenant already has.400: the request was refused, and the body says why — a tenant code or settings the service cannot build a tenant from, an API key request without aclient, a certificate that cannot be read, or a logo that is not a PNG or JPEG of at most 512 KB.415: a logo sent with aContent-Typeother thanimage/pngorimage/jpeg.
What's Next
- API keys: The keys these endpoints hand out, and where applications send them.
- Issuer trust anchors: Choosing which issuers the verifier accepts.
- Going to production: Keeping the admin keys out of reach.