Skip to main content
Use manage_api_keys when an agent or automation workflow needs to provision, inspect, rename, or revoke Kernel API keys. Created keys include the plaintext secret once; later reads return masked key metadata. Create project-scoped keys for workloads that only need one project’s resources. Use org-wide keys only when the workload needs access across projects. For API key concepts, scoping rules, rotation guidance, and SDK examples, see API Keys.

Actions

  1. Call list before creating a key so you don’t duplicate an existing workload key.
  2. Call create with project_id for project-scoped automation.
  3. Store the returned plaintext key immediately.
  4. Call update when a key’s owner or purpose changes.
  5. Call delete to revoke keys for retired workloads.

Parameters

Create a project-scoped key

Rename a key