Skip to main content

Synopsis

Rotate one or more API keys for a service account, or your own personal API keys. A new API key is generated immediately. The old key remains valid for a grace period to allow time to update dependent systems; that grace period has a standard length unless overridden with --grace-period-hours. The new key value is only returned once, so make sure to store it securely. With --personal and an API key as --api-token, you can rotate only that key and keys created with it, and the rotated key expires no later than that key. To get a key that outlives it, create one from your profile page in the Kosli app.

Flags

Flags inherited from parent commands

Examples Use Cases

These examples all assume that the flags --api-token, --org, --host, (and --flow, --trail when required), are set/provided.
Last modified on October 29, 2026