plain-lunch-50969
08/21/2025, 6:18 PMbrief-egg-61061
08/21/2025, 6:18 PMbrief-egg-61061
08/21/2025, 6:18 PMyaml selfservice: flows: verification: enabled: true ui_url: <http://127.0.0.1:3000/verification> use: code after: hooks: - hook: web_hook config: url: <http://host.docker.internal:8085/internal/user> method: POST body: file:///etc/config/kratos/segment_identity.jsonnet response: ignore: false parse: false auth: type: basic_auth config: user: mira_internal password: abc1234 default_browser_return_url: <http://127.0.0.1:3000/>
In this example, after a user completes the verification flow, Kratos will send a POST request to the specified URL with the provided authentication and body. You can customize the webhook URL, method, authentication, and body as needed for your integration. The default_browser_return_url
specifies where the user is redirected after verification is complete [Docs > Kratos > Hooks](https://github.com/ory/kratos/issues/4024). For more details on available actions and how to configure hooks, see the official documentation [Docs > Kratos > Hooks](https://www.ory.sh/docs/kratos/hooks/configure-hooks#available-actions).plain-lunch-50969
08/21/2025, 6:20 PMbrief-egg-61061
08/21/2025, 6:20 PMbrief-egg-61061
08/21/2025, 6:21 PMplain-lunch-50969
08/21/2025, 6:22 PMbrief-egg-61061
08/21/2025, 6:22 PMbrief-egg-61061
08/21/2025, 6:22 PMrecovery.via
), Kratos uses internal JSON Schema extension files. For example, the error you encountered about "value must be \"email\""
for recovery.via
is enforced by the internal identity extension schema, which you can find referenced in the Kratos source code and discussed in community issues [Github Issue: Setting up identity schema with "Recovery via SMS" throwing error](https://github.com/ory/kratos/issues/4262). In summary, the things against which your configuration is validated are: - The JSON Schema Draft 7 standard for identity schemas. - Ory Kratos' own internal JSON Schema extensions and validation logic, which are referenced in the documentation and enforced by the service at runtime. For more details, see the documentation on [JSON schema and JSON paths](https://www.ory.sh/docs/kratos/reference/json-schema-json-paths) and [Identity metadata & traits](https://www.ory.sh/docs/kratos/manage-identities/managing-users-identities-metadata#traits).plain-lunch-50969
08/21/2025, 6:24 PMbrief-egg-61061
08/21/2025, 6:24 PMbrief-egg-61061
08/21/2025, 6:24 PM"value must be \"email\""
for recovery.via
) are enforced by these internal schemas, and there are references to their existence in GitHub issues and documentation [Github Issue: Setting up identity schema with "Recovery via SMS" throwing error](https://github.com/ory/kratos/issues/4262). But, based on the provided knowledge sources, you cannot directly view the full content of "Ory Kratos' own internal JSON Schema extensions and validation logic" from the documentation or the links above. The sources only describe their effect and reference them conceptually, not their actual implementation or schema files. If you need to see the actual schema files, you would need to look into the Ory Kratos source code repository, which is not included in the knowledge sources provided here.plain-lunch-50969
08/21/2025, 6:25 PMbrief-egg-61061
08/21/2025, 6:25 PMbrief-egg-61061
08/21/2025, 6:25 PM