POST api/token

Use this method to generate a new token using your provided credentials. The returned access_token must be used in a custom HTTP Header named Authorization and having for value: Bearer {access_token}

Request

Body Content

grant_type={grant_type}&username={username}&password={password}

replace {grant_type} by the value "password"
replace {username} by the login you were provided (case sensitive)
replace {password} by the password you were provided

Response

If the submitted credentials are valid, returns the token you need for further usage. You will have to use the access_token value in a custom HTTP Header named Authorization and having for value: Bearer {access_token}

Output : object (See Model)

Ouput Sample

  • application/json, text/json :
  • { "access_token": "4Z45If8e1K14qL2MxdhsTIulDX5QwgXJxuOIqgGZOFGOWPSJmLYUNag50KlcjOUh4cLSRzWlQAycWpGPLARox15e8BzjZlavn3bE8vgtoF26V_ykcoVNpukDF06hMIhGoyM1BFcvGm0o-luUPJ25vFhX8Q3opmoczHWJrX0ZHZsI_DktUZshsuxdpClqeuc0kziIBhnLWya94E3BkdHqPKNLLgzgPB2QF899ry69jxcSUA6v-Xrfs0KxYylIQu5mzOBIyrGYjEepkDB3WI1eApxIquf-qroqgtt733ge5NPJHDI_w95LvucQDu0r9o7KkRMMSpGXVcy9mR-5DZ9av-nIi7-ZfXh2nXczFmW6dDk", "token_type": "bearer", "expires_in": 1799 }
  • application/xml, text/xml :
  • <GetTokenResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <access_token>4Z45If8e1K14qL2MxdhsTIulDX5QwgXJxuOIqgGZOFGOWPSJmLYUNag50KlcjOUh4cLSRzWlQAycWpGPLARox15e8BzjZlavn3bE8vgtoF26V_ykcoVNpukDF06hMIhGoyM1BFcvGm0o-luUPJ25vFhX8Q3opmoczHWJrX0ZHZsI_DktUZshsuxdpClqeuc0kziIBhnLWya94E3BkdHqPKNLLgzgPB2QF899ry69jxcSUA6v-Xrfs0KxYylIQu5mzOBIyrGYjEepkDB3WI1eApxIquf-qroqgtt733ge5NPJHDI_w95LvucQDu0r9o7KkRMMSpGXVcy9mR-5DZ9av-nIi7-ZfXh2nXczFmW6dDk</access_token> <expires_in>1799</expires_in> <token_type>bearer</token_type> </GetTokenResult>