Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Action

Deactivate Public Key

Deactivates the public key for payload encryption. The public key will no longer be used to encrypt payloads sent to the target. Be aware that deactivating the active key will leave the target without an active key. Subsequent calls to the target with payload type PAYLOAD_TYPE_JWE will fail until a new key is activated. This endpoint can be used in break glass scenarios to quickly disable a compromised key. Deactivating a key that is already inactive is a no-op.

Required permission:

  • action.target.write
POST
/v2/actions/targets/{target_id}/publickeys/{key_id}/deactivate

Path Parameters

target_id*target_id

TargetID is the unique identifier of the target to deactivate the public key for.

key_id*key_id

KeyID is the unique identifier of the public key to deactivate.

Response Body

Success

application/json
  1. response
changeDate?change_date

ChangeDate is the timestamp of the public key's deactivation.

Formatdate-time
Example Request
curl -X POST 'https://example.com/v2/actions/targets/string/publickeys/string/deactivate'
Example Response200
{  "changeDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?