<@U04UQ68083H> Can i search identites(GET: /admin/...
# ory-copilot
f
@chilly-king-10285 Can i search identites(GET: /admin/identities) using traits?
c
A message from kapa.ai
A message from kapa.ai
Based on the information provided in the extracts, the Ory API does allow you to list all identities in the system using the
GET /admin/identities
endpoint. However, it does not currently support search functionality. You can retrieve a list of identities with pagination using the
per_page
and
page
query parameters. Here is an example of how the route is defined:
Copy code
plaintext // swagger:route GET /admin/identities identities listIdentities   //   // # List Identities   //   // Lists all identities. Does not support search at the moment.   //   // Learn how identities work in [Ory Kratos' User And Identity Model Documentation](<https://www.ory.sh/docs/next/kratos/concepts/identity-user-model>).   //   // Produces:   // - application/json   //   // Schemes: http, https   //   // Security:   // oryAccessToken:   //   // Responses:   // 200: identityList   // default: jsonError
For more details, you can refer to the [Ory API documentation](https://www.ory.sh/docs/reference/api).
Based on the provided extracts, there is no direct mention of the ability to search identities using traits with the
GET /admin/identities
API endpoint. The extracts mention that this endpoint is used to list identities, but it doesn't specify if you can filter or search these identities based on their traits. For more detailed information, you may want to refer to the [Ory Kratos API documentation](https://www.ory.sh/docs/reference/api#operation/listIdentities).