Break-glass control plane at https://api.withpasskey.xyz/admin/*. The customer console calls it server-side only — the token never reaches a browser. Mint it as a 32-byte random secret; treat it as root.
route
purpose
POST /admin/tenants · GET /admin/tenants
create + list tenants
POST /admin/apps · GET /admin/apps · GET /admin/apps/:id
applications (returns pk_ client_id; body env: test|live)
POST /admin/apps/:id/domains
add an origin — dev|dns-txt|well-known verification
POST /admin/apps/:id/keys · POST /admin/credentials/:id/revoke
mint sk_/pk_ secrets, revoke credentials
GET /admin/jwks · POST /admin/jwks/rotate
keyring per env — required before the first token exchange
POST /admin/tickets
operator-minted enrollment tickets
POST /admin/users/:userId/recovery
operator-minted recovery codes (shown once)
GET /admin/audit · GET /admin/overview
audit events + counters
POST /admin/console-seed · POST /admin/demo-seed
bootstrap the console app / a demo relying party
Identifier prefixes
prefix
thing
pk_test_/pk_live_
client_id (public identifier)
sk_test_/sk_live_
client_secret (server-only)
pkt_
enrollment ticket (one-time)
pkc_
authorization code (one-time, 60s)
pkr-
recovery code (one-time, shown once)
k_
JWKS key id
Errors
Uniform envelope {error:{code,message}}. Codes you will meet: invalid_client (401, unknown client or bad secret), invalid_grant (400, code/PKCE/redirect mismatch), invalid_ticket/invalid_code (400), unknown_credential/assertion_failed/attestation_failed (400), expired (410), rate_limited (429), internal (500).
Cookies on WithPasskey
We use cookies to measure which pages and listings are visited, so we can improve WithPasskey (statistics). Choose “Accept all” and that data may also be used to measure our ads. Declining stores nothing — the site works the same without cookies.