Return Token API
Problem reported by Gustavo Leal - 10/30/2020 at 10:33 AM
Not A Problem
Good afternoon!

I've been trying in several ways to obtain the token to operate the API, but even following the insufficient examples in the manual, I am not successful.

Would anyone have a working example of how to get the token?

I've tried,

https://mail.XXXX.pt/api/v1/auth/refresh-token?{"token"= REFRESH_TOKEN_STRING} 
Return ({
    "isImpersonating": false,
    "canViewPasswords": false,
    "accessToken": "",
    "refreshToken": "",
    "accessTokenExpiration": null,
    "username": null,
    "success": false,
    "resultCode": 400,
    "message": "Object reference not set to an instance of an object."

 I have the return (" Missing token in authorization header ")

 I have the return ({"message": "Validation errors: [invalid, Invalid input parameters]"})

Does anyone have any ideas ?

Complementing: I tested with POSTMAN and via console with JQUERY as manual.
Thanks in advance

Gustavo Leal

2 Replies

Reply to Thread
Andy Whitefield Replied
We're getting this same message  ({"message": "Validation errors: [invalid, Invalid input parameters]"})  on two of our computers for about the last 6 weeks - and we can't get in to either of our smartermail accounts on those machines. Did you ever get this sorted Gustavo? We are very very perplexed. Thanks Andy and Sara
Zach Sylvester Replied
Employee Post

To get the auth and refresh token you just need to pass in the username and password to the correct url with a post request. Please let me know if this helps. 

Best regards, 
Zach Sylvester
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278

Reply to Thread