1

I'm trying to get an access token for sandbox mode.

My post request:

{
"clientId": "xxxxxxxxxx",
"clientSecret": "xxxxxxx"
}

I'm sending the request to https://auth-test.exacttargetapis.com/v1/requestToken according to documentation, but I get an unauthorized response:

{
    "message": "Unauthorized",
    "errorcode": 1,
    "documentation": ""
}

If I send the same request to https://auth.exacttargetapis.com/v1/requestToken I get an access token succesfully for the production environment.

Am I missing something? I'm not a salesforce developer, but I'll need to build a web service that uses these api. Thank you.

1

The auth-test is for "Production Support" instances, (when you login to the mc is your login url mc.test.exacttarget.com) and you need to create the package in that instance.

These are legacy sandbox environments. The same clientid/secret wouldn't work on both endpoints

| improve this answer | |
  • Thanks for your answer, I'll check it with the marketing cloud team, since I was just provided with the client id and client secret. – Gustavo Alejandro Apr 22 '19 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.