ZITADEL Docs
APIsCore ResourcesV2User

RemoveKey

Remove a Key

Remove a machine users key by the given key ID and an optionally given user ID.

Required permission:

  • user.write
DELETE
/v2/users/{user_id}/keys/{key_id}

Path Parameters

user_id*string

The users resource ID.

key_id*string

The keys ID.

Response Body

application/json

application/json

curl -X DELETE "https://loading/v2/users/string/keys/string"
{
  "deletionDate": "1s"
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?