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 Answer 1

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

1
  • 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. Commented Apr 22, 2019 at 15:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .