Authenticate Your SOAP API Calls
The first step in an API-based integration is authenticating your calls. OAuth access token authentication is the most secure way to authenticate SOAP API calls. You can also use a Marketing Cloud username and password to authenticate your calls. UsernameToken authentication is not as secure as access token authentication.
-
Get a Client ID and Secret. Obtain a client ID and secret by creating a package in Marketing Cloud with an API Integration component. Once you have your client ID and secret credentials, use them to acquire an OAuth access token directly from the API authentication service.
The Marketing Cloud user for your integrated account must have the Installed Package | Administer permission.
-
Get an access token. Call the REST auth service to obtain an access token.
-
Use the access token to authenticate your SOAP calls in the header. This access token authorizes calls in the account where you created the token. It does not flow down through child accounts.
-
When setting up the Marketing Cloud user, select API User.
-
For Marketing Cloud accounts with role-based permissions, select the Role | Email | Admin | API Access | WebServices API permission. For accounts with legacy permissions, select the Grant the user access to the web services permission.
-
Enable the username and password security setting. Go to Setup | Security | Security Settings and find the setting under Username and Logins.
-
Use the Marketing Cloud username and password to authenticate your SOAP calls in the header.