<@U04UQ68083H> is ory identity id always a UUID?
# ory-copilot
s
@chilly-king-10285 is ory identity id always a UUID?
c
A message from kapa.ai
Yes, the Ory identity ID is always a UUID. The documentation and API references consistently describe the identity's unique identifier as a UUID, and it cannot be changed or chosen by the user. This design ensures compatibility and optimization for distributed stores such as CockroachDB. For example, the API response schema for identities specifies: > "ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB." >
'id': {'format': 'uuid', 'type': 'string'}
This is confirmed in both the API documentation and the identity model overview, which shows the ID as a UUID string (e.g.,
"id": "9f425a8d-7efc-4768-8f23-7647a74fdf13"
)[Identity model overview](https://www.ory.sh/docs/kratos/manage-identities/overview), [Ory API Reference - getIdentity](https://raw.githubusercontent.com/ory/docs/master/docs/reference/api.json).