Skip to main content

Consent / Session schema

See Consent API for the full endpoint reference.

ConsentCreate​

FieldTypeConstraints
scopestr | null1–255 chars. Required unless client mapping chooses it
user_substr | null1–255 chars. Required unless verified consent is on
ttl_secondsint | null60–86400
subject_tokenstr | nullThe user's IdP token. Required with verified consent; refused without it. Never stored
subject_token_typestrurn:ietf:params:oauth:token-type:access_token (default) or …:id_token

ConsentRead​

FieldTypeNotes
session_idstr
root_grantstrThe hop-1 JWT
policy_versionintPinned for the session's lifetime
scopestr
user_substr
hop_budgetint
expires_atdatetime
principal_sourcestr, omitted when assertedverified, or embedded-test from an embedded control plane
client_idstr, omitted when noneThe 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.