password

This grant type is for desktop applications, where a web security with a redirect is unavailable.

  • Example Request
    • POST Request
    • URL: /oauth/token?grant_type=password
    • Basic Auth: CLIENT_ID:CLIENT_SECRET
    • Content-Type: x-www-form-urlencoded
    • Body: username=USERNAME&password=PASSWORD
  • Example Response
{
 "access_token": "6dc65b83-6d78-4b80-8ad2-6fac14a9e7c7",
 "token_type": "bearer",
 "expires_in": 43199,
 "scope": "files_folders sharing"
}
  • Extract the token from the response body and use it to for your rest request