ZITADEL Docs
APIsCore ResourcesV1Organization Objects

ListMachineKeys

List Machine Keys

Deprecated: use user service v2 ListKeys instead.

Get the list of keys of a machine user. Machine keys are used to authenticate with jwt profile authentication.

POST
/users/{user_id}/keys/_search

Path Parameters

user_id*string

Request Body

application/json

query?

list limitations and ordering

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/users/string/keys/_search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "totalResult": 0,
    "processedSequence": 0,
    "viewTimestamp": "1s"
  },
  "result": [
    {
      "id": "string",
      "details": {
        "sequence": 0,
        "creationDate": "1s",
        "changeDate": "1s",
        "resourceOwner": "string"
      },
      "type": "KEY_TYPE_UNSPECIFIED",
      "expirationDate": "1s"
    }
  ]
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?