2
API request token
Question asked by Gustavo Leal - 10/30/2020 at 10:37 AM
Unanswered
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."
})

-
https://mail.XXXX.pt/api/v1/auth/retrieve-login-token?{=&"username"=gustavo,&"domain"=mail.XXXX.net,&}
 I have the return (" Missing token in authorization header ")

-
https://mail.XXXX.pt/api/v1/auth/authenticate-user?{=&"username"=gustavo,&"password"=PASS,&"language"=en,&"retrieveAutoLoginToken"=true&}
 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

Reply to Thread