Consent / Session schema
See Consent API for the full endpoint reference.
ConsentCreate
| Field | Type | Constraints |
|---|---|---|
scope | str | 1–255 chars |
user_sub | str | 1–255 chars |
ttl_seconds | int | null | 60–86400 |
ConsentRead
| Field | Type | Notes |
|---|---|---|
session_id | str | |
root_grant | str | The hop-1 JWT |
policy_version | int | Pinned for the session's lifetime |
scope | str | |
user_sub | str | |
hop_budget | int | |
expires_at | datetime |
SessionRead
Same as ConsentRead minus root_grant — for reads and diagnostics where no token material
should be exposed.