Manage API keys
Temporal Cloud API keys offer industry-standard identity-based authentication for Temporal users and Service Accounts. This document introduces Temporal Cloud's API key features:
- API key overview
- API key best practices
- Global Administrator and Account Owner API key management
- User API key management
- Manage API keys for Service Accounts
- API keys for Namespace authentication
- Use API keys to authenticate
- Troubleshoot your API key use
- API keys: Frequently Asked Questions
API key overview
Each Temporal Cloud API key is a unique identity linked to role-based access control (RBAC) settings to ensure secure and appropriate access.
The authentication process follows this pathway:

API key (authentication) → Identity (user or Service Account) → RBAC (authorization)
API key best practices
- Keep it secret; keep it safe: Treat your API key like a password. Do not expose it in client-side code, public repositories, or other easily accessible locations.
- Rotate keys regularly: Change your API keys periodically to reduce risks from potential leaks.
- Design your code for key updates: Use key management practices that retrieve your API keys without hard-coding them into your apps. This lets you restart your Workers to refresh your rotated keys without recompiling your code.
- Monitor API key usage: Check usage metrics and logs regularly. Revoke the key immediately if you detect any unexpected or unauthorized activity.
- Use a Key Management System (KMS): Employ a Key Management System to minimize the risk of key leaks.
API key use cases
API keys are used for the following scenarios:
- Cloud operations automation:
API keys work with most Temporal Cloud operational tools, including
tcld
, Cloud Ops APIs, and the Terraform provider. Use them to manage your Temporal Cloud account, Namespaces, certificates, and user identities. - Namespace authentication: API keys serve as an authentication mechanism for executing and managing Workflows via the SDK and Temporal CLI, offering an alternative to mTLS-based authentication.
API key supported tooling
Use API keys to authenticate with: