orange-guitar-65918
02/13/2024, 6:54 AMchilly-king-10285
02/13/2024, 6:54 AMchilly-king-10285
02/13/2024, 6:54 AMjson { id: 1234, // This ID will not change and can be used to translate the message or use your own message content. text: "Some default text", // A default text in English that you can display if you do not want to customize the message. context: {}, // A JSON object which may contain additional fields such as `expires_at`. This is helpful if you want to craft your own messages. }
You can find more details about error handling [here](https://www.ory.sh/docs/kratos/bring-your-own-ui/custom-ui-basic-integration#error-handling). For email templates, Ory Kratos allows you to replace the default templates with custom ones. You can use custom templates in place of built-in ones. If you don't specify a custom template, the system automatically uses the built-in one. To use custom email templates, you need to go to Customize → Email Configuration on the Ory Console and select the email template you want to customize from the Email Templates section at the bottom of the page. You can find more details about customizing email templates [here](https://www.ory.sh/docs/kratos/emails-sms/custom-email-templates). In self-hosted Ory Kratos instances, you can add custom templates from http://
, file://
, and base64://
URIs. If the system can't use the custom templates, it falls back to the built-in templates or to the template_override_path
(if specified). You can find more details about email templates in self-hosted Ory Kratos [here](https://www.ory.sh/docs/kratos/self-hosted/mail-courier-templates#configuration).