Skip to Content
ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Get Service account Key By ID

Deprecated: use user service v2 ListUsers instead.

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

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

Path Parameters

user_id*user_id
key_id*key_id

Response Body

Success

application/json
  1. response
key?
Example Request
curl -X GET 'https://example.com/management/v1/users/string/keys/string'
Example Response200
{  "key": {    "id": "string",    "details": {      "sequence": 0,      "creationDate": "2023-01-15T01:30:15.01Z",      "changeDate": "2023-01-15T01:30:15.01Z",      "resourceOwner": "string"    },    "type": "KEY_TYPE_UNSPECIFIED",    "expirationDate": "2023-01-15T01:30:15.01Z"  }}

Was this page helpful?