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
Recommended flow
- Call
listbefore creating a key so you don’t duplicate an existing workload key. - Call
createwithproject_idfor project-scoped automation. - Store the returned plaintext key immediately.
- Call
updatewhen a key’s owner or purpose changes. - Call
deleteto revoke keys for retired workloads.