I have created a API package under Setup -> Installed Packages.
I have created API Integration component for the package .I have the below basic details for the component.
- Client Id
- Client Secret
- Authentication Base URI
- REST Base URI
I want to test the created API package using any tool( Postman or other API testing tools).
I was able to find API integration testing links for SFDC but not for the Marketing Cloud.
What is the redirect URL to be used in the API package? I have created an API integration package of Integration type ( Web APP)
In web app properties, what is the redirect URL to be provided?
Best Answer
The most basic way to test it is to authenticate using POSTMAN:
Based on the package you installed, use the correct endpoint specified in the Installed Package:
For v1: POST: https://xxxxx.auth.marketingcloudapis.com/v1/requestToken
For v2: POST: https://xxxxx.auth.marketingcloudapis.com/v2/token
In the body select raw/JSON (application/json) and include Grant Type, the Client Id and Secret for v2 or just Client Id and Secret for v1. Request for v1:
Request for v2:
More info here:
v1: https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-getting-started.meta/mc-getting-started/get-access-token.htm
v2: https://developer.salesforce.com/docs/atlas.en-us.mc-app-development.meta/mc-app-development/access-token-s2s.htm