---
schema_version: "1"
id: 787efb698b12cbd9cdce54333a41f937eb3ecedc015f05f222fd29f675748434
title: API Integration
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-app-development/api-integration.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/api-integration.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c32eabb69ba8d108763d781fad48cd56e76d385e805363423457803d0c6bc3a1
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# API Integration

To obtain credentials for authentication, add an API integration to your installed package. Under the component details, locate the client ID and client secret, if applicable. Use these credentials with your Authentication Base URI to get an access token to authenticate your API requests.

Store your client ID and secret securely. Never expose this information about the client side via JavaScript or store it in a mobile application.

To create an API integration, you must have the `Installed Package | Administer` permission. This permission is automatically applied to the Administrator and Marketing Cloud Administrator system-defined roles. Add the permission for a role or user in the Administration area.

An enhanced package can have a server-to-server integration or a web or public app integration. These types of integration use OAuth 2.0 authentication to obtain an access token. Legacy packages don’t support OAuth 2.0, and they use legacy routes for API authentication.

## Related Items

- [Installed Packages Scope](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/data-access-permissions.md)
- [Your Subdomain and Your Tenant's Endpoints](https://developer.salesforce.com/docs/marketing/marketing-cloud/mc-apis/your-subdomain-tenant-specific-endpoints.md)
- [Create an OAuth 2.0 API Integration in Enhanced Packages](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/create-integration-enhanced.md)
- [Create an API Integration in Legacy Packages](https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/create-integration-legacy.md)
