Consent / Session schema
See Consent API for the full endpoint reference.
ConsentCreate
| Field | Type | Constraints |
|---|---|---|
scope | str | null | 1–255 chars. Required unless client mapping chooses it |
user_sub | str | null | 1–255 chars. Required unless verified consent is on |
ttl_seconds | int | null | 60–86400 |
subject_token | str | null | The user's IdP token. Required with verified consent; refused without it. Never stored |
subject_token_type | str | urn:ietf:params:oauth:token-type:access_token (default) or …:id_token |
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 | |
principal_source | str, omitted when asserted | verified, or embedded-test from an embedded control plane |
client_id | str, omitted when none | The IdP client a mapping chose the scope from |
SessionRead
Same as ConsentRead minus root_grant — for reads and diagnostics where no token material
should be exposed.