I am trying to get Authorization code from Postman by sending the Post request to " [https://auth.excattargetapis.com/v1/requestToken]".

In the Body of the Postman I have clientId and clientSecret but Authorisation comes with following error

"documentation": "https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/error-handling.htm",
"errorcode": 0,
"message": "Bad Request"
  • 1
    Could you add your call as well (masking the keys)? – Jeremy Garcia May 11 '18 at 8:03

A bad request usually means your call is malformed. I would recommend using this Postman library. It would store your credentials as environment variables and then you dont have to worry about handling the token call; it would be templated.



Please follow the Marketing Cloud Developers and follow the steps. If you are passing clientId and clientSecret as JSON String in the body, make sure you have selected JSON(application/json) in the dropdown.

Example Request for Production

POST https://auth.exacttargetapis.com/v1/requestToken
Content-Type: application/json
  "clientId": "gyjzvytv7ukqtfn3x2qdyfsn",
  "clientSecret": "************"

Postman screenshot

enter image description here


The call is probably not done correctly or the keys have changed. I recommend you to watch this webinar by Eliot Harper.

  • Thank you Jeremy. Old key wasn’t working so I created a new key instead. – Girish Krishnamurthy May 13 '18 at 1:50

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.