# Create an OAuth 2.0 API Integration in Enhanced Packages

Use an OAuth 2.0 integration to enable external apps to securely integrate with Marketing Cloud Engagement. An admin can create an installed package and configure the settings for OAuth 2.0 authentication.

| User Permissions Needed                    |       |
| ------------------------------------------ | ----- |
| To create an installed package             | Admin |
| To add a component to an installed package | Admin |

1. [Create an installed package](/docs/marketing/marketing-cloud/guide/install-packages.md) with enhanced functionality, or go to an existing package that was created with enhanced functionality.

2. In the Components section, click **Add Component**.

3. Select **API Integration**.

   :::note
   After you add an API Integration component to an installed package, you can’t remove it.
   :::

4. Select an [integration type](/docs/marketing/marketing-cloud/guide/installed-package-types.md).

5. Set the properties for the integration, including scopes and the redirect URIs for web and public apps.

   You can’t use a redirect URI that is URL-encoded. You can use `https://127.0.0.1:80/` as a redirect URI for local testing.

6. If you’re creating a public app integration, save the component.

   If you’re creating a server-to-server or web app integration, save the client secret in a secure location, because after you finish creating the component, you can’t view the client secret again.

7. Click **Finish**.

## Next Steps

If you created a server-to-server or web app integration, update your external apps to use the client secret.

To protect the security of your installed packages, we recommend that you [rotate your OAuth secrets](/docs/marketing/marketing-cloud/guide/rotate-oauth2-secret.md) periodically.

## See Also

- [Rotate an OAuth2 Secret](/docs/marketing/marketing-cloud/guide/rotate-oauth2-secret.md)
- [Installed Packages Scope](/docs/marketing/marketing-cloud/guide/data-access-permissions.md)
- [Tenant-Specific API Endpoints](/docs/marketing/marketing-cloud/guide/your-subdomain-tenant-specific-endpoints.md)
