Where do I find my API key and API secret credentials?
Last updated: Apr-23-2025
If you have the Master Admin, Admin, or Tech Admin product environment-level system role, or, for Enterprise customers, a custom role with the View API keys permission, you can find your API keys and other credentials on the API Keys page of the Cloudinary Console Settings:
- Watch a video tutorial on how to find and work with your Cloudinary credentials
- The initial creator of a new account becomes the root user with full account access. If you have multiple users in your account, there must always be at least one user with the account-level Master Admin role. For more details, see System roles.
npx @cloudinary/cloud, with no signup required.These credentials include your:
- Cloud Name: The product environment identifier. Required for configuring front-end SDKs and included as an identifier in all media asset URLs delivered from Cloudinary.
- API Key and API Secret: Needed to configure backend SDKs or to directly run REST API requests.
-
API environment variable: A string that combines all three credential values. Copy the API environment variable format from the API Keys page of the Cloudinary Console Settings. Replace
<your_api_key>and<your_api_secret>with your actual values, while your cloud name is already correctly included in the format.
If you need only your cloud name, such as for configuring a frontend SDK, you can find that on the Dashboard.
- You use your cloud name and API key for enabling or configuring a variety of Cloudinary features. As mentioned above, your cloud name is also a part of every media asset URL you deliver from Cloudinary. There's no problem to expose these values in client-side code.
- You use your API secret for authentication. You should never expose Your API secret in client-side code or in any other way outside your organization.
- Your cloud name, API key, and API secret are all specific to a product environment.
Free accounts have only one product environment. Paid accounts can have multiple product environments that you can use for things such as production and staging environments, or you might have different product environments to parallel different products, websites, organizations, geographies, or apps that you use with Cloudinary.
Managing product environment API keys
You can manage your API keys in the API Keys page of the Console Settings, including adding, activating, disabling, rotating, and naming API keys. For more information, see Product environment settings.
Rotating API keys in the Console
To safely replace an API key/secret pair without downtime:
- In the Cloudinary Console, go to Settings > API Keys.
- Click Generate New API Key, complete the Create API Key dialog, and click Create. If a Verification Required dialog opens, enter the confirmation code sent to your email and click Approve. For details, see Verifying your identity for API key actions.
- Update all relevant application configuration and secrets to use the new API key and API secret.
- After confirming everything is working, set the old key's Status to Disabled.
- (Optional) Rename keys to reflect their purpose (for example, service name and environment) to simplify auditing.
- All plans: Assign the Master Admin or Media Library User system role, and use folder roles to limit a key to specific folders.
- Enterprise plans: Assign custom roles that limit a key to specific Upload and Admin API methods.
For details, see API key permissions.
Managing API keys with the Provisioning API
Enterprise accounts that have the Provisioning API enabled can use it to programmatically create and manage API keys using the access_keys endpoint and product environments using the subaccounts endpoint, as well as users and user groups. To use the Provisioning API, you need a dedicated API key. If your account includes support for the Provisioning API, you can find your credentials in the Account Management Keys page of the Cloudinary Console Settings.
