limited-city-59768
02/06/2024, 9:32 AMchilly-king-10285
02/06/2024, 9:32 AMchilly-king-10285
02/06/2024, 9:32 AMreturn_to
URL. However, if you want to handle the redirections manually, you might want to consider using the Ory Kratos' Public API or Admin API. When these APIs are used to call the endpoints, the response contains the flow without a redirect. For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/reference/api) and the [Ory Kratos User Settings & Profile Management Documentation](../self-service/flows/user-settings).limited-city-59768
02/06/2024, 9:36 AMchilly-king-10285
02/06/2024, 9:36 AMchilly-king-10285
02/06/2024, 9:36 AMgetSettingsFlow
and updateSettingsFlow
methods accept a settings flow ID as a query parameter. However, please note that the session token is not directly returned by these methods. The session token is usually set after a successful login or session creation and is sent as a header (X-Session-Token
) in subsequent requests to authenticate the user. Here's an example of how these parameters are used: http GET /self-service/settings/flows?id=<settings-flow-id> X-Session-Token: <session-token>
In this example, <settings-flow-id>
is the ID of the settings flow and <session-token>
is the session token of the user. Remember to replace <settings-flow-id>
and <session-token>
with your actual settings flow ID and session token. For more information, you can refer to the [Ory Kratos API Reference](https://www.ory.sh/docs/kratos/reference/api).