Signing Keys API
The Signing Keys API lets BSH_ADMIN users list the JWT signing keys, force a rotation and expire a leaked key.
For how keys are generated, rotated and expired, see the Signing Keys documentation.
Base Endpoint
/api/auth/signing-keysEndpoints
| Method | Endpoint | Description | |
|---|---|---|---|
| POST | /api/auth/signing-keys/rotate | Rotate the active key now | |
| POST | /api/auth/signing-keys/{kid}/expire | Expire a retired key | |
| GET | /api/auth/signing-keys?query | List and filter by URI parameters | Similar to Entities API |
| POST | /api/auth/signing-keys/search | Search keys by POST | Similar to Entities API |
| GET | /.well-known/jwks.json | Public keys that verify access tokens (JWKS) | Public |
Signing key object
{
"kid": "a82791af-3c4d-4e5f-8a9b-0c1d2e3f4a5b",
"status": "Retired",
"activatedAt": { "$date": 1794045600000 },
"retiredAt": { "$date": 1794047160000 },
"verifyUntil": { "$date": 1794655560000 },
"rotation": "Manual",
"reason": "Routine rotation",
"updatedBy": "571eb380-bd72-4286-98b7-95505a98dc38",
"current": true
}| Field | Description |
|---|---|
kid | Key ID, also sent in the kid header of every token it signs |
status | Active, Retired or Expired. See Lifecycle. |
activatedAt | When the key started signing tokens (UTC) |
rotatesAt | when it will be rotated, activatedAt + secretTtl |
retiredAt | When a newer key took over. |
verifyUntil | until when it still verifies tokens, retiredAt + refreshTtl + 1h |
expiredAt | When the key was expired |
rotation | How the key became active: Scheduled or Manual |
reason | The reason given by the admin who rotated or expired it |
updatedBy | user who rotated or expired it. |
current | true when this key signed the token of the request. |
Last updated on