Base URI:
production
https://pkr.someline.com/api
Headers
Name | Description | Required |
---|---|---|
Accept | application/x.someline.v1+json | yes |
POST /oauth/access_token
Parameters
Name | Type | Required | Value |
---|---|---|---|
username | string | yes | '' |
password | string | yes | '' |
grant_type | string | yes | 'client_credentials' |
Success Response
HTTP Status 200
{
"access_token": "XervdrFWDBo2SlqcTCMLyYLaI5TnSqBKnaXrd6Xb",
"token_type": "Bearer",
"expires_in": "3600"
},
POST /oauth/access_token
Parameters
Name | Type | Required | Value |
---|---|---|---|
client_id | string | yes | 'SomelineFvGXRmBv' |
client_secret | string | yes | 'WFYBPbkOBv7hTby8vGL2SPOOq2GKYQdSIDGXcLsS' |
username | string | yes | '' |
password | string | yes | '' |
grant_type | string | yes | 'password' |
Success Response
HTTP Status 200
{
"access_token": "XervdrFWDBo2SlqcTCMLyYLaI5TnSqBKnaXrd6Xb",
"token_type": "Bearer",
"expires_in": "3600",
"refresh_token": "Some Random Strings"
},