atmon docs

REFERENCE/TOOLKITS/ORY_KRATOS.MD

Ory Identities

User identity and login. Manage identities and their schemas, run registration, recovery, and verification, and end sessions.

PropertyValue
Slugory_kratos
Definition version0.1.0
Base URLhttps://{{account.project_slug}}.projects.oryapis.com
Auth schemesapi_key
Action tools49
By class35 read, 13 write, 1 destructive
Triggers0
Provider rate limitnot declared, so outbound calls are unpaced

Measured routing accuracy

63 golden cases replayed through the router over the whole index: measured over corpus ea4f12ad2948 (65 toolkits, 2283 tools indexed and 13 declared uncallable), 49 cases written by hand and 14 cases from the paraphrase pass. A case counts as top-1 when its gold tool ranked first and top-8 when it reached the slate at all.

MeasureCasesShare
top-151/6381.0%
top-863/63100.0%

The sweep is offline: the reranker is a deterministic identity fake that returns candidates in the order retrieval produced them, so top-1 measures retrieval order rather than a reranked slate. just eval-live measures the same cases through the live reranker.

Authentication

Connect an entity with ConnectionsService.InitiateConnection, naming this toolkit's slug. Credentials stay in the connections vault; callers hold connected-account ids only.

api_key

PropertyValue
Placementheader
NameAuthorization
Rendered as{key}

Submit the key with ConnectionsService rather than putting it in a request; it is sealed at rest and never returned.

Tools

49 action tools. The catalog-wide slug is ory_kratos.<tool>, which is what search_tools returns and call_tool takes.

ory_kratos.get_web_authn_java_script

Get WebAuthn JavaScript. This endpoint provides JavaScript which is needed in order to perform WebAuthn login and registration. Calls GET /.well-known/ory/webauthn.js.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /.well-known/ory/webauthn.js.

Takes no arguments.

Also retrieved by: "the browser script for passkeys", "js needed to register a security key", "client code for webauthn prompts".

ory_kratos.list_courier_messages

List the outbound message queue: the emails and sms Ory has sent or is about to send, filtered by status and recipient. Calls GET /admin/courier/messages.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/courier/messages.

Arguments:

ArgumentTypeRequiredNotes
page_sizeinteger (int64)noItems per Page This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
recipientstringnoRecipient filters out messages based on recipient. If no value is provided, it doesn't take effect on filter.
statusstring, one of queued, sent, processing, abandonednoStatus filters out messages based on status. If no value is provided, it doesn't take effect on filter.

Also retrieved by: "show the outbound email and sms queue", "what mail has Ory sent", "check the delivery queue".

ory_kratos.get_courier_message

Get a Message. Gets a specific messages by the given ID. Calls GET /admin/courier/messages/{id}.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/courier/messages/{{params.id}}.

Arguments:

ArgumentTypeRequiredNotes
idstringyesMessageID is the ID of the message.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
bodystring
channelstring
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
dispatchesarray of objectDispatches store information about the attempts of delivering a message May contain an error if any happened, or just the success state.
dispatches[].created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
dispatches[].errorobject
dispatches[].idstring (uuid)The ID of this message dispatch
dispatches[].message_idstring (uuid)The ID of the message being dispatched
dispatches[].statusstring, one of failed, successThe status of this dispatch Either "failed" or "success" failed CourierMessageDispatchStatusFailed success CourierMessageDispatchStatusSuccess
dispatches[].updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
idstring (uuid)
recipientstring
send_countinteger (int64)
statusstring, one of queued, sent, processing, abandonedA Message's Status
subjectstring
template_typestring, one of recovery_invalid, recovery_valid, recovery_code_invalid, recovery_code_valid, verification_invalid, verification_valid, verification_code_invalid, verification_code_valid, stub, login_code_valid, registration_code_valid, verifiable_address_changed, authenticator_key_addedrecovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid...
typestring, one of email, phoneIt can either be email or phone
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "look up a Message", "check a Message", "pull up a Message".

ory_kratos.list_identities

List the user accounts in the directory: every identity Ory holds, with their traits and credentials. Use to browse or page all users. Calls GET /admin/identities.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/identities.

Arguments:

ArgumentTypeRequiredNotes
consistencystring, one of , strong, eventualnoRead Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start...
credentials_identifierstringnoCredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.
idsarray of stringnoRetrieve multiple identities by their IDs. This parameter has the following limitations: Duplicate or non-existent IDs are ignored. The order of returned IDs may be different from the request. This...
include_credentialarray of stringnoInclude Credentials in Response Include any credential, for example password or oidc, in the response. When set to oidc, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh...
organization_idstringnoList identities that belong to a specific organization.
pageinteger (int64)noDeprecated Pagination Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not...
page_sizeinteger (int64)noPage Size This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
per_pageinteger (int64)noDeprecated Items per Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This is the number of items per page. Defaults to 250.
preview_credentials_identifier_similarstringnoThis is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH...

Also retrieved by: "show every user account in the directory", "browse all the users we have", "page through the whole user list".

ory_kratos.create_identity

Add a new user account to the directory: create an identity with its profile traits and credentials. Calls POST /admin/identities.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /admin/identities.

Arguments:

ArgumentTypeRequiredNotes
credentialsobjectnoCreate Identity and Import Credentials
credentials.lookup_secretobjectnoCreate Identity and Import Lookup Secret Credentials
credentials.oidcobjectnoCreate Identity and Import Social Sign In Credentials
credentials.passkeyobjectnoCreate Identity and Import Passkey Credentials
credentials.passwordobjectnoCreate Identity and Import Password Credentials
credentials.samlobjectnoPayload to import SAML credentials
credentials.totpobjectnoCreate Identity and Import TOTP 2FA Credentials
credentials.webauthnobjectnoCreate Identity and Import WebAuthn Credentials
external_idstringnoExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
metadata_adminobjectnoStore metadata about the user which is only accessible through admin APIs such as GET /admin/identities/<id>.
metadata_publicobjectnoStore metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this...
organization_idstring (uuid4)no
recovery_addressesarray of objectnoRecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be...
recovery_addresses[].break_glass_for_organizationstring (uuid4)no
recovery_addresses[].created_atstring (date-time)noCreatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].idstring (uuid)no
recovery_addresses[].updated_atstring (date-time)noUpdatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].valuestringyes
recovery_addresses[].viastringyes
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalnoRegion is the Ory Network region this identity will be created in. Optional; defaults to the project home region if omitted. Only effective on the Ory Network. eu-central EUCentral asia-northeast...
schema_idstringyesSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
statestring, one of active, inactivenoState is the identity's state. active StateActive inactive StateInactive
traitsobjectyesTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
verifiable_addressesarray of objectnoVerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be...
verifiable_addresses[].created_atstring (date-time)noWhen this entry was created
verifiable_addresses[].idstring (uuid)noThe ID
verifiable_addresses[].statusstringyesVerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema
verifiable_addresses[].updated_atstring (date-time)noWhen this entry was last updated
verifiable_addresses[].valuestringyesThe address value example foo@user.com
verifiable_addresses[].verifiedbooleanyesIndicates if the address has already been verified
verifiable_addresses[].verified_atstring (date-time)no
verifiable_addresses[].viastring, one of email, smsyesThe delivery method

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
organization_idstring (uuid4)
recovery_addressesarray of objectRecoveryAddresses contains all the addresses that can be used to recover an identity.
recovery_addresses[].break_glass_for_organizationstring (uuid4)
recovery_addresses[].created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].idstring (uuid)
recovery_addresses[].updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].valuestring
recovery_addresses[].viastring
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
state_changed_atstring (date-time)
traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
verifiable_addressesarray of objectVerifiableAddresses contains all the addresses that can be verified by the user.
verifiable_addresses[].created_atstring (date-time)When this entry was created
verifiable_addresses[].idstring (uuid)The ID
verifiable_addresses[].statusstringVerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema
verifiable_addresses[].updated_atstring (date-time)When this entry was last updated
verifiable_addresses[].valuestringThe address value example foo@user.com
verifiable_addresses[].verifiedbooleanIndicates if the address has already been verified
verifiable_addresses[].verified_atstring (date-time)
verifiable_addresses[].viastring, one of email, smsThe delivery method

Also retrieved by: "add a new user account", "register a person in the directory", "make a new user".

ory_kratos.batch_patch_identities

Create multiple identities. Creates multiple identities. Calls PATCH /admin/identities.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls PATCH /admin/identities.

Arguments:

ArgumentTypeRequiredNotes
identitiesarray of objectnoIdentities holds the list of patches to apply required
identities[].createobjectnoCreate Identity Body
identities[].patch_idstring (uuid)noThe ID of this patch. The patch ID is optional. If specified, the ID will be returned in the response, so consumers of this API can correlate the response with the patch.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
identitiesarray of objectThe patch responses for the individual identities.
identities[].actionstring, one of create, errorThe action for this specific patch create ActionCreate Create this identity. error ActionError Error indicates that the patch failed.
identities[].errorobjectFrom https://go.dev/wiki/CodeReviewComments#receiver-type: > Can function or methods, either concurrently or when called from this method, be mutating the receiver? A value type creates a copy of the...
identities[].identitystring (uuid)The identity ID payload of this patch
identities[].patch_idstring (uuid)The ID of this patch response, if an ID was specified in the patch.

Also retrieved by: "create many user accounts at once", "bulk insert and update people", "apply a list of account changes in one call".

ory_kratos.get_identity_by_external_id

Read one user account by its external id: the identity matched to your own external key rather than Ory's internal id. Calls GET /admin/identities/by/external/{externalID}.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/identities/by/external/{{params.externalID}}.

Arguments:

ArgumentTypeRequiredNotes
externalIDstringyesExternalID must be set to the ID of identity you want to get
include_credentialarray of stringnoInclude Credentials in Response Include any credential, for example password or oidc, in the response. When set to oidc, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
organization_idstring (uuid4)
recovery_addressesarray of objectRecoveryAddresses contains all the addresses that can be used to recover an identity.
recovery_addresses[].break_glass_for_organizationstring (uuid4)
recovery_addresses[].created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].idstring (uuid)
recovery_addresses[].updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].valuestring
recovery_addresses[].viastring
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
state_changed_atstring (date-time)
traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
verifiable_addressesarray of objectVerifiableAddresses contains all the addresses that can be verified by the user.
verifiable_addresses[].created_atstring (date-time)When this entry was created
verifiable_addresses[].idstring (uuid)The ID
verifiable_addresses[].statusstringVerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema
verifiable_addresses[].updated_atstring (date-time)When this entry was last updated
verifiable_addresses[].valuestringThe address value example foo@user.com
verifiable_addresses[].verifiedbooleanIndicates if the address has already been verified
verifiable_addresses[].verified_atstring (date-time)
verifiable_addresses[].viastring, one of email, smsThe delivery method

Also retrieved by: "find a user by our own key", "look up an account with a third-party id", "match a person on an external reference".

ory_kratos.get_identity

Read one user account by its internal id: the identity's profile traits, credentials, and state. Calls GET /admin/identities/{id}.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/identities/{{params.id}}.

Arguments:

ArgumentTypeRequiredNotes
idstringyesID must be set to the ID of identity you want to get
include_credentialarray of stringnoInclude Credentials in Response Include any credential, for example password or oidc, in the response. When set to oidc, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
organization_idstring (uuid4)
recovery_addressesarray of objectRecoveryAddresses contains all the addresses that can be used to recover an identity.
recovery_addresses[].break_glass_for_organizationstring (uuid4)
recovery_addresses[].created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].idstring (uuid)
recovery_addresses[].updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].valuestring
recovery_addresses[].viastring
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
state_changed_atstring (date-time)
traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
verifiable_addressesarray of objectVerifiableAddresses contains all the addresses that can be verified by the user.
verifiable_addresses[].created_atstring (date-time)When this entry was created
verifiable_addresses[].idstring (uuid)The ID
verifiable_addresses[].statusstringVerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema
verifiable_addresses[].updated_atstring (date-time)When this entry was last updated
verifiable_addresses[].valuestringThe address value example foo@user.com
verifiable_addresses[].verifiedbooleanIndicates if the address has already been verified
verifiable_addresses[].verified_atstring (date-time)
verifiable_addresses[].viastring, one of email, smsThe delivery method

Also retrieved by: "look up one user account by id", "read a single user's profile", "fetch one person's traits".

ory_kratos.update_identity

Change a user account: update an identity's profile traits, details, and state. Calls PUT /admin/identities/{id}.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls PUT /admin/identities/{{params.id}}.

Arguments:

ArgumentTypeRequiredNotes
credentialsobjectnoCreate Identity and Import Credentials
credentials.lookup_secretobjectnoCreate Identity and Import Lookup Secret Credentials
credentials.oidcobjectnoCreate Identity and Import Social Sign In Credentials
credentials.passkeyobjectnoCreate Identity and Import Passkey Credentials
credentials.passwordobjectnoCreate Identity and Import Password Credentials
credentials.samlobjectnoPayload to import SAML credentials
credentials.totpobjectnoCreate Identity and Import TOTP 2FA Credentials
credentials.webauthnobjectnoCreate Identity and Import WebAuthn Credentials
external_idstringnoExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
idstringyesID must be set to the ID of identity you want to update
metadata_adminobjectnoStore metadata about the user which is only accessible through admin APIs such as GET /admin/identities/<id>.
metadata_publicobjectnoStore metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this...
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalnoRegion is the Ory Network region this identity is homed in. Optional; omit to leave the current region unchanged. eu-central EUCentral asia-northeast AsiaNorthEast us-east USEast us-west USWest eu EU...
schema_idstringyesSchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID.
statestring, one of active, inactiveyesState is the identity's state. active StateActive inactive StateInactive
traitsobjectyesTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
organization_idstring (uuid4)
recovery_addressesarray of objectRecoveryAddresses contains all the addresses that can be used to recover an identity.
recovery_addresses[].break_glass_for_organizationstring (uuid4)
recovery_addresses[].created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].idstring (uuid)
recovery_addresses[].updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
recovery_addresses[].valuestring
recovery_addresses[].viastring
regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
state_changed_atstring (date-time)
traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
verifiable_addressesarray of objectVerifiableAddresses contains all the addresses that can be verified by the user.
verifiable_addresses[].created_atstring (date-time)When this entry was created
verifiable_addresses[].idstring (uuid)The ID
verifiable_addresses[].statusstringVerifiableAddressStatus must not exceed 16 characters as that is the limitation in the SQL Schema
verifiable_addresses[].updated_atstring (date-time)When this entry was last updated
verifiable_addresses[].valuestringThe address value example foo@user.com
verifiable_addresses[].verifiedbooleanIndicates if the address has already been verified
verifiable_addresses[].verified_atstring (date-time)
verifiable_addresses[].viastring, one of email, smsThe delivery method

Also retrieved by: "change a user's profile traits", "edit a person's account details", "modify one user's state".

ory_kratos.list_identity_sessions

List an Identity's Sessions. This endpoint returns all sessions that belong to the given Identity. Calls GET /admin/identities/{id}/sessions.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/identities/{{params.id}}/sessions.

Arguments:

ArgumentTypeRequiredNotes
activebooleannoActive is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
idstringyesID is the identity's ID.
pageinteger (int64)noDeprecated Pagination Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not...
page_sizeinteger (int64)noPage Size This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
per_pageinteger (int64)noDeprecated Items per Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This is the number of items per page. Defaults to 250.

Also retrieved by: "where is this person signed in", "active logins for one account", "every device a user has a session on".

ory_kratos.create_recovery_code_for_identity

Generate a one-time reset code for a user account: a short pin the person enters to recover or activate their account. Calls POST /admin/recovery/code.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /admin/recovery/code.

Arguments:

ArgumentTypeRequiredNotes
expires_instringnoCode Expires In The recovery code will expire after that amount of time has passed. Defaults to the configuration value of selfservice.methods.code.config.lifespan.
flow_typestringnoThe flow type can either be api or browser.
identity_idstring (uuid)yesIdentity to Recover The identity's ID you wish to recover.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
expires_atstring (date-time)Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires.
recovery_codestringRecoveryCode is the code that can be used to recover the account
recovery_linkstringRecoveryLink with flow This link opens the recovery UI with an empty code field.

Also retrieved by: "generate a one-time reset pin for a user", "issue an account recovery code", "give someone a code to regain access".

Generate a password reset link for a user account: a recovery url to email the person so they can regain access. Calls POST /admin/recovery/link.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /admin/recovery/link.

Arguments:

ArgumentTypeRequiredNotes
expires_instringnoLink Expires In The recovery link will expire after that amount of time has passed. Defaults to the configuration value of selfservice.methods.code.config.lifespan.
identity_idstring (uuid)yesIdentity to Recover The identity's ID you wish to recover.
return_tostringno

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
expires_atstring (date-time)Recovery Link Expires At The timestamp when the recovery link expires.
recovery_linkstringRecovery Link This link can be used to recover the account.

Also retrieved by: "make a password reset url for a user", "email someone a recovery link", "send a link to regain access".

ory_kratos.list_sessions

List every active login on the system: all sessions across all user accounts. Calls GET /admin/sessions.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/sessions.

Arguments:

ArgumentTypeRequiredNotes
activebooleannoActive is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned.
expandarray of stringnoExpandOptions is a query parameter encoded list of all properties that must be expanded in the Session. If no value is provided, the expandable properties are skipped.
page_sizeinteger (int64)noItems per Page This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.

Also retrieved by: "show every active login on the system", "who is signed in right now, everyone", "list all logins across all users".

ory_kratos.manage_sessions

Manage sessions in bulk. Disable or delete sessions for a list of identities or a list of sessions in a single call. Calls POST /admin/sessions.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /admin/sessions.

Arguments:

ArgumentTypeRequiredNotes
actionstring, one of disable, deleteyesAction to perform on the matching sessions. disable ManageSessionsActionDisable delete ManageSessionsActionDelete
identitiesarray of stringnoIdentity IDs whose sessions should be disabled or deleted, or ["*"] to operate on every session in the network. Mutually exclusive with sessions.
sessionsarray of stringnoSession IDs to disable or delete. Mutually exclusive with identities. The wildcard ["*"] is not accepted in this field — pass identities: ["*"] to scope the operation to every session in the...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
morebooleanTrue when the call reached the per-call batch limit and additional matching rows may remain. Always false for explicit-IDs requests.
processedinteger (int64)Number of sessions processed in this call. For disable, counts only sessions that were active before the call (already-inactive sessions are skipped). For delete, counts every matching row...

Also retrieved by: "sign many people out at once", "disable or delete logins in bulk", "revoke sessions for a list of accounts".

ory_kratos.get_session

Read one active login by its id: the session object for a signed-in user account. Calls GET /admin/sessions/{id}.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /admin/sessions/{{params.id}}.

Arguments:

ArgumentTypeRequiredNotes
expandarray of stringnoExpandOptions is a query parameter encoded list of all properties that must be expanded in the Session. Example - ?expand=Identity&expand=Devices If no value is provided, the expandable properties...
idstringyesID is the session's ID.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activebooleanActive state. If false the session is no longer active.
authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
authentication_methodsarray of objectA list of authenticators which were used to authenticate the session.
authentication_methods[].aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
authentication_methods[].completed_atstring (date-time)When the authentication challenge was completed.
authentication_methods[].methodstring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe method used in this authenticator. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code...
authentication_methods[].organizationstringThe Organization id used for authentication
authentication_methods[].providerstringOIDC or SAML provider id used for authentication
authentication_methods[].upstream_acrstringUpstreamACR is the acr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an acr claim.
authentication_methods[].upstream_amrarrayUpstreamAMR is the amr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an amr claim.
authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
devicesarray of objectDevices has history of all endpoints where the session was used
devices[].idstring (uuid)Device record ID
devices[].ip_addressstringIPAddress of the client
devices[].locationstringGeo Location corresponding to the IP Address
devices[].user_agentstringUserAgent of the client
expires_atstring (date-time)The Session Expiry When this session expires at.
idstring (uuid)Session ID
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.

Also retrieved by: "look up one active login by id", "read a single signed-in session", "fetch one login object".

ory_kratos.extend_session

Extend a Session. Calling this endpoint extends the given session ID. Calls PATCH /admin/sessions/{id}/extend.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls PATCH /admin/sessions/{{params.id}}/extend.

Arguments:

ArgumentTypeRequiredNotes
idstringyesID is the session's ID.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activebooleanActive state. If false the session is no longer active.
authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
authentication_methodsarray of objectA list of authenticators which were used to authenticate the session.
authentication_methods[].aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
authentication_methods[].completed_atstring (date-time)When the authentication challenge was completed.
authentication_methods[].methodstring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe method used in this authenticator. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code...
authentication_methods[].organizationstringThe Organization id used for authentication
authentication_methods[].providerstringOIDC or SAML provider id used for authentication
authentication_methods[].upstream_acrstringUpstreamACR is the acr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an acr claim.
authentication_methods[].upstream_amrarrayUpstreamAMR is the amr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an amr claim.
authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
devicesarray of objectDevices has history of all endpoints where the session was used
devices[].idstring (uuid)Device record ID
devices[].ip_addressstringIPAddress of the client
devices[].locationstringGeo Location corresponding to the IP Address
devices[].user_agentstringUserAgent of the client
expires_atstring (date-time)The Session Expiry When this session expires at.
idstring (uuid)Session ID
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.

Also retrieved by: "change a Session", "edit a Session", "adjust a Session".

ory_kratos.create_test_login_flow

Create a test OIDC login flow. Creates a dry-run OIDC test login flow pre-scoped to one provider. Calls POST /admin/test-login-flows.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /admin/test-login-flows.

Arguments:

ArgumentTypeRequiredNotes
provider_idstringyesID of the OIDC provider to test. Must match a provider configured on the project that serves this request.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow started.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
refreshbooleanRefresh stores whether this login flow should enforce re-authentication.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
requested_aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful...
test_contextobjectAdmin-test extension of a login flow. Populated only for flows created by the admin test endpoint; included in the flow's API response so the admin UI can render the pre-scoped provider and (once...
test_context.debug_payloadobjectContains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast...
test_context.provider_idstringThe ID of the OIDC provider this test flow targets.
transient_payloadobjectTransientPayload is used to pass data from the login to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "dry-run a sign-in against one provider", "make a throwaway oidc journey for testing", "try social login without a real user".

ory_kratos.is_alive

Check HTTP Server Status. This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. Calls GET /health/alive.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /health/alive.

Takes no arguments.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
statusstringAlways "ok".

Also retrieved by: "is the process responding", "liveness probe for the service", "does the server answer requests yet".

ory_kratos.is_ready

Check HTTP Server and Database Status. This endpoint returns a HTTP 200 status code when Ory Kratos is up running and the environment dependencies (e.g. Calls GET /health/ready.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /health/ready.

Takes no arguments.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
statusstringAlways "ok".

Also retrieved by: "can the service take traffic", "readiness including the database", "are dependencies connected".

ory_kratos.list_identity_schemas

Get all Identity Schemas. Returns a list of all identity schemas currently in use. Calls GET /schemas.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /schemas.

Arguments:

ArgumentTypeRequiredNotes
pageinteger (int64)noDeprecated Pagination Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not...
page_sizeinteger (int64)noPage Size This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
per_pageinteger (int64)noDeprecated Items per Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This is the number of items per page. Defaults to 250.

Also retrieved by: "every account model in use", "which traits definitions exist", "all user json schemas on this instance".

ory_kratos.get_identity_schema

Get Identity JSON Schema. Return a specific identity schema. Calls GET /schemas/{id}.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /schemas/{{params.id}}.

Arguments:

ArgumentTypeRequiredNotes
idstringyesID must be set to the ID of schema you want to get

Also retrieved by: "the traits definition one account type uses", "read a json schema by id", "which fields does this user model allow".

ory_kratos.get_flow_error

Get User-Flow Errors. This endpoint returns the error associated with a user-facing self service errors. Calls GET /self-service/errors.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/errors.

Arguments:

ArgumentTypeRequiredNotes
idstringyesError is the error's ID

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
errorobject
idstring (uuid)ID of the error container.
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "why did a self-service journey fail", "read the error behind a redirect", "details of a failed sign-in attempt".

ory_kratos.create_fedcm_flow

Get FedCM Parameters. This endpoint returns a list of all available FedCM providers. Calls GET /self-service/fed-cm/parameters.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/fed-cm/parameters.

Takes no arguments.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
csrf_tokenstring
providersarray of object
providers[].client_idstringThe RP's client identifier, issued by the IdP.
providers[].config_urlstringA full path of the IdP config file.
providers[].domain_hintstringBy specifying one of domain_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account.
providers[].fieldsarrayArray of strings that specifies the user information ("name", " email", "picture") that RP needs IdP to share with them. Note: Field API is supported by Chrome 132 and later.
providers[].login_hintstringBy specifying one of login_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account.
providers[].noncestringA random string to ensure the response is issued for this specific request. Prevents replay attacks.
providers[].parametersobjectCustom object that allows to specify additional key-value parameters: scope: A string value containing additional permissions that RP needs to request, for example " drive.readonly calendar.readonly"...

Also retrieved by: "which fedcm providers are available", "parameters for browser federated sign-in", "config the identity chooser needs".

ory_kratos.update_fedcm_flow

Submit a FedCM token. Use this endpoint to submit a token from a FedCM provider through navigator.credentials.get and log the user in. Calls POST /self-service/fed-cm/token.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /self-service/fed-cm/token.

Arguments:

ArgumentTypeRequiredNotes
csrf_tokenstringyesCSRFToken is the anti-CSRF token.
noncestringnoNonce is the nonce that was used in the navigator.credentials.get call. If specified, it must match the nonce claim in the token.
tokenstringyesToken contains the result of navigator.credentials.get.
transient_payloadobjectnoTransient data to pass along to any webhooks.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the...
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
sessionobjectA Session
session.activebooleanActive state. If false the session is no longer active.
session.authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
session.authentication_methodsarrayA list of authenticators which were used to authenticate the session.
session.authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
session.devicesarrayDevices has history of all endpoints where the session was used
session.expires_atstring (date-time)The Session Expiry When this session expires at.
session.idstring (uuid)Session ID
session.identityobjectAn identity represents a (human) user in Ory.
session.issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
session.tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.
session_tokenstringThe Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for...

Also retrieved by: "submit a token from the browser identity chooser", "finish federated sign-in with a credential", "log the user in from navigator credentials".

ory_kratos.update_login_flow

Submit a Login Flow. Use this endpoint to complete a login flow. Calls POST /self-service/login.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /self-service/login.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
X_Session_TokenstringnoThe Session Token of the Identity performing the settings flow.
csrf_tokenstringnoSending the anti-csrf token is only required for browser login flows.
flowstringyesThe Login Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /login?flow=abcde).
identifierstringyesIdentifier is the email or username of the user trying to log in.
methodstringyesMethod should be set to "password" when logging in using the identifier and password strategy.
passwordstringyesThe user's password.
password_identifierstringnoIdentifier is the email or username of the user trying to log in. This field is deprecated!
transient_payloadobjectnoTransient data to pass along to any webhooks

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the...
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
sessionobjectA Session
session.activebooleanActive state. If false the session is no longer active.
session.authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
session.authentication_methodsarrayA list of authenticators which were used to authenticate the session.
session.authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
session.devicesarrayDevices has history of all endpoints where the session was used
session.expires_atstring (date-time)The Session Expiry When this session expires at.
session.idstring (uuid)Session ID
session.identityobjectAn identity represents a (human) user in Ory.
session.issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
session.tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.
session_tokenstringThe Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for...

Also retrieved by: "submit a password and finish signing in", "complete an authentication journey", "send credentials to log someone in".

ory_kratos.create_native_login_flow

Start a sign-in from a mobile app or API client: begin a login flow that returns JSON, for phones, smart TVs, and native apps rather than a web browser. Calls GET /self-service/login/api.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/login/api.

Arguments:

ArgumentTypeRequiredNotes
X_Session_TokenstringnoThe Session Token of the Identity performing the settings flow.
aalstringnoRequest a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor...
identity_schemastringnoAn optional identity schema to use for the login flow.
organizationstringnoAn optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network.
refreshbooleannoRefresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
return_session_token_exchange_codebooleannoEnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed.
return_tostringnoThe URL to return the browser to after the flow was completed.
viastringnoVia should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow started.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
refreshbooleanRefresh stores whether this login flow should enforce re-authentication.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
requested_aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful...
test_contextobjectAdmin-test extension of a login flow. Populated only for flows created by the admin test endpoint; included in the flow's API response so the admin UI can render the pre-scoped provider and (once...
test_context.debug_payloadobjectContains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast...
test_context.provider_idstringThe ID of the OIDC provider this test flow targets.
transient_payloadobjectTransientPayload is used to pass data from the login to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "begin a sign-in from a mobile app", "start an api login for a phone", "kick off a json login for a native client".

ory_kratos.create_browser_login_flow

Start a web sign-in for a user in their browser: begin a redirect-based login flow that returns an HTML page and cookies. Calls GET /self-service/login/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/login/browser.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
aalstringnoRequest a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor...
identity_schemastringnoAn optional identity schema to use for the login flow.
login_challengestringnoAn optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from login_challenge URL Query...
organizationstringnoAn optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network.
refreshbooleannoRefresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session.
return_tostringnoThe URL to return the browser to after the flow was completed.
viastringnoVia should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. DEPRECATED: This field is deprecated. Please remove it from your requests. The user will now see...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow started.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
refreshbooleanRefresh stores whether this login flow should enforce re-authentication.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
requested_aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful...
test_contextobjectAdmin-test extension of a login flow. Populated only for flows created by the admin test endpoint; included in the flow's API response so the admin UI can render the pre-scoped provider and (once...
test_context.debug_payloadobjectContains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast...
test_context.provider_idstringThe ID of the OIDC provider this test flow targets.
transient_payloadobjectTransientPayload is used to pass data from the login to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "begin a web sign-in in the browser", "start a redirect login for a page", "kick off an html login for a user".

ory_kratos.get_login_flow

Get Login Flow. This endpoint returns a login flow's context with, for example, error details and other information. Calls GET /self-service/login/flows.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/login/flows.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
idstringyesThe Login Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /login?flow=abcde).

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow started.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
refreshbooleanRefresh stores whether this login flow should enforce re-authentication.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
requested_aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful...
test_contextobjectAdmin-test extension of a login flow. Populated only for flows created by the admin test endpoint; included in the flow's API response so the admin UI can render the pre-scoped provider and (once...
test_context.debug_payloadobjectContains the parsed claims, the Jsonnet mapper input and output, and any schema validation errors. Bearer tokens (id_token, access_token, refresh_token) are intentionally excluded to limit the blast...
test_context.provider_idstringThe ID of the OIDC provider this test flow targets.
transient_payloadobjectTransientPayload is used to pass data from the login to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray
updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.

Also retrieved by: "look up Login Flow", "check Login Flow", "pull up Login Flow".

ory_kratos.create_browser_logout_flow

Create a Logout URL for Browsers. This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. Calls GET /self-service/logout/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/logout/browser.

Arguments:

ArgumentTypeRequiredNotes
cookiestringnoHTTP Cookies If you call this endpoint from a backend, please include the original Cookie header in the request.
return_tostringnoReturn to URL The URL to which the browser should be redirected to after the logout has been performed.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
logout_tokenstringLogoutToken can be used to perform logout using AJAX.
logout_urlstringLogoutURL can be opened in a browser to sign the user out. format: uri

Also retrieved by: "start signing a user out of the browser", "get the url that ends a web session", "begin browser sign-out".

ory_kratos.update_recovery_flow

Update Recovery Flow. Use this endpoint to update a recovery flow. Calls POST /self-service/recovery.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /self-service/recovery.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
csrf_tokenstringnoSending the anti-csrf token is only required for browser login flows.
emailstringyesEmail to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, an email with details on what happened...
flowstringyesThe Recovery Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /recovery?flow=abcde).
methodstring, one of link, codeyesMethod is the method that should be used for this recovery flow Allowed values are link and code link RecoveryStrategyLink code RecoveryStrategyCode
tokenstringnoRecovery Token The recovery token which completes the recovery request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a link and not...
transient_payloadobjectnoTransient data to pass along to any webhooks

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the recovery method that is being used. It is initially not set.
continue_witharray of objectContains possible actions that could follow this flow
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id>
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the...
transient_payloadobjectTransientPayload is used to pass data from the recovery flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "submit a recovery code", "finish resetting a forgotten password", "complete account recovery with the emailed link".

ory_kratos.create_native_recovery_flow

Create Recovery Flow for Native Apps. This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. Calls GET /self-service/recovery/api.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/recovery/api.

Takes no arguments.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the recovery method that is being used. It is initially not set.
continue_witharray of objectContains possible actions that could follow this flow
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id>
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the...
transient_payloadobjectTransientPayload is used to pass data from the recovery flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start account recovery from a mobile app", "begin forgot-password on an api client", "kick off password reset for native".

ory_kratos.create_browser_recovery_flow

Create Recovery Flow for Browsers. This endpoint initializes a browser-based account recovery flow. Calls GET /self-service/recovery/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/recovery/browser.

Arguments:

ArgumentTypeRequiredNotes
return_tostringnoThe URL to return the browser to after the flow was completed.
skip_settingsstringnoSkip redirection to the settings UI after the recovery flow was completed. Instead, the user will be redirected to the URL specified in return_to query parameter or the default return URL if...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the recovery method that is being used. It is initially not set.
continue_witharray of objectContains possible actions that could follow this flow
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id>
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the...
transient_payloadobjectTransientPayload is used to pass data from the recovery flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start account recovery in a web page", "begin a forgot-password journey for browsers", "kick off password reset from the site".

ory_kratos.get_recovery_flow

Get Recovery Flow. This endpoint returns a recovery flow's context with, for example, error details and other information. Calls GET /self-service/recovery/flows.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/recovery/flows.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
idstringyesThe Flow ID The value for this parameter comes from request URL Query parameter sent to your application (e.g. /recovery?flow=abcde).

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the recovery method that is being used. It is initially not set.
continue_witharray of objectContains possible actions that could follow this flow
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id>
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the...
transient_payloadobjectTransientPayload is used to pass data from the recovery flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "state of a password reset in progress", "read a recovery journey and its errors", "what step is account recovery on".

ory_kratos.update_registration_flow

Update Registration Flow. Use this endpoint to complete a registration flow by sending an identity's traits and password. Calls POST /self-service/registration.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /self-service/registration.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
csrf_tokenstringnoThe CSRF Token
flowstringyesThe Registration Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /registration?flow=abcde).
methodstringyesMethod to use This field must be set to password when using the password method.
passwordstringyesPassword to sign the user up with
traitsobjectyesThe identity's traits
transient_payloadobjectnoTransient data to pass along to any webhooks

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the...
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
sessionobjectA Session
session.activebooleanActive state. If false the session is no longer active.
session.authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
session.authentication_methodsarrayA list of authenticators which were used to authenticate the session.
session.authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
session.devicesarrayDevices has history of all endpoints where the session was used
session.expires_atstring (date-time)The Session Expiry When this session expires at.
session.idstring (uuid)Session ID
session.identityobjectAn identity represents a (human) user in Ory.
session.issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
session.tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.
session_tokenstringThe Session Token This field is only set when the session hook is configured as a post-registration hook. A session token is equivalent to a session cookie, but it can be sent in the HTTP...

Also retrieved by: "submit traits and a password to sign up", "finish creating an account", "complete the register journey".

ory_kratos.create_native_registration_flow

Create Registration Flow for Native Apps. This endpoint initiates a registration flow for API clients such as mobile devices, smart TVs, and so on. Calls GET /self-service/registration/api.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/registration/api.

Arguments:

ArgumentTypeRequiredNotes
identity_schemastringnoAn optional identity schema to use for the registration flow.
organizationstringnoAn optional organization ID that should be used to register this user. This parameter is only effective in the Ory Network.
return_session_token_exchange_codebooleannoEnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed.
return_tostringnoThe URL to return the browser to after the flow was completed.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryActive, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request...
transient_payloadobjectTransientPayload is used to pass data from the registration to a webhook
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start signup from a mobile app", "begin account creation on an api client", "open the register journey for native".

ory_kratos.create_browser_registration_flow

Create Registration Flow for Browsers. This endpoint initializes a browser-based user registration flow. Calls GET /self-service/registration/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/registration/browser.

Arguments:

ArgumentTypeRequiredNotes
after_verification_return_tostringnoThe URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification...
identity_schemastringnoAn optional identity schema to use for the registration flow.
login_challengestringnoOry OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from login_challenge URL Query...
organizationstringnoAn optional organization ID that should be used to register this user. This parameter is only effective in the Ory Network.
return_tostringnoThe URL to return the browser to after the flow was completed.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryActive, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request...
transient_payloadobjectTransientPayload is used to pass data from the registration to a webhook
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start signup in a web page", "begin browser account creation", "open the register journey for a site".

ory_kratos.get_registration_flow

Get Registration Flow. This endpoint returns a registration flow's context with, for example, error details and other information. Calls GET /self-service/registration/flows.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/registration/flows.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
idstringyesThe Registration Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /registration?flow=abcde).

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryActive, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret...
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id>
identity_schemastringIdentitySchema optionally holds the ID of the identity schema that is used for this flow. This value can be set by the user when creating the flow and should be retained when the flow is saved or...
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
oauth2_login_challengestringOry OAuth 2.0 Login Challenge. This value is set using the login_challenge query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an...
oauth2_login_requestobjectOAuth2LoginRequest struct for OAuth2LoginRequest
oauth2_login_request.challengestringID is the identifier (\"login challenge\") of the login request. It is used to identify the session.
oauth2_login_request.clientobject
oauth2_login_request.oidc_contextobjectOAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext
oauth2_login_request.request_urlstringRequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is...
oauth2_login_request.requested_access_token_audiencearray
oauth2_login_request.requested_scopearray
oauth2_login_request.session_idstringSessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication...
oauth2_login_request.skipbooleanSkip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to...
oauth2_login_request.subjectstringSubject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and skip is true, you MUST...
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
session_token_exchange_codestringSessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token...
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request...
transient_payloadobjectTransientPayload is used to pass data from the registration to a webhook
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "state of a signup in progress", "read a register journey and its form fields", "what step is account creation on".

ory_kratos.create_native_settings_flow

Create Settings Flow for Native Apps. This endpoint initiates a settings flow for API clients such as mobile devices, smart TVs, and so on. Calls GET /self-service/settings/api.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/settings/api.

Arguments:

ArgumentTypeRequiredNotes
X_Session_TokenstringnoThe Session Token of the Identity performing the settings flow.
organizationstringnoAn optional organization ID that scopes the settings flow to providers of that organization. This parameter is only effective in the Ory Network.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration.
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the settings flow, this represents the id in the settings ui's query parameter: http://<selfservice.flows.settings.ui_url>?flow=<id>
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings...
transient_payloadobjectTransientPayload is used to pass data from the settings flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start profile editing from a mobile app", "begin changing account details on an api client", "open self-service settings for native".

ory_kratos.create_browser_settings_flow

Create Settings Flow for Browsers. This endpoint initializes a browser-based user settings flow. Calls GET /self-service/settings/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/settings/browser.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
organizationstringnoAn optional organization ID that scopes the settings flow to providers of that organization. This parameter is only effective in the Ory Network.
return_tostringnoThe URL to return the browser to after the flow was completed.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration.
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the settings flow, this represents the id in the settings ui's query parameter: http://<selfservice.flows.settings.ui_url>?flow=<id>
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings...
transient_payloadobjectTransientPayload is used to pass data from the settings flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start profile editing in a web page", "begin the browser journey for changing account details", "open self-service settings on the site".

ory_kratos.get_settings_flow

Get Settings Flow. When accessing this endpoint through Ory Kratos' Public API you must ensure that either the Ory Kratos Session Cookie or the Ory Kratos Session Token are set. Calls GET /self-service/settings/flows.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/settings/flows.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
X_Session_TokenstringnoThe Session Token When using the SDK in an app without a browser, please include the session token here.
idstringyesID is the Settings Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /settings?flow=abcde).

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration.
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
expires_atstring (date-time)ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated.
idstring (uuid)ID represents the flow's unique ID. When performing the settings flow, this represents the id in the settings ui's query parameter: http://<selfservice.flows.settings.ui_url>?flow=<id>
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)IssuedAt is the time (UTC) when the flow occurred.
organization_idstring (uuid4)
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings...
transient_payloadobjectTransientPayload is used to pass data from the settings flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "state of a profile edit in progress", "read the settings journey and its errors", "what step is changing account details on".

ory_kratos.update_verification_flow

Complete Verification Flow. Use this endpoint to complete a verification flow. Calls POST /self-service/verification.

Class write (writes, no confirmation needed). No scopes beyond the connection's defaults. Calls POST /self-service/verification.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoHTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are...
csrf_tokenstringnoSending the anti-csrf token is only required for browser login flows.
emailstringyesEmail to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what...
flowstringyesThe Verification Flow ID The value for this parameter comes from flow URL Query parameter sent to your application (e.g. /verification?flow=abcde).
methodstring, one of link, codeyesMethod is the method that should be used for this verification flow Allowed values are link and code link VerificationStrategyLink code VerificationStrategyCode
tokenstringnoVerification Token The verification token which completes the verification request. If the token is invalid (e.g. expired) an error will be shown to the end-user. This parameter is usually set in a...
transient_payloadobjectnoTransient data to pass along to any webhooks

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the verification flow, this represents the id in the verify ui's query parameter: http://<selfservice.flows.verification.ui_url>?request=<id>...
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was...
transient_payloadobjectTransientPayload is used to pass data from the verification flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "submit the emailed confirmation code", "finish verifying an address", "complete email confirmation".

ory_kratos.create_native_verification_flow

Create Verification Flow for Native Apps. This endpoint initiates a verification flow for API clients such as mobile devices, smart TVs, and so on. Calls GET /self-service/verification/api.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/verification/api.

Arguments:

ArgumentTypeRequiredNotes
return_tostringnoA URL contained in the return_to key of the verification flow. This piece of data has no effect on the actual logic of the flow and is purely informational.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the verification flow, this represents the id in the verify ui's query parameter: http://<selfservice.flows.verification.ui_url>?request=<id>...
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was...
transient_payloadobjectTransientPayload is used to pass data from the verification flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start email confirmation from a mobile app", "begin address verification on an api client", "open the confirm-your-email journey for native".

ory_kratos.create_browser_verification_flow

Create Verification Flow for Browser Clients. This endpoint initializes a browser-based account verification flow. Calls GET /self-service/verification/browser.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/verification/browser.

Arguments:

ArgumentTypeRequiredNotes
return_tostringnoThe URL to return the browser to after the flow was completed.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the verification flow, this represents the id in the verify ui's query parameter: http://<selfservice.flows.verification.ui_url>?request=<id>...
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was...
transient_payloadobjectTransientPayload is used to pass data from the verification flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "start email confirmation in a web page", "begin browser address verification", "open the confirm-your-email journey on a site".

ory_kratos.get_verification_flow

Get Verification Flow. This endpoint returns a verification flow's context with, for example, error details and other information. Calls GET /self-service/verification/flows.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /self-service/verification/flows.

Arguments:

ArgumentTypeRequiredNotes
cookiestringnoHTTP Cookies When using the SDK on the server side you must include the HTTP Cookie Header originally sent to your HTTP handler here.
idstringyesThe Flow ID The value for this parameter comes from request URL Query parameter sent to your application (e.g. /verification?flow=abcde).

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activestringActive, if set, contains the registration method that is being used. It is initially not set.
expires_atstring (date-time)ExpiresAt is the time (UTC) when the request expires. If the user still wishes to verify the address, a new request has to be initiated.
idstring (uuid)ID represents the request's unique ID. When performing the verification flow, this represents the id in the verify ui's query parameter: http://<selfservice.flows.verification.ui_url>?request=<id>...
issued_atstring (date-time)IssuedAt is the time (UTC) when the request occurred.
request_urlstringRequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.
return_tostringReturnTo contains the requested return_to URL.
stateobjectState represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was...
transient_payloadobjectTransientPayload is used to pass data from the verification flow to hooks and email templates
typestringThe flow type can either be api or browser.
uiobjectContainer represents a HTML Form. The container can work with both HTTP Form and JSON requests
ui.actionstringAction should be used as the form action URL <form action="{{ .Action }}" method="post">.
ui.messagesarray
ui.methodstringMethod is the form method (e.g. POST)
ui.nodesarray

Also retrieved by: "state of an email confirmation in progress", "read a verification journey and its errors", "what step is address confirmation on".

ory_kratos.list_my_sessions

List the current user's own active logins: which devices and browsers the signed-in person is logged in on. Calls GET /sessions.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /sessions.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoSet the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in...
X_Session_TokenstringnoSet the Session Token when calling from non-browser clients. A session token has a format of MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj.
pageinteger (int64)noDeprecated Pagination Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not...
page_sizeinteger (int64)noPage Size This is the number of items per page to return. For details on pagination please head over to the pagination documentation. Defaults to 250.
page_tokenstringnoNext Page Token The next page token. For details on pagination please head over to the pagination documentation.
per_pageinteger (int64)noDeprecated Items per Page DEPRECATED: Please use page_token instead. This parameter will be removed in the future. This is the number of items per page. Defaults to 250.

Also retrieved by: "which devices am I signed in on", "show my own active logins", "where am I currently logged in".

ory_kratos.disable_my_other_sessions

Sign the current user out everywhere else: invalidate every active login except this one, logging the person off all other devices. Calls DELETE /sessions.

Class destructive (held by the mutation gate until the call's own arguments carry "confirm": true). No scopes beyond the connection's defaults. Calls DELETE /sessions.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoSet the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in...
X_Session_TokenstringnoSet the Session Token when calling from non-browser clients. A session token has a format of MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
countinteger (int64)The number of sessions that were revoked.

Also retrieved by: "sign me out everywhere except here", "log off all my other devices", "end my other logins".

ory_kratos.exchange_session_token

Exchange Session Token. Calls GET /sessions/token-exchange.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /sessions/token-exchange.

Arguments:

ArgumentTypeRequiredNotes
init_codestringyesThe part of the code return when initializing the flow.
return_to_codestringyesThe part of the code returned by the return_to URL.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
continue_witharray of objectContains a list of actions, that could follow this flow It can, for example, this will contain a reference to the verification flow, created as part of the user's registration or the token of the...
continue_with[].actionstring, one of show_verification_uiAction will always be show_verification_ui show_verification_ui ContinueWithActionShowVerificationUIString
continue_with[].flowobject
sessionobjectA Session
session.activebooleanActive state. If false the session is no longer active.
session.authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
session.authentication_methodsarrayA list of authenticators which were used to authenticate the session.
session.authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
session.devicesarrayDevices has history of all endpoints where the session was used
session.expires_atstring (date-time)The Session Expiry When this session expires at.
session.idstring (uuid)Session ID
session.identityobjectAn identity represents a (human) user in Ory.
session.issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
session.tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.
session_tokenstringThe Session Token A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header: Authorization: bearer ${session-token} The session token is only issued for...

Also retrieved by: "trade a one-time code for a session", "swap an exchange code after native login", "turn a returned token into a logged-in session".

ory_kratos.to_session

Check Who the Current HTTP Session Belongs To. Uses the HTTP Headers in the GET request to determine (e.g. Calls GET /sessions/whoami.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /sessions/whoami.

Arguments:

ArgumentTypeRequiredNotes
CookiestringnoSet the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in...
X_Session_TokenstringnoSet the Session Token when calling from non-browser clients. A session token has a format of MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj.
tokenize_asstringnoReturns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the...

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
activebooleanActive state. If false the session is no longer active.
authenticated_atstring (date-time)The Session Authentication Timestamp When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code...
authentication_methodsarray of objectA list of authenticators which were used to authenticate the session.
authentication_methods[].aalstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
authentication_methods[].completed_atstring (date-time)When the authentication challenge was completed.
authentication_methods[].methodstring, one of password, oidc, totp, lookup_secret, webauthn, code, passkey, profile, saml, deviceauthn, identifier_first, link_recovery, code_recoveryThe method used in this authenticator. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code...
authentication_methods[].organizationstringThe Organization id used for authentication
authentication_methods[].providerstringOIDC or SAML provider id used for authentication
authentication_methods[].upstream_acrstringUpstreamACR is the acr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an acr claim.
authentication_methods[].upstream_amrarrayUpstreamAMR is the amr claim reported by the upstream OIDC provider, if any. Populated only for OIDC login methods when the upstream ID token contained an amr claim.
authenticator_assurance_levelstring, one of aal0, aal1, aal2, aal3The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder for an attacker to compromise the account. Generally, "aal1" implies that one...
devicesarray of objectDevices has history of all endpoints where the session was used
devices[].idstring (uuid)Device record ID
devices[].ip_addressstringIPAddress of the client
devices[].locationstringGeo Location corresponding to the IP Address
devices[].user_agentstringUserAgent of the client
expires_atstring (date-time)The Session Expiry When this session expires at.
idstring (uuid)Session ID
identityobjectAn identity represents a (human) user in Ory.
identity.created_atstring (date-time)CreatedAt is a helper struct field for gobuffalo.pop.
identity.credentialsobjectCredentials represents all credentials that can be used for authenticating this identity.
identity.external_idstringExternalID is an optional external ID of the identity. This is used to link the identity to an external system. If set, the external ID must be unique across all identities.
identity.idstring (uuid)ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB.
identity.metadata_adminobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.metadata_publicobjectNullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-
identity.organization_idstring (uuid4)
identity.recovery_addressesarrayRecoveryAddresses contains all the addresses that can be used to recover an identity.
identity.regionstring, one of eu-central, asia-northeast, us-east, us-west, eu, asia, us, globalRegion is the Ory Network region this identity is homed in. Set by the multi-region persister; empty on OSS and single-region deployments. eu-central EUCentral asia-northeast AsiaNorthEast us-east...
identity.schema_idstringSchemaID is the ID of the JSON Schema to be used for validating the identity's traits.
identity.schema_urlstringSchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url
identity.statestring, one of active, inactiveState is the identity's state. This value has currently no effect. active StateActive inactive StateInactive
identity.state_changed_atstring (date-time)
identity.traitsobjectTraits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in...
identity.updated_atstring (date-time)UpdatedAt is a helper struct field for gobuffalo.pop.
identity.verifiable_addressesarrayVerifiableAddresses contains all the addresses that can be verified by the user.
issued_atstring (date-time)The Session Issuance Timestamp When this session was issued at. Usually equal or close to authenticated_at.
tokenizedstringTokenized is the tokenized (e.g. JWT) version of the session. It is only set when the tokenize_as query parameter was set to a valid tokenize template during calls to /session/whoami.

Also retrieved by: "who is calling me", "resolve the cookie to a user", "whoami for the current request".

ory_kratos.get_version

Report the running server release: the version string of this Ory identity server. Calls GET /version.

Class read (reads only). No scopes beyond the connection's defaults. Calls GET /version.

Takes no arguments.

Result fields (the payload is trimmed to these before it reaches the model):

FieldTypeNotes
versionstringThe version of Ory Kratos.

Also retrieved by: "what release is the identity server", "show the server build number", "which version is running".