ZITADEL Docs
APIsCore ResourcesV2User

Search Keys

List all matching keys. By default all keys of the instance on which the caller has permission to read the owning users are returned. Make sure to include a limit and sorting for pagination.

Required permission:

  • user.read
POST
/v2/users/keys/search

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/v2/users/keys/search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "pagination": {
    "totalResult": 0,
    "appliedLimit": 0
  },
  "result": [
    {
      "creationDate": "2023-01-15T01:30:15.01Z",
      "changeDate": "2023-01-15T01:30:15.01Z",
      "id": "string",
      "userId": "string",
      "organizationId": "string",
      "expirationDate": "2023-01-15T01:30:15.01Z"
    }
  ]
}

Was this page helpful?