ZITADEL Docs
APIsCore ResourcesV1Organization Objects

GetMachineKeyByIDs

Get Machine user Key By ID

Deprecated: use user service v2 ListUsers instead.

Get a specific Key of a machine user by its id. Machine keys are used to authenticate with jwt profile authentication.

GET
/users/{user_id}/keys/{key_id}

Path Parameters

user_id*string
key_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/users/string/keys/string"
{
  "key": {
    "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?