<@U04UQ68083H> The documentation says other trait ...
# ory-copilot
p
@chilly-king-10285 The documentation says other trait fields besides email can be used during an account recovery flow. What are they? Are they documented anywhere?
c
A message from kapa.ai
The documentation does mention that other fields inside the
traits
section can be used for account recovery, but it does not specify what these other fields could be. The
traits
section is part of the identity schema and can be customized to include various fields based on your application's requirements. However, the examples provided in the documentation primarily use the
email
field for account recovery. For instance, the identity schema example provided for account recovery uses the
email
field:
Copy code
json {     "$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",     "$schema": "<http://json-schema.org/draft-07/schema#>",     "title": "Person",     "type": "object",     "properties": {     "traits": {     "type": "object",     "properties": {     "email": {     "type": "string",     "format": "email",     "<http://ory.sh/kratos|ory.sh/kratos>": {     "credentials": {     "password": {     "identifier": true     }     },     "recovery": {     "via": "email"     }     }     }     }     "additionalProperties": false     }     }   }
In this schema, the
email
field is marked for recovery with
"recovery": { "via": "email" }
. For more details on how to customize the identity schema and use different fields for account recovery, you may want to refer to the [Ory Kratos documentation](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#account-recovery-address).