Docs / List Keys
List Keys
List Keys
GET/v1/admin/keys
- Auth
- X-Admin-Token + X-Admin-Actor
- Cache-Control
no-store- Source of truth
clients/openapi.jsonanddocs/API.md§12
Every key, identified by id and a digest prefix. Never the key, never the digest.
Description: clients/openapi.json
Parameters
| Name | In | Required | Type | Example | Notes |
|---|---|---|---|---|---|
customer | query | no | string | exact customer name | |
include_revoked | query | no | boolean | include keys that are revoked | |
month | query | no | string | 2026-11 | YYYY-MM; defaults to the current UTC month |
X-Admin-Token | header | no | string | Operator token (NEWS_ADMIN_TOKEN). A client bearer is refused here. | |
X-Admin-Actor | header | no | string |
Example request
curl -sS \
'https://vg.tempproject.online/v1/admin/keys?month=2026-11' \
-H "X-Admin-Token: $NEWS_ADMIN_TOKEN" \
-H "X-Admin-Actor: $NEWS_ADMIN_ACTOR"import json
import os
import urllib.request
URL = "https://vg.tempproject.online/v1/admin/keys?month=2026-11"
def call() -> dict:
req = urllib.request.Request(URL, headers={
"X-Admin-Token": os.environ["NEWS_ADMIN_TOKEN"],
"X-Admin-Actor": os.environ["NEWS_ADMIN_ACTOR"],
})
with urllib.request.urlopen(req, timeout=15) as res:
print(res.status, res.headers.get("ETag"))
return json.loads(res.read().decode("utf-8"))
if __name__ == "__main__":
body = call()
print(json.dumps(body, indent=2, ensure_ascii=False)[:2000])const res = await fetch(
"https://vg.tempproject.online/v1/admin/keys?month=2026-11",
{
method: "GET",
headers: {
"x-admin-token": process.env.NEWS_ADMIN_TOKEN!,
"x-admin-actor": process.env.NEWS_ADMIN_ACTOR!,
},
},
);
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
console.log(res.headers.get("etag"), await res.json());The requests are generated from the path template and the parameters in clients/openapi.json, so a new parameter appears here without an edit to this site.
Example response
cache-control: no-store
content-type: application/octet-streamNo JSON body on this route; the headers are the ones docs/API.md §2 documents for it
Failures
This operation can answer 200, 400, 401, 404, 409, 422, 503. The full envelope for each status, with its body, is on Errors.