Skip to main content

Synopsis

Create an API key for a service account. The key value is only returned once, at creation time, so make sure to store it securely. Every API key expires. Without --expires-at the key is given the maximum allowed lifetime, and an --expires-at beyond that maximum is capped to it.

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 September 11, 2026