Skip to Content
ZITADEL Docs
APIsCore ResourcesV2Web Key

Activate Web Key

Switch the active signing web key. The previously active key will be deactivated. Note that the JWKs OIDC endpoint returns a cacheable response. Therefore it is not advised to activate a key that has been created within the cache duration (default is 5min), as the public key may not have been propagated to caches and clients yet.

Required permission:

  • iam.web_key.write
POST
/zitadel.webkey.v2.WebKeyService/ActivateWebKey

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
id*id

The unique identifier of the key to activate.

Response Body

Success

application/json
  1. response
changeDate?change_date

The timestamp of the activation of the key.

Formatdate-time
Example Request
curl -X POST 'https://example.com/zitadel.webkey.v2.WebKeyService/ActivateWebKey' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "id": "string"}'
Example Response
{  "changeDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?