Skip to main content
POST
/
api
/
v2
/
identities
/
search
/
count
cURL
curl --request POST \
  --url https://us.infisical.com/api/v2/identities/search/count \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "scope": [
    "organization",
    "project"
  ],
  "search": {
    "name": "<string>",
    "role": "<string>",
    "$or": [
      {
        "name": "<string>",
        "role": "<string>"
      }
    ]
  }
}
'
{
  "counts": {
    "organization": 123,
    "project": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://infisical.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

An access token in Infisical

Body

application/json
scope
enum<string>[]

Array of scopes to count. Returns a count for each requested scope. Accepts 'organization' and/or 'project'.

Minimum array length: 1
Available options:
organization,
project

The filters to apply when counting.

Response

Default Response

counts
object
required