Prerequisites
You need an OpenAI Admin API key created by an Organization Owner. Admin API keys are organization-scoped and can manage organization resources such as users, projects, and API keys. A regular project API key (for example, one starting withsk-) does not have these permissions and will fail validation.
Create an OpenAI Admin API Key
Open your account menu
In the OpenAI dashboard, click your account in the bottom-left corner to open the menu.

Name and create the key
Give the key a descriptive name (e.g. 
infisical-key), set the permissions as needed, and click Create admin key.
Create OpenAI Connection in Infisical
- Infisical UI
- API
Navigate to App Connections
In your Infisical dashboard, go to Integrations → App Connections tab in your project.

Select OpenAI Connection
Click Add Connection and choose OpenAI from the list of available connections.

Fill out Connection Form
Complete the form with:
- A name for the connection
- An optional description
-
Your Admin API Key (from the steps above)
Connection Created
After clicking Connect to OpenAI, Infisical validates the key against the OpenAI API. Your OpenAI Connection is then ready to use for OpenAI Service Account Secret Rotation.




