Retrieves Bearer Token for authorization that is valid for
1 hour.
Method Type: POST
Authorization: None
Request
https://test.hs1api.com/oauth/client_credential/accesstoken?grant_type=client_credentials
Parameters
- grant_type (Required)
- Type: string
Value: client_credentials
Grant type
Headers
- Content_Type
- Value: application/x-www-form-urlencoded
Request content type
Request Body
- client-id
- Type: string
Client identifier
- client-secret
- Type: string
Client secret
Response
- access_token
- Type: string
Token for accessing the information
- expires_in
- Type: string
Duration (in seconds) that the token is valid
- token_type
- Type: string
Token type
Example
{
"access_token": "*******************************",
"expires_in": "3599",
"token_type": "Bearer"
}
Possible Errors