To generate an API key in Phoenix 11.8 (or later), authentication must be enabled. Once enabled, you can create API keys from the UI settings page or programmatically via the API if you have admin access. If you do not see the option, ensure authentication is enabled by setting the PHOENIX_ENABLE_AUTH and PHOENIX_SECRET environment variables before starting the server. Without authentication enabled, API key management is not available in the UI or API. For more, see the official docs on <https://arize.com/docs/phoenix/settings/api-keys|API Keys> and <https://arize.com/docs/phoenix/self-hosting/features/authentication|Authentication setup>.
Would you like step-by-step instructions for enabling authentication and generating an API key?
Sources:
- <https://arize.com/docs/phoenix/settings/api-keys|API Keys>
- <https://arize.com/docs/phoenix/self-hosting/features/authentication|Authentication setup>