Initialize Settings Flow for Browsers
This endpoint initializes a browser-based user settings flow. Once initialized, the browser will be redirected to selfservice.flows.settings.ui_url with the flow ID set as the query parameter ?flow=. If no valid Ory Kratos Session Cookie is included in the request, a login flow will be initialized.
If this endpoint is opened as a link in the browser, it will be redirected to selfservice.flows.settings.ui_url with the flow ID set as the query parameter ?flow=. If no valid user session was set, the browser will be redirected to the login endpoint.
If this endpoint is called via an AJAX request, the response contains the settings flow without any redirects or a 403 forbidden error if no valid session was set.
This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed.
More information can be found at Ory Kratos User Settings & Profile Management Documentation.
Headers
The Session Cookie of the Identity performing the settings flow.
Response
selfServiceSettingsFlow
Example response
{
"expires_at": "2000-01-23T04:56:07.000+00:00",
"ui": {
"nodes": [
{
"meta": {
"label": {
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
}
},
"messages": [
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
},
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
}
],
"type": "type",
"group": "group"
},
{
"meta": {
"label": {
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
}
},
"messages": [
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
},
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
}
],
"type": "type",
"group": "group"
}
],
"method": "method",
"action": "action",
"messages": [
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
},
{
"context": "{}",
"id": 0,
"text": "text",
"type": "type"
}
]
},
"identity": {
"recovery_addresses": [
{
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"value": "value",
"via": "via"
},
{
"updated_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"value": "value",
"via": "via"
}
],
"traits": "",
"updated_at": "2000-01-23T04:56:07.000+00:00",
"credentials": {
"key": {
"updated_at": "2000-01-23T04:56:07.000+00:00",
"identifiers": [
"identifiers",
"identifiers"
],
"created_at": "2000-01-23T04:56:07.000+00:00",
"type": "type",
"config": "{}"
}
},
"verifiable_addresses": [
{
"updated_at": "2014-01-01T23:28:56.782Z",
"verified_at": "2000-01-23T04:56:07.000+00:00",
"verified": true,
"created_at": "2014-01-01T23:28:56.782Z",
"id": "id",
"value": "value",
"status": "status",
"via": "via"
},
{
"updated_at": "2014-01-01T23:28:56.782Z",
"verified_at": "2000-01-23T04:56:07.000+00:00",
"verified": true,
"created_at": "2014-01-01T23:28:56.782Z",
"id": "id",
"value": "value",
"status": "status",
"via": "via"
}
],
"schema_id": "schema_id",
"state_changed_at": "2000-01-23T04:56:07.000+00:00",
"created_at": "2000-01-23T04:56:07.000+00:00",
"schema_url": "schema_url",
"id": "id"
},
"active": "active",
"id": "id",
"type": "type",
"issued_at": "2000-01-23T04:56:07.000+00:00",
"request_url": "request_url"
}