Generate Token

02/13/2020 | Less than 1 minute to read

Info Note

API TYPE: POST
End Point: POST /oauth/token
Description: For Generating Access Token

Request (Generate Token)

02/13/2020 | 3 minutes to read


Body
grant_type, username, password
Parameter Value Description DataType
grant_type required password password
username required String String
password required String String

Basic Auth
username, password
Parameter Value Description DataType
username required String String
password required String String

Response (Generate Token)

02/13/2020 | Less than 1 minute to read



{
    "access_token": "String",
    "token_type": "bearer",
    "refresh_token": "String",
    "expires_in": Long,
    "scope": "READ WRITE"
}

ErrorCode (Generate Token)

02/13/2020 | 3 minutes to read

HTTP Status Code Reason Response Model Headers
200 We received the request and created Successfully    
400 CCP-HTTP-003 | Request method not supported    
401 You are not authorized to view the resource    
403 Accessing the resource you were trying to reach is forbidden    
404 The resource you were trying to reach is not found    

©2021 Developer.CSensorNet.com. All rights reserved | Powered by www.clovity.com