Call description
This request gets you a new access token and refresh token. The access token is a temporary identification key which is included in every authorized call.
•Request URL: https://mspapi.eset.com/api/Token/Get
•This request is a POST call type.
Call structure
{
"username": "string",
"password": "string"
}
Call parameters
Parameter
|
Description
|
username
|
User name for your ESET MSP Administrator 2 account.
|
password
|
Password matching your username.
|
Response structure
The response contains data in the JSON format.
The response contains your new accessToken and the refreshToken.
{
"accessToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjdCOTYzQjc3NDZDMzNFNDM0NTY4MjU4RUM1NDg4MDg4NEY3NEQwMkEiLCJ0eXAiOiJKV1QiLCJ4NXQiOiaaaak3ZDBiRFBrTkZhQ1dPeFVpQWlFOTAwQ28ifQ.eyJuYmYiOjE1NDUzMDY1NDUsImV4cCI6MTU0NTMwNjYwNSwiaXNzIjoia123cHM6Ly9kZXYtaWRlbnRpdHkuZXNldC5jb20iLCJhdWQiOlsiaHR0cHM6Ly9kZXYtaWRlbnRpdHkuZXNldC5jb20vcmVzb3VyY2VzIiwi7894Ml9hcGkiXSwiY2xpZW50X2lkIjoiRXNldC5FTUEuQVBJIiwic3ViIjoiMGQzMGE3YjUtNmUwMS00MGM4LTllYzQtZjA1NjMyOTAxN2M3IiwiYXV0aF90aW1lIjoxNTQ1MzA2NTQ0LCJpZHAiOiJsb2NhbCIsInNjb3BlIjpbImVtYTJfYXBpIiwib2ZmbGluZV9hY2Nlc3MiXSwiYW1yIjpbImN1c3RvbSJdfQ.gfFUOrbSN5kmv9llMXQK--CdQZVkplwmWDOo5XYNPdjA7qj9JJUCletV_MyldvWw68oX0SX9VVaBXuKUn9oo1ZdFkVD61F9RcyXmTWpk8cYqInFSex-jFm_aqKA9PZJ4d2bpx5OxDQmLyCDY8-0lnnwmiempbLtqSIKr95TD7rjGX4h_YfU2Lx3XxxJepurLjmOBVnxGN1ejx2sjH2mefqbygh3DOYlwiBrh1lAdj6hxY0ddvS7Y3Rz6sto2u35EI_N4A0BlrWJvrhJVFrCV9JMK8jC7HDxfMlnFaC9_ROiCrYr5dsDqqmKkwgZV5SWF46HNxCR2lHLYiCYOzCYzEw",
"refreshToken": "CAWPHjH/uwwsupmrZR70bmfG/vyp9CHb0Lef0ZSBxAlhT/kDntVW9Oo4QttosOJYlZHAMmZlACxdLAtP1Y6zVBradlr1xGd9GOSW0hk1a2s3ds27+kOO+SnFmbqmaL0Or1hvTcun52oECQqhmqOxr82+mIg0iSanVyQXfyxegFrjM4SiqvsVtn4lUgszqK/7WQD5qrt+pz7gZWCz1lAcKcPqweruQm/rRJ6yeCMAuag7DwkY80Bwsywd+QssbHttMc2Y3MwtwjoxrEYFY7Tj8TvoYbcgxT4dxV56sXIt6ij9T7wm0fK0OdcpxNpca1s2d3q5iOwmu4Qvy55PmLKIzA=="
}
|
Troubleshooting
ESET MSP Administrator 2 API uses standardized error codes. If you are getting errors or unexpected responses, see the Troubleshooting API for common problems and the list of error codes.
List of error codes