Sessions
Sessions
List sessions
Get session
Update session
Delete session
ModelsExpand Collapse
Session = IamUserSessionType { session_type, user_id, id, 19 more } | IamApplicationSessionType { application_id, issuer, provider_id, 14 more } An authenticated identity session. Sessions can be user sessions (representing end-user authentication) or application sessions (representing service-to-service authentication). User sessions support hierarchical relationships via parent_id, while application sessions are always standalone.
An authenticated identity session. Sessions can be user sessions (representing end-user authentication) or application sessions (representing service-to-service authentication). User sessions support hierarchical relationships via parent_id, while application sessions are always standalone.
IamUserSessionType { session_type, user_id, id, 19 more } User session type-specific fields
User session type-specific fields
User ID
Session ID
Whether the session is currently active (deprecated - use status instead)
An Application is a software system with an associated identity that can access Resources. It may act on its own behalf (machine-to-machine) or on behalf of a user (delegated access).
An Application is a software system with an associated identity that can access Resources. It may act on its own behalf (machine-to-machine) or on behalf of a user (delegated access).
Unique identifier of the application
consent: "implicit" | "required"Consent mode for the application. 'implicit' means consent is automatically granted, 'required' means explicit user consent is needed.
Consent mode for the application. 'implicit' means consent is automatically granted, 'required' means explicit user consent is needed.
Entity creation timestamp
Number of resource dependencies
User specified identifier, unique within the zone
Human-readable name
Organization that owns this application
owner_type: "platform" | "customer"Who owns this application. Platform-owned applications cannot be modified via API.
Who owns this application. Platform-owned applications cannot be modified via API.
URL-safe identifier, unique within the zone
Entity update timestamp
Zone this application belongs to
Human-readable description
Entity metadata
Entity metadata
Documentation URL
Icon URL
protocols?: Protocols | nullProtocol-specific configuration
Protocol-specific configuration
oauth2?: Oauth2 | nullOAuth 2.0 protocol configuration
OAuth 2.0 protocol configuration
OAuth 2.0 post-logout redirect URIs for this application
OAuth 2.0 redirect URIs for this application
Application ID that initiated this session
Date when the session was authenticated
Entity creation timestamp
Date when session expires
Issuer URL from IdP
metadata?: Metadata { name } Session metadata
Session metadata
Name of the initiating application or user agent
Organization that owns this session
Parent session ID for hierarchical sessions (user sessions only). When null, this is a web session - a top-level session initiated directly by a user. When set, this is a child session derived from the parent, used for token refresh or delegation. Application sessions cannot have parents.
Provider ID
Session claims data (ID token claims for users, application claims for applications)
status?: "active" | "expired" | "revoked"
Subject claim from IdP
Entity update timestamp
An authenticated user entity
An authenticated user entity
Unique identifier of the user
Entity creation timestamp
Email address of the user
Whether the email address has been verified
Zone-scoped user identifier. Defaults to the user's Keycard ID. When the provider has user_identifier_claim configured, the value is set from that claim at user creation time.
Organization that owns this user
status: "active" | "disabled"Status of the user. Disabled users cannot authenticate.
Status of the user. Disabled users cannot authenticate.
Entity update timestamp
Zone this user belongs to
Date when the user was last authenticated
credentials?: Array<IamUserCredentialFederation { created_at, provider_id, type, 4 more } | IamUserCredentialPassword { created_at, type, updated_at } >Authentication credentials for this user, each carrying its identity provider for federation credentials. Populated only when expand[]=credentials is set on the listing endpoint.
Authentication credentials for this user, each carrying its identity provider for federation credentials. Populated only when expand[]=credentials is set on the listing endpoint.
IamUserCredentialFederation { created_at, provider_id, type, 4 more } Federation credential: the user authenticates through an identity provider.
Federation credential: the user authenticates through an identity provider.
Entity creation timestamp
ID of the identity provider backing this credential. null when the source provider has been deleted.
Entity update timestamp
Issuer identifier of the identity provider.
A Provider is a system that supplies access to Resources and allows actors (Users or Applications) to authenticate.
A Provider is a system that supplies access to Resources and allows actors (Users or Applications) to authenticate.
Unique identifier of the provider
Entity creation timestamp
User specified identifier, unique within the zone
Human-readable name
Organization that owns this provider
owner_type: "platform" | "customer"Who owns this provider. Platform-owned providers cannot be modified via API.
Who owns this provider. Platform-owned providers cannot be modified via API.
URL-safe identifier, unique within the zone
Entity update timestamp
Zone this provider belongs to
OAuth 2.0 client identifier
Indicates whether a client secret is configured
Human-readable description
metadata?: Metadata | nullProvider metadata
Provider metadata
Icon URL
protocols?: Protocols | nullProtocol-specific configuration
Protocol-specific configuration
oauth2?: Oauth2 | nullOAuth 2.0 protocol configuration
OAuth 2.0 protocol configuration
OIDC issuer URL used for discovery and token validation.
Custom query parameters appended to authorization redirect URLs. Use for non-standard providers (e.g. Google prompt=consent, access_type=offline).
Whether to include the resource parameter in authorization requests.
The resource parameter value to include in authorization requests. Defaults to "resource" when authorization_resource_enabled is true.
The query parameter name for scopes in authorization requests. Defaults to "scope". Slack v2 uses "user_scope".
The separator character for scope values. Defaults to " " (space). Slack v2 uses ",".
Dot-separated path to the access token in the token response body. Defaults to "access_token". Slack v2 uses "authed_user.access_token".
openid?: Openid | nullOpenID Connect protocol configuration
OpenID Connect protocol configuration
Additional OIDC scopes to request from this provider during authentication (e.g. "groups"). Merged with the default scopes (openid, profile, email).
When true, logging out of the zone propagates the logout to this provider's end_session_endpoint (RP-initiated logout). Defaults to false.
Name of a top-level string claim in this provider's ID Token to use as the user identifier on user creation. When not set, the user's Keycard ID is used.
type?: "external" | "keycard-vault" | "keycard-sts"
Subject identifier from the identity provider.
IamUserCredentialPassword { created_at, type, updated_at } Password credential: the user authenticates with email and password. The email lives on the user.
Password credential: the user authenticates with email and password. The email lives on the user.
Entity creation timestamp
Entity update timestamp
Delegated-grant count for this user. Populated only when expand[]=grant_count is set on the listing endpoint.
Issuer identifier of the identity provider
Reference to the identity provider. This field is undefined when the source identity provider is deleted but the user is not deleted.
role_assignments?: Array<RoleAssignment>Role grants for this user within the zone. Populated only when expand[]=role-assignments is set on the listing endpoint.
Role grants for this user within the zone. Populated only when expand[]=role-assignments is set on the listing endpoint.
ID of the assigned role
Role identifier: a lowercase slug (letters and digits separated by single hyphens or underscores), unique per owner type within a zone. Role identifiers surface in policy evaluation, so the slug restriction keeps them unambiguous in policy text.
role_owner_type: "platform" | "customer"Owner type of the granted role. Disambiguates roles that share an identifier across owner types.
Owner type of the granted role. Disambiguates roles that share an identifier across owner types.
scope: Scope | nullThe resource this grant is scoped to, or null when the grant is unscoped (applies to the owning zone itself).
The resource this grant is scoped to, or null when the grant is unscoped (applies to the owning zone itself).
The ID of the scoped resource.
The kind of resource this grant is scoped to (e.g. zone).
Session count for this user. Populated only when expand[]=session_count is set on the listing endpoint.
Subject identifier from the identity provider
A User Agent represents a user agent (browser, desktop app, CLI tool) that can initiate user sessions via OAuth 2.0 Dynamic Client Registration.
A User Agent represents a user agent (browser, desktop app, CLI tool) that can initiate user sessions via OAuth 2.0 Dynamic Client Registration.
Unique identifier of the user agent
Entity creation timestamp
User agent identifier (serves as OAuth client_id). Format: ua:{sha256_hash}
Human-readable name
Organization that owns this user agent
URL-safe identifier, unique within the zone
Entity update timestamp
Zone this user agent belongs to
User agent ID (browser/client) that initiated this session
Zone this session belongs to
IamApplicationSessionType { application_id, issuer, provider_id, 14 more } Application session type-specific fields
Application session type-specific fields
Application ID that initiated this session
Issuer URL from IdP
Provider ID
Subject claim from IdP
Session ID
Whether the session is currently active (deprecated - use status instead)
An Application is a software system with an associated identity that can access Resources. It may act on its own behalf (machine-to-machine) or on behalf of a user (delegated access).
An Application is a software system with an associated identity that can access Resources. It may act on its own behalf (machine-to-machine) or on behalf of a user (delegated access).
Unique identifier of the application
consent: "implicit" | "required"Consent mode for the application. 'implicit' means consent is automatically granted, 'required' means explicit user consent is needed.
Consent mode for the application. 'implicit' means consent is automatically granted, 'required' means explicit user consent is needed.
Entity creation timestamp
Number of resource dependencies
User specified identifier, unique within the zone
Human-readable name
Organization that owns this application
owner_type: "platform" | "customer"Who owns this application. Platform-owned applications cannot be modified via API.
Who owns this application. Platform-owned applications cannot be modified via API.
URL-safe identifier, unique within the zone
Entity update timestamp
Zone this application belongs to
Human-readable description
Entity metadata
Entity metadata
Documentation URL
Icon URL
protocols?: Protocols | nullProtocol-specific configuration
Protocol-specific configuration
oauth2?: Oauth2 | nullOAuth 2.0 protocol configuration
OAuth 2.0 protocol configuration
OAuth 2.0 post-logout redirect URIs for this application
OAuth 2.0 redirect URIs for this application
Date when the session was authenticated
Entity creation timestamp
Date when session expires
metadata?: Metadata { name } Session metadata
Session metadata
Name of the initiating application or user agent
Organization that owns this session
Session claims data (ID token claims for users, application claims for applications)
status?: "active" | "expired" | "revoked"
Entity update timestamp
Zone this session belongs to