latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-216381,9552.9 MB

f2cf3228f366

Session Policy

Create

Create a session policy.

post/api/v1/session-policies

Request body

accessTokenTtlSecondsinteger

The accessTokenTtlSeconds field.

displayNamestring required

The displayName field.

idleTimeoutSecondsinteger

The idleTimeoutSeconds field.

maxSessionDurationSecondsinteger

The maxSessionDurationSeconds field.

persistence'PERSISTENCE_MODE_UNSPECIFIED' | 'PERSISTENCE_MODE_ALLOW_USER_CHOICE' | 'PERSISTENCE_MODE_ALWAYS_PERSIST' | 'PERSISTENCE_MODE_SESSION_ONLY'

The persistence field.

priorityinteger

The priority field.

refreshRotationWindowSecondsinteger

The refreshRotationWindowSeconds field.

refreshTokenTtlSecondsinteger

The refreshTokenTtlSeconds field.

rotateRefreshOnUseboolean

The rotateRefreshOnUse field.

Response

Successful response