# Jwt bindings API

## GET /api/v1/admin/jwt-bindings

`GET /api/v1/admin/jwt-bindings` · operation `listJWTSubjectBindings`

Requires boot jwt_inference and jwt:manage, global admin only. Subject binds to an existing active managed identity, never to claims-derived roles/scopes. Trust fingerprint and per-subject monotonic version prevent stale-trust drafts and ABA. DELETE restores YAML or leaves an unbound tombstone. PUT/DELETE require CSRF and audit, and revalidate administrator/key/team transactionally.

**Authentication:** `adminSession`

**Responses**

| Status | Description | Body |
|---|---|---|
| `200` | At most 1000 effective/tombstone subject bindings | `application/json`: [JWTBindingList](/docs/api/schemas/j/#jwtbindinglist) |
| `400` | Invalid bounded request | — |
| `401` | Authentication required | — |
| `403` | Role or resource forbidden | — |
| `404` | Feature disabled or resource unavailable | — |
| `409` | Version or trust conflict | — |
| `503` | Storage, trust or operation temporarily unavailable | — |


## PUT /api/v1/admin/jwt-bindings

`PUT /api/v1/admin/jwt-bindings` · operation `putJWTSubjectBinding`

Requires boot jwt_inference and jwt:manage, global admin only. Subject binds to an existing active managed identity, never to claims-derived roles/scopes. Trust fingerprint and per-subject monotonic version prevent stale-trust drafts and ABA. DELETE restores YAML or leaves an unbound tombstone. PUT/DELETE require CSRF and audit, and revalidate administrator/key/team transactionally.

**Authentication:** `adminSession`

**Request body** (required)

- `application/json`: object
  - `subject` (string, required, min length 1, max length 255)
  - `trust_fingerprint` (string, required, pattern `^[a-f0-9]{64}$`)
  - `version` (integer, required, min 0)
  - `key_id` (string, required)
  - `disabled` (boolean, default `false`)

**Responses**

| Status | Description | Body |
|---|---|---|
| `204` | Binding committed | — |
| `400` | Invalid bounded request | — |
| `401` | Authentication required | — |
| `403` | Role or resource forbidden | — |
| `404` | Feature disabled or resource unavailable | — |
| `409` | Version or trust conflict | — |
| `503` | Storage, trust or operation temporarily unavailable | — |


## DELETE /api/v1/admin/jwt-bindings

`DELETE /api/v1/admin/jwt-bindings` · operation `revertJWTSubjectBinding`

Requires boot jwt_inference and jwt:manage, global admin only. Subject binds to an existing active managed identity, never to claims-derived roles/scopes. Trust fingerprint and per-subject monotonic version prevent stale-trust drafts and ABA. DELETE restores YAML or leaves an unbound tombstone. PUT/DELETE require CSRF and audit, and revalidate administrator/key/team transactionally.

**Authentication:** `adminSession`

**Request body** (required)

- `application/json`: object
  - `subject` (string, required, min length 1, max length 255)
  - `trust_fingerprint` (string, required, pattern `^[a-f0-9]{64}$`)
  - `version` (integer, required, min 0)

**Responses**

| Status | Description | Body |
|---|---|---|
| `204` | Binding committed | — |
| `400` | Invalid bounded request | — |
| `401` | Authentication required | — |
| `403` | Role or resource forbidden | — |
| `404` | Feature disabled or resource unavailable | — |
| `409` | Version or trust conflict | — |
| `503` | Storage, trust or operation temporarily unavailable | — |

