Developer
Search…
Token (Client Credentials)

Request Access Token Using client credentials:

URL : /api/v1/oauth2/token Method : POST

Parameters

client_id (required) Your application client id
client_secret (required) Your application client secret
grant_type (required) Use the value as “client_credentials

Sample Request

curl -u {client_id}:{client_secret} https://my.worksmart.net/api/v1/oauth2/token -d 'grant_type=client_credentials'

Sample Response

1
{
2
"access_token": "abcdefghijklmnopqrstuvwxyz123456789",
3
"expires_in": 3600,
4
"token_type": "Bearer",
5
"scope": null
6
}
Copied!