<@U04UQ68083H> How do I get the total number of id...
# ory-copilot
f
@chilly-king-10285 How do I get the total number of identities via api?
c
A message from kapa.ai
To get the total number of identities in the system via API, you can use the
listIdentities
method of the Ory Identities API. This method is a GET request to the
/admin/identities
endpoint. Here is the method:
Copy code
http GET /admin/identities
This method lists all identities in the system. However, it doesn't directly return the total number of identities. You would need to count the number of identities returned by this API call to get the total number. Please note that to perform this operation, you must be authenticated by means of the
oryAccessToken
. For more details, you can refer to the [Ory API Reference](https://www.ory.sh/docs/kratos/reference/api).